|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.workspace.WorkspaceManager
public class WorkspaceManager
Field Summary | |
---|---|
static String |
REVISION
|
Constructor Summary | |
---|---|
WorkspaceManager()
|
Method Summary | |
---|---|
protected static void |
createDuplicateCategories(WorkspaceWizardContext context)
Duplicate all categories specified for the given WizardContext. |
protected static void |
createGroups(WorkspaceWizardContext context)
Duplicate all groups specified for the given WizardContext. |
protected static void |
createPortals(WorkspaceWizardContext context)
Duplicate all portals specified for the given WizardContext. |
protected static boolean |
createWorkspace(WorkspaceWizardContext context)
Creates the workspace instance from the given model |
static WorkspaceWizardContext |
deepDuplicate(Workspace model,
Member author,
String prefix,
String title)
Deep duplicate the Workspace model using given configuration for duplication. |
static WorkspaceWizardContext |
deepDuplicate(Workspace model,
Member author,
String prefix,
String title,
boolean collaborativeSpace)
Deep duplicate the Workspace model using given configuration for duplication. |
static WorkspaceWizardContext |
deepDuplicate(Workspace model,
Member author,
String prefix,
String wstitle,
String wsemail,
List adminList,
Collection typeCollec,
Category[] categories,
Group[] groups,
PortalInterface[] portals,
Workspace parent,
boolean collaborativeSpace)
Deep duplicate the Workspace model using given configuration for duplication. |
static WorkspaceWizardContext |
deepDuplicate(Workspace model,
Member author,
String prefix,
String wstitle,
String wsemail,
List adminList,
Collection typeCollec,
Collection catCollec,
Collection groupCollec,
Collection portalCollec,
boolean collaborativeSpace)
Deep duplicate the Workspace model using given configuration for duplication. |
static WorkspaceWizardContext |
deepDuplicate(Workspace model,
Member author,
String prefix,
String wstitle,
String wsemail,
List adminList,
Collection typeCollec,
Collection catCollec,
Collection groupCollec,
Collection portalCollec,
Workspace parent,
boolean collaborativeSpace)
Deep duplicate the Workspace model using given configuration for duplication. |
static WorkspaceWizardContext |
deepDuplicate(Workspace model,
Member author,
String prefix,
String title,
Workspace parent)
Deep duplicate the Workspace model using given configuration for duplication. |
static WorkspaceWizardContext |
deepDuplicate(Workspace model,
Member author,
String prefix,
String title,
Workspace parent,
boolean collaborativeSpace)
Deep duplicate the Workspace model using given configuration for duplication. |
static WorkspaceWizardContext |
deepDuplicate(WorkspaceWizardContext context)
Deep duplicate the Workspace model referenced by given WorkspaceWizardContext using context configuration for duplication. |
static int |
getCollaborativeSpaceCount()
Returns the counts of workspaces used as CollaborativeSpaces. |
static int |
getNonCollaborativeWorkspaceCount()
Returns the count of worspaces which are not used as CollaborativeSpaces. |
protected static void |
updateWorkspace(WorkspaceWizardContext context)
Update duplicated Workspace Duplicate WSTypeEntry Duplicate WKRoles |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
Constructor Detail |
---|
public WorkspaceManager()
Method Detail |
---|
public static WorkspaceWizardContext deepDuplicate(Workspace model, Member author, String prefix, String title)
model
- the Workspace to duplicateauthor
- the author of all duplicationprefix
- the prefix to use on all duplicated items
public static WorkspaceWizardContext deepDuplicate(Workspace model, Member author, String prefix, String title, boolean collaborativeSpace)
model
- the Workspace to duplicateauthor
- the author of all duplicationprefix
- the prefix to use on all duplicated itemscollaborativeSpace
- tell if the duplication is to create a collaborative space
public static WorkspaceWizardContext deepDuplicate(Workspace model, Member author, String prefix, String wstitle, String wsemail, List adminList, Collection typeCollec, Collection catCollec, Collection groupCollec, Collection portalCollec, boolean collaborativeSpace)
model
- the Workspace to duplicateauthor
- the author of all duplicationprefix
- the prefix to use on all duplicated itemswstitle
- the workspace titlewsemail
- the workspace emailadminList
- a List of workspace administratorstypeCollec
- a Set of classes to define WSTypeEntry to retrieve from modelcatCollec
- Workspace root categories to duplicategroupCollec
- to duplicateportalCollec
- to duplicate
public static WorkspaceWizardContext deepDuplicate(Workspace model, Member author, String prefix, String title, Workspace parent)
model
- the Workspace to duplicateauthor
- the author of all duplicationprefix
- the prefix to use on all duplicated itemsparent
- the parent workspace
public static WorkspaceWizardContext deepDuplicate(Workspace model, Member author, String prefix, String title, Workspace parent, boolean collaborativeSpace)
model
- the Workspace to duplicateauthor
- the author of all duplicationprefix
- the prefix to use on all duplicated itemsparent
- the parent workspacecollaborativeSpace
- tell if the duplication is to create a collaborative space
public static WorkspaceWizardContext deepDuplicate(Workspace model, Member author, String prefix, String wstitle, String wsemail, List adminList, Collection typeCollec, Collection catCollec, Collection groupCollec, Collection portalCollec, Workspace parent, boolean collaborativeSpace)
model
- the Workspace to duplicateauthor
- the author of all duplicationprefix
- the prefix to use on all duplicated itemswstitle
- the workspace titlewsemail
- the workspace emailadminList
- a List of workspace administratorstypeCollec
- a Set of classes to define WSTypeEntry to retrieve from modelcatCollec
- Workspace root categories to duplicategroupCollec
- to duplicateparent
- the parent workspaceportalCollec
- to duplicate
public static WorkspaceWizardContext deepDuplicate(Workspace model, Member author, String prefix, String wstitle, String wsemail, List adminList, Collection typeCollec, Category[] categories, Group[] groups, PortalInterface[] portals, Workspace parent, boolean collaborativeSpace)
model
- the Workspace to duplicateauthor
- the author of all duplicationprefix
- the prefix to use on all duplicated itemswstitle
- the workspace titlewsemail
- the workspace emailadminList
- a List of workspace administratorstypeCollec
- a Set of classes to define WSTypeEntry to retrieve from modelcategories
- Workspace root categories to duplicategroups
- to duplicateportals
- to duplicate
public static WorkspaceWizardContext deepDuplicate(WorkspaceWizardContext context)
context
- the WorkspaceWizardContext
protected static void createDuplicateCategories(WorkspaceWizardContext context)
context
- the WizardContextprotected static boolean createWorkspace(WorkspaceWizardContext context)
context
- the WizardContextprotected static void createGroups(WorkspaceWizardContext context)
context
- the WizardContextprotected static void createPortals(WorkspaceWizardContext context)
context
- the WizardContextprotected static void updateWorkspace(WorkspaceWizardContext context)
context
- the WizardContextpublic static int getNonCollaborativeWorkspaceCount()
public static int getCollaborativeSpaceCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |