public class WorkspaceManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Constructor and Description |
---|
WorkspaceManager() |
Modifier and Type | Method and Description |
---|---|
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,
java.lang.String prefix,
java.lang.String title)
Deep duplicate the Workspace model using given configuration for duplication.
|
static WorkspaceWizardContext |
deepDuplicate(Workspace model,
Member author,
java.lang.String prefix,
java.lang.String title,
boolean collaborativeSpace)
Deep duplicate the Workspace model using given configuration for duplication.
|
static WorkspaceWizardContext |
deepDuplicate(Workspace model,
Member author,
java.lang.String prefix,
java.lang.String wstitle,
java.lang.String wsemail,
java.util.List adminList,
java.util.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,
java.lang.String prefix,
java.lang.String wstitle,
java.lang.String wsemail,
java.util.List adminList,
java.util.Collection typeCollec,
java.util.Collection catCollec,
java.util.Collection groupCollec,
java.util.Collection portalCollec,
boolean collaborativeSpace)
Deep duplicate the Workspace model using given configuration for duplication.
|
static WorkspaceWizardContext |
deepDuplicate(Workspace model,
Member author,
java.lang.String prefix,
java.lang.String wstitle,
java.lang.String wsemail,
java.util.List adminList,
java.util.Collection typeCollec,
java.util.Collection catCollec,
java.util.Collection groupCollec,
java.util.Collection portalCollec,
Workspace parent,
boolean collaborativeSpace)
Deep duplicate the Workspace model using given configuration for duplication.
|
static WorkspaceWizardContext |
deepDuplicate(Workspace model,
Member author,
java.lang.String prefix,
java.lang.String title,
Workspace parent)
Deep duplicate the Workspace model using given configuration for duplication.
|
static WorkspaceWizardContext |
deepDuplicate(Workspace model,
Member author,
java.lang.String prefix,
java.lang.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
|
public static final java.lang.String REVISION
public static WorkspaceWizardContext deepDuplicate(Workspace model, Member author, java.lang.String prefix, java.lang.String title)
model
- the Workspace to duplicateauthor
- the author of all duplicationprefix
- the prefix to use on all duplicated itemstitle
- the new workspace titlepublic static WorkspaceWizardContext deepDuplicate(Workspace model, Member author, java.lang.String prefix, java.lang.String title, boolean collaborativeSpace)
model
- the Workspace to duplicateauthor
- the author of all duplicationprefix
- the prefix to use on all duplicated itemstitle
- the new workspace titlecollaborativeSpace
- tell if the duplication is to create a collaborative spacepublic static WorkspaceWizardContext deepDuplicate(Workspace model, Member author, java.lang.String prefix, java.lang.String wstitle, java.lang.String wsemail, java.util.List adminList, java.util.Collection typeCollec, java.util.Collection catCollec, java.util.Collection groupCollec, java.util.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 duplicatecollaborativeSpace
- whether the new Workspace is a Collaborative space or notpublic static WorkspaceWizardContext deepDuplicate(Workspace model, Member author, java.lang.String prefix, java.lang.String title, Workspace parent)
model
- the Workspace to duplicateauthor
- the author of all duplicationprefix
- the prefix to use on all duplicated itemstitle
- the new workspace titleparent
- the parent workspacepublic static WorkspaceWizardContext deepDuplicate(Workspace model, Member author, java.lang.String prefix, java.lang.String title, Workspace parent, boolean collaborativeSpace)
model
- the Workspace to duplicateauthor
- the author of all duplicationprefix
- the prefix to use on all duplicated itemstitle
- the new workspace titleparent
- the parent workspacecollaborativeSpace
- tell if the duplication is to create a collaborative spacepublic static WorkspaceWizardContext deepDuplicate(Workspace model, Member author, java.lang.String prefix, java.lang.String wstitle, java.lang.String wsemail, java.util.List adminList, java.util.Collection typeCollec, java.util.Collection catCollec, java.util.Collection groupCollec, java.util.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 duplicatecollaborativeSpace
- public static WorkspaceWizardContext deepDuplicate(Workspace model, Member author, java.lang.String prefix, java.lang.String wstitle, java.lang.String wsemail, java.util.List adminList, java.util.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 duplicateparent
- the parent workspacecollaborativeSpace
- whether the new Workspace is a Collaborative space or notpublic static WorkspaceWizardContext deepDuplicate(WorkspaceWizardContext context)
context
- the WorkspaceWizardContextprotected 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()
Copyright © 2001-2010 Jalios SA. All Rights Reserved.