|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jstore.BasicStorable
com.jalios.jcms.Data
com.jalios.jcms.workspace.Workspace
public class Workspace
This class represents a Workspace
| Nested Class Summary | |
|---|---|
static class |
Workspace.CollaborativeSpaceSelector
Select workspace that are Collaborative Spaces. |
static class |
Workspace.GroupSizeComparator<T extends Workspace>
|
static class |
Workspace.MemberSizeComparator<T extends Workspace>
|
static class |
Workspace.ModelWorkspaceSelector
Select model workspaces. |
static class |
Workspace.NameComparator<T extends Workspace>
|
static class |
Workspace.OpenWorkspaceSelector
Select open workspaces. |
static class |
Workspace.OrderComparator<T extends Workspace>
|
static class |
Workspace.TextSelector
Select a set of workspace matching the given text in the Title. |
static class |
Workspace.TitleSelector
Select a set of workspace by their name. |
| Nested classes/interfaces inherited from class com.jalios.jcms.Data |
|---|
Data.AuthorComparator<T extends Data>, Data.AuthorSelector, Data.CdateSelector, Data.DataNameComparator<T extends Data>, Data.DeletableSelector, Data.ImportSelector, Data.MdateSelector, Data.OpAuthorComparator<T extends Data>, Data.RowIdComparator<T extends Data>, Data.StrongLockSelector |
| Nested classes/interfaces inherited from class com.jalios.jstore.BasicStorable |
|---|
BasicStorable.CdateComparator<T extends Storable>, BasicStorable.IdComparator<T extends Storable>, BasicStorable.MdateComparator<T extends Storable> |
| Field Summary | |
|---|---|
protected java.util.ArrayList<Member> |
administrators
|
static java.lang.String |
ALL_WORKSPACE_ICON
|
protected Category |
cachedHomeCat
|
protected java.util.HashSet<Category> |
catSet
|
protected java.util.HashMap<java.lang.Class<?>,java.util.Set<Publication>> |
classPubSetMap
|
protected static java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
cssGlobalMap
|
protected Group |
defaultGroup
|
protected java.lang.String |
email
|
protected java.lang.String[] |
globalCSS
|
protected java.util.TreeSet<Group> |
groupSet
|
protected boolean |
isClosed
|
protected boolean |
isModel
|
protected java.lang.String |
language
|
protected int |
order
|
protected Workspace |
parent
|
static java.lang.String |
PARENT_WORKSPACE_PARAMNAME
|
protected java.util.TreeSet<Publication> |
pubSet
|
static java.lang.String |
REVISION
|
protected java.util.HashMap<java.lang.String,WKRole> |
roleMap
|
protected java.lang.String |
title
|
protected java.util.HashMap<java.lang.String,java.lang.String> |
titleML
|
protected java.util.HashMap<java.lang.Class<?>,java.lang.Object> |
typeMap
|
static java.lang.String |
WORKSPACE_CLOSED_ICON
|
static java.lang.String |
WORKSPACE_CS_ICON
|
static java.lang.String |
WORKSPACE_CS_MODEL_ICON
|
static java.lang.String |
WORKSPACE_ICON
|
static java.lang.String |
WORKSPACE_MODEL_CLOSED_ICON
|
static java.lang.String |
WORKSPACE_MODEL_ICON
|
| Fields inherited from class com.jalios.jcms.Data |
|---|
author, authorDBID, channel, DISPLAY_URL_EXTRA_INFO, extension, extraDataMap, extraDBDataMapToSaveOnOp, importMap, lockDate, lockMember, opAuthor, opDelegate |
| Fields inherited from class com.jalios.jstore.BasicStorable |
|---|
cdate, ddate, id, mdate, store |
| Fields inherited from interface com.jalios.util.JaliosConstants |
|---|
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR |
| Fields inherited from interface com.jalios.jcms.mashup.ImportConstants |
|---|
IMPORT_ALARM_MGR, IMPORT_AUTHOR_PROP, IMPORT_CATEGORY_DEFAULT, IMPORT_DC_ATTR, IMPORT_DC_STEP, IMPORT_DIR, IMPORT_ENABLED, IMPORT_JDOM_ELEMENT, IMPORT_LOG_FILE, IMPORT_LOG_MAX, IMPORT_OPTIONS, IMPORT_OPTIONS_DC_CONTEXT, IMPORT_ROOT_PROP, IMPORT_SOURCE_FILE, IMPORT_SOURCE_PREFIX_PROP, IMPORT_SOURCES_DIR, IMPORT_STEP_CLEAN, IMPORT_STEP_IMPORT, IMPORT_STEP_UPDATE_REF, IMPORT_WS_PROP |
| Fields inherited from interface com.jalios.jcms.mashup.MashupConstants |
|---|
DATA_TAG, DATASET_TAG, FIELD_CLASS, FIELD_ENTRY, FIELD_ITEM, FIELD_KEY, FIELD_NAME, FIELD_TAG, FIELD_VALUE, FILE_FIELD, FILE_ID, FILE_MTIME, FILE_SIZE, FILE_TAG, FILE_TICKET, FILESET_TAG, RELATED_TAG |
| Constructor Summary | |
|---|---|
Workspace()
|
|
Workspace(Workspace other)
|
|
| Method Summary | ||
|---|---|---|
boolean |
canPublish(java.lang.Class clazz)
Checks if the given class can be published in this workspace. |
|
ControllerStatus |
checkCreate(Member mbr,
java.util.Map context)
Checks if the creation can be performed |
|
ControllerStatus |
checkDelete(Member mbr,
java.util.Map context)
Checks if the deletion can be performed |
|
ControllerStatus |
checkIntegrity()
Checks whether or not data integrity constraints are respected. |
|
ControllerStatus |
checkMember(int op,
Member mbr,
java.util.Map context)
Checks if the given member can perform the given operation. |
|
ControllerStatus |
checkUpdate(Member mbr,
java.util.Map context)
Checks if the update can be performed |
|
ControllerStatus |
checkWrite(int op,
Member mbr,
boolean checkIntegrity,
java.util.Map context)
Checks if the given write operation can be performed |
|
void |
exportXmlField(java.lang.StringBuffer sb,
int indentLevel)
Fills the given StringBuffer with Xml export of fields of this data. |
|
protected void |
exportXmlRelated(java.lang.StringBuffer sb,
java.lang.String related,
int indentLevel)
|
|
void |
flushHomeUrl()
Reset the cache of the home category. |
|
java.util.ArrayList<Member> |
getAdministrators()
|
|
java.util.Set<Workspace> |
getAllSubWorkspaces()
Gives the set of all WS under the ws in parameter. |
|
java.util.Set<Workspace> |
getAllSubWorkspaces(Member loggedMember)
Return the workspaces descendants of the workspace in parameter. |
|
static java.util.SortedSet<Workspace> |
getAllWorkingWorkspaceSet(Member loggedMember,
JcmsContext jcmsContext)
Gives the list of workspaces for which the current loggedMember is a worker. |
|
static java.util.Set<Workspace> |
getAllWorkspaceSet()
Returns a Set with all workspace, model or not. |
|
static java.util.Set<Workspace> |
getAllWorkspaceSet(Member member)
Returns a Set of workspace, for the given member. |
|
static java.util.Set<Workspace> |
getAllWorkspaceSetModel()
Returns a Set with all workspace model. |
|
static java.util.Set<Workspace> |
getAllWorkspaceSetWithoutModel()
Returns a Set with all workspace without workspace model. |
|
java.util.HashSet<Category> |
getCatSet()
|
|
java.util.Set<Category> |
getCatSet(Member mbr)
Gives the root categories for this Workspace, that the given member may read. |
|
java.util.HashMap<java.lang.Class<?>,java.util.Set<Publication>> |
getClassPubSetMap()
|
|
static java.util.Comparator<Workspace> |
getComparator(java.lang.String str,
boolean reverse)
|
|
static java.lang.String |
getCSVHeader(java.lang.String lang)
Returns the CSV header of this object |
|
java.lang.String |
getDataName(java.lang.String language)
Return the name of this Data, every sub class Data which will be displayed to user should implements this method already. |
|
Group |
getDefaultGroup()
Returns the default group for this workspace. |
|
Group |
getDefaultGroup(boolean search)
Returns the default group for this workspace. |
|
java.lang.String |
getEmail()
|
|
ObjectLongTreeMap |
getFileSizeMap(boolean refresh)
Returns the map file size for each content-type. |
|
Category |
getFirstWorkspaceCat(Category cat)
Returns first workspace category mathching (or parent) given category. |
|
java.lang.String |
getFullEmail()
Returns the full email in the form "WorkspaceTitle |
|
java.lang.String |
getFullEmail(java.lang.String lang)
Returns the full email in the form "WorkspaceTitle |
|
java.lang.String[] |
getGlobalCSS()
Getter for globalCSS |
|
java.util.Set<java.lang.String> |
getGlobalWYSIWYGStyle()
Returns a Set of global style for the current workspace. |
|
static java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getGlobalWYSIWYGStyleMap()
|
|
java.util.TreeSet<Group> |
getGroupSet()
|
|
static java.util.Comparator<Workspace> |
getGroupSizeComparator(java.lang.String lang)
Returns a new Comparator instance to compare workspace based on the number of groups in each workspace. |
|
java.lang.String |
getHomeUrl(java.util.Locale userLocal)
Returns the home url for the given workspace calculated from portal categories that belongs to workspace |
|
protected Category |
getHomeUrlVisitor(java.util.Collection<Category> collect,
java.util.Set<Publication> portalSet)
Internal methods to check home url |
|
java.lang.String |
getIcon()
Returns the image path icon for the given workspace |
|
java.lang.String |
getLanguage()
|
|
java.util.Set<java.lang.String> |
getLocalWYSIWYGStyle(java.lang.String global)
Returns a Set of local style for a given global style |
|
java.util.Set<Member> |
getMemberSet()
Returns a set of members that belongs to groups of this workspace. |
|
java.util.Set<Member> |
getMemberSet(boolean includeDBMember)
Returns a set of members that belongs to groups of this workspace. |
|
static java.util.Comparator<Workspace> |
getMemberSizeComparator(java.lang.String lang)
Returns a new Comparator instance to compare workspace based on the number of members in each workspace. |
|
static java.util.Comparator<Workspace> |
getNameComparator(java.lang.String lang)
Returns a new Comparator instance to compare workspace based on their title. |
|
int |
getOrder()
|
|
static java.util.Comparator<Workspace> |
getOrderComparator(java.lang.String lang)
Returns a new Comparator instance to compare workspace based on their order. |
|
Workspace |
getParent()
|
|
Workspace |
getParent(Member loggedMember)
Get the Parent workspace from the one in parameter, if loggedMember is not null, the WS is return only if he is worker of it. |
|
|
getPublicationSet(java.lang.Class<?> clazz)
Return all publication for a given Clazz |
|
|
getPublicationSet(java.lang.Class<?> clazz,
boolean specialState)
Return all the publication in/not a special state for the given class |
|
java.util.Set<Publication> |
getPublicationSet(Workflow workflow)
Return all publication for a given Workflow |
|
java.util.Set<Publication> |
getPublicationSet(Workflow workflow,
boolean specialState)
Return all the publication in/not a special state for the given Workflow |
|
java.util.TreeSet<Publication> |
getPubSet()
|
|
static Workspace |
getRequestWorkspace(javax.servlet.http.HttpServletRequest request)
Get the workspace stored in the request |
|
WKRole |
getRole(java.lang.String wfRoleId)
Get the WKRole linked to a WFRole for a given Workflow |
|
WKRole |
getRole(WFRole wfRole)
Get the WKRole linked to a WFRole for a given Workflow |
|
java.util.HashMap<java.lang.String,WKRole> |
getRoleMap()
Getter of RoleMap |
|
static java.util.Set<Workspace> |
getRootWorkspaces(java.util.Comparator<Workspace> comparator)
All Workspaces with no parent, sorted with comparator if not null. |
|
static java.util.Set<Workspace> |
getRootWorkspaces(java.util.Comparator<Workspace> comparator,
Member loggedMember)
All Workspaces with no parent the loggedMember in parameter belongs to, sorted with comparator if not null. |
|
static Workspace |
getSessionWorkspace(javax.servlet.http.HttpSession session)
Get the workspace stored in the session |
|
java.util.Set<Workspace> |
getSubWorkspaces()
Gives the set of all WS just under the ws in parameter. |
|
java.util.Set<Workspace> |
getSubWorkspaces(Member loggedMember)
Return the workspaces just under the workspace in parameter. |
|
java.lang.String |
getTitle()
Get the value of title. |
|
java.lang.String |
getTitle(java.lang.String lang)
Get the value of title bound to the given language. |
|
java.lang.String |
getTitle(java.lang.String lang,
boolean useDefault)
Get the value of title bound to the given language. |
|
java.util.HashMap<java.lang.String,java.lang.String> |
getTitleML()
Retrieve the HashMap containing the titles of this Workspace in language other than the main site language. |
|
java.lang.String |
getTypeDescription(java.lang.Class clazz,
java.lang.String lang)
Returns the description for the given type (class) in the given language. |
|
java.lang.String |
getTypeLabel(java.lang.Class clazz,
java.lang.String lang)
Returns the label for the given type (class) in the given language. |
|
java.util.HashMap<java.lang.Class<?>,java.lang.Object> |
getTypeMap()
Getter of TypeMap |
|
java.util.Set<java.lang.Class<?>> |
getTypeSet()
Returns a Set of all visible types |
|
WFRole |
getWFRole(WKRole wkRole)
Returns the WFRole bound to the given WKRole. |
|
java.util.Set<java.lang.String> |
getWFRoleIdSet()
Return a set of all WFRoleId |
|
java.util.Set<WFRole> |
getWFRoleSet()
Return a set of all WFRole |
|
java.util.Set<WKRole> |
getWKRoleSet()
Return a set of all WKRole |
|
java.util.Set<WKRole> |
getWKRoleSet(java.lang.Class clazz)
Return all the WKRole for a given Class |
|
java.util.Set<WKRole> |
getWKRoleSet(Workflow wf)
Return all the WKRole for a given Workflow |
|
Workflow |
getWorkflow(java.lang.Class clazz)
Find the Worflow associated to the given class. |
|
Workflow |
getWorkflow(java.lang.Class<?> clazz,
boolean checkSuperclass)
Find the Worflow associated to the given class or one of it's super class. |
|
java.util.Set<Workflow> |
getWorkflowSet()
Returns a Set of all workflow used by calling getWorkflow(clazz,false) on all clazz. |
|
WSTypeEntry |
getWSTypeEntry(java.lang.Class clazz)
Returns a WSTypeEntry describing custom properties for a given type in a given workspace. |
|
WSTypeEntry |
getWSTypeEntry(java.lang.String className)
Returns a WSTypeEntry describing custom properties for a given type in a given workspace. |
|
static java.util.Set<java.lang.String> |
getWysiwygCSSFileSet()
Returns the list of CSS files for the WYSIWYG. |
|
boolean |
hasWKRole(java.lang.String wfRoleId)
Check if a WKRole exists in this workspace for the specified WFRole id |
|
boolean |
hasWKRole(WFRole wfRole)
Check if a WKRole exists in this workspace for the specified WFRole |
|
boolean |
hasWorkflow(java.lang.Class clazz)
Check if the type is linked to a workflow for this workspace |
|
protected static void |
initWYSIWYGStyleMap()
Parse all css wysiwyg file to build cssGlobalMap if it is null |
|
boolean |
isAdmin(Member member)
Check if the member is an administrator of the workspace or of the channel |
|
boolean |
isClosed()
Getter for isClosed. |
|
boolean |
isCollaborativeSpace()
Returns true if this workspace is a CollaborativeSpace (i.e. generated with the Collaborative Spaces Plugin). |
|
boolean |
isModel()
Getter for model |
|
boolean |
isOpen()
|
|
boolean |
isWorkspaceCat(Category cat)
Checks if the given category is a workspace category or a descendent of worspace categories. |
|
void |
linkRole(WFRole wfRole,
WKRole wkRole)
Link into the workspace a WFRole to a WKRole |
|
void |
performDelete(Member mbr,
java.util.Map context)
Performs data deletion |
|
void |
performUpdate(Member mbr,
java.util.Map context)
Performs data update |
|
void |
setAdministrators(java.util.ArrayList<Member> administrators)
|
|
void |
setCatSet(java.util.HashSet<Category> catSet)
|
|
void |
setClosed(boolean closed)
Setter for isClosed |
|
void |
setDefaultGroup(Group defaultGroup)
Set the default group for this workspace. |
|
void |
setEmail(java.lang.String email)
|
|
void |
setGlobalCSS(java.lang.String[] globalCSS)
Setter for globcalCSS |
|
void |
setLanguage(java.lang.String language)
|
|
void |
setModel(boolean model)
Setter for model |
|
void |
setOrder(int order)
|
|
void |
setParent(Workspace parent)
|
|
static void |
setRequestWorkspace(javax.servlet.http.HttpServletRequest request,
Workspace workspace)
Set the given workspace to the request. |
|
void |
setRole(WFRole wfRole,
WKRole wkRole)
Binds a WKRole to a WFRole |
|
void |
setRoleMap(java.util.HashMap<java.lang.String,WKRole> roleMap)
Setter of RoleMap |
|
static void |
setSessionWorkspace(javax.servlet.http.HttpSession session,
Workspace workspace)
Set the given workspace to the session. |
|
void |
setTitle(java.lang.String v)
Set the value of title. |
|
void |
setTitleML(java.util.HashMap<java.lang.String,java.lang.String> v)
Set the HashMap containing the titles of this Workspace in language other than the main site language. |
|
void |
setTypeMap(java.util.HashMap<java.lang.Class<?>,java.lang.Object> typeMap)
Setter of TypeMap |
|
void |
setTypeWorkflow(java.lang.Class<?> clazz,
Workflow wf)
Link a Workflow to a given Class. |
|
boolean |
setWSTypeEntry(java.lang.Class<?> clazz,
WSTypeEntry wste)
Link a WSTypeEntry to a given Class. |
|
java.lang.String |
toCSV(java.lang.String lang)
Returns a CSV view of this object |
|
java.lang.String |
toString()
|
|
void |
updateGroupSet(Group grp,
boolean add)
Update the groupSet index |
|
void |
updatePubSet(Publication pub,
boolean add)
Update pubSet index |
|
| Methods inherited from class com.jalios.jstore.BasicStorable |
|---|
clearId, compareTo, equals, getAttribute, getAttributes, getCdate, getCdateComparator, getDdate, getId, getIdComparator, getMdate, getMdateComparator, getStore, getUrid, hasBeenUpdated, isStored, resolveAtt, resolveVal, setAttributes, setCdate, setDdate, setId, setStore, toXml |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String REVISION
protected java.lang.String title
protected java.util.HashMap<java.lang.String,java.lang.String> titleML
protected int order
protected java.util.ArrayList<Member> administrators
protected java.util.HashMap<java.lang.Class<?>,java.lang.Object> typeMap
protected java.util.HashMap<java.lang.String,WKRole> roleMap
protected java.util.HashSet<Category> catSet
protected java.lang.String email
protected boolean isModel
protected boolean isClosed
protected java.lang.String[] globalCSS
protected java.lang.String language
protected Workspace parent
protected Group defaultGroup
protected transient java.util.TreeSet<Group> groupSet
protected transient java.util.TreeSet<Publication> pubSet
protected transient java.util.HashMap<java.lang.Class<?>,java.util.Set<Publication>> classPubSetMap
public static java.lang.String PARENT_WORKSPACE_PARAMNAME
public static final java.lang.String WORKSPACE_ICON
public static final java.lang.String WORKSPACE_MODEL_ICON
public static final java.lang.String WORKSPACE_CLOSED_ICON
public static final java.lang.String WORKSPACE_CS_ICON
public static final java.lang.String WORKSPACE_CS_MODEL_ICON
public static final java.lang.String WORKSPACE_MODEL_CLOSED_ICON
public static final java.lang.String ALL_WORKSPACE_ICON
protected transient Category cachedHomeCat
protected static transient java.util.Map<java.lang.String,java.util.Set<java.lang.String>> cssGlobalMap
| Constructor Detail |
|---|
public Workspace()
public Workspace(Workspace other)
| Method Detail |
|---|
public ControllerStatus checkWrite(int op,
Member mbr,
boolean checkIntegrity,
java.util.Map context)
Data
checkWrite in class Dataop - the operation (OP_CREATE, OP_UPDATE, ...)mbr - the member which requests the write operationcheckIntegrity - if true, requires the constraints integrity to be checkedcontext - a map which contains context parameters (may be null)
public static java.util.Set<Workspace> getRootWorkspaces(java.util.Comparator<Workspace> comparator)
comparator -
public static java.util.Set<Workspace> getRootWorkspaces(java.util.Comparator<Workspace> comparator,
Member loggedMember)
comparator - loggedMember -
public Workspace getParent(Member loggedMember)
loggedMember - the logged member
public void setDefaultGroup(Group defaultGroup)
defaultGroup - the default group.public Group getDefaultGroup()
public Group getDefaultGroup(boolean search)
search - if true and if there is no default group, returns the group with lesser DataRight.
public java.util.Set<Workspace> getSubWorkspaces()
public java.util.Set<Workspace> getSubWorkspaces(Member loggedMember)
loggedMember - Only Workspaces for which the loggedMember is Worker are returned
public java.util.Set<Workspace> getAllSubWorkspaces()
public java.util.Set<Workspace> getAllSubWorkspaces(Member loggedMember)
loggedMember - Only Workspaces for which the loggedMember is Worker are returned
public java.lang.String toString()
toString in class Data
public void exportXmlField(java.lang.StringBuffer sb,
int indentLevel)
Data
exportXmlField in class Datasb - the StringBufferindentLevel - the indent levelpublic java.lang.String toCSV(java.lang.String lang)
toCSV in class Datalang - the output language
public static java.lang.String getCSVHeader(java.lang.String lang)
lang - the output language
public java.lang.String getIcon()
public void flushHomeUrl()
public java.lang.String getHomeUrl(java.util.Locale userLocal)
userLocal - the user local
protected Category getHomeUrlVisitor(java.util.Collection<Category> collect,
java.util.Set<Publication> portalSet)
collect - a collection of category to checkportalSet - the portal set
public boolean isWorkspaceCat(Category cat)
cat - the child category
public Category getFirstWorkspaceCat(Category cat)
cat - the child category
public java.util.Set<java.lang.String> getGlobalWYSIWYGStyle()
public java.util.Set<java.lang.String> getLocalWYSIWYGStyle(java.lang.String global)
global - the selected global style
public static java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getGlobalWYSIWYGStyleMap()
public static java.util.Set<java.lang.String> getWysiwygCSSFileSet()
PolicyManager.checkWysiwygCSSFile(Set)protected static void initWYSIWYGStyleMap()
public static java.util.Set<Workspace> getAllWorkspaceSet()
public static java.util.Set<Workspace> getAllWorkspaceSet(Member member)
member - the working member
public static java.util.Set<Workspace> getAllWorkspaceSetWithoutModel()
public static java.util.Set<Workspace> getAllWorkspaceSetModel()
public static java.util.SortedSet<Workspace> getAllWorkingWorkspaceSet(Member loggedMember,
JcmsContext jcmsContext)
loggedMember - the current logged memberjcmsContext - the current jcmsContext
public Workflow getWorkflow(java.lang.Class clazz)
clazz -
getWorkflow(Class, boolean)
public Workflow getWorkflow(java.lang.Class<?> clazz,
boolean checkSuperclass)
clazz - the target classcheckSuperclass - should check super class
getWorkflow(Class)public WSTypeEntry getWSTypeEntry(java.lang.Class clazz)
clazz - the target class
public WSTypeEntry getWSTypeEntry(java.lang.String className)
className - the target class name
public java.lang.String getTypeLabel(java.lang.Class clazz,
java.lang.String lang)
clazz - the classlang - the language
public java.lang.String getTypeDescription(java.lang.Class clazz,
java.lang.String lang)
clazz - the classlang - the language
public boolean hasWorkflow(java.lang.Class clazz)
clazz - the class to check
public java.util.Set<java.lang.Class<?>> getTypeSet()
public boolean canPublish(java.lang.Class clazz)
public java.util.Set<Workflow> getWorkflowSet()
public void setTypeWorkflow(java.lang.Class<?> clazz,
Workflow wf)
clazz - the clazz to linkwf - the workflow to linksetWSTypeEntry(Class, WSTypeEntry)
public boolean setWSTypeEntry(java.lang.Class<?> clazz,
WSTypeEntry wste)
clazz - the clazz to linkwste - the WSTypeEntry to link with
public java.util.Set<Publication> getPublicationSet(Workflow workflow)
workflow -
public java.util.Set<Publication> getPublicationSet(Workflow workflow,
boolean specialState)
workflow - specialState -
public java.util.TreeSet<Publication> getPubSet()
public void updatePubSet(Publication pub,
boolean add)
pub - the publication to be added or removedadd - add if true, remove if falsepublic java.util.HashMap<java.lang.Class<?>,java.util.Set<Publication>> getClassPubSetMap()
public <T extends Publication> java.util.Set<T> getPublicationSet(java.lang.Class<?> clazz,
boolean specialState)
clazz - specialState -
public <T extends Publication> java.util.Set<T> getPublicationSet(java.lang.Class<?> clazz)
clazz -
public WFRole getWFRole(WKRole wkRole)
wkRole - the WKRole to look for.
public WKRole getRole(WFRole wfRole)
wfRole - the role
public void setRole(WFRole wfRole,
WKRole wkRole)
wfRole - the WFRolewkRole - the WKRolepublic WKRole getRole(java.lang.String wfRoleId)
wfRoleId - the role id
public boolean hasWKRole(java.lang.String wfRoleId)
wfRoleId - the id of the WFRole to check
public boolean hasWKRole(WFRole wfRole)
wfRole - the WFRole to check
public java.util.Set<java.lang.String> getWFRoleIdSet()
public java.util.Set<WFRole> getWFRoleSet()
public java.util.Set<WKRole> getWKRoleSet()
public java.util.Set<WKRole> getWKRoleSet(Workflow wf)
wf -
public java.util.Set<WKRole> getWKRoleSet(java.lang.Class clazz)
clazz - the class
public void linkRole(WFRole wfRole,
WKRole wkRole)
wfRole - wkRole - public boolean isAdmin(Member member)
member -
public static java.util.Comparator<Workspace> getComparator(java.lang.String str,
boolean reverse)
public static java.util.Comparator<Workspace> getNameComparator(java.lang.String lang)
lang - the language in which to compare workspacepublic static java.util.Comparator<Workspace> getOrderComparator(java.lang.String lang)
lang - the language in which to compare workspaces'title
when order is the same.public static java.util.Comparator<Workspace> getGroupSizeComparator(java.lang.String lang)
lang - the language in which to compare workspaces'title when
number of groups is the same.public static java.util.Comparator<Workspace> getMemberSizeComparator(java.lang.String lang)
lang - the language in which to compare workspaces'title when
number of members is the same.public java.util.Set<Member> getMemberSet()
public java.util.Set<Member> getMemberSet(boolean includeDBMember)
includeDBMember - if true it includes for DBMember (up to HibernateManager.getDefaultMaxResults()).
public static void setSessionWorkspace(javax.servlet.http.HttpSession session,
Workspace workspace)
session - the sessionworkspace - the workspacepublic static Workspace getSessionWorkspace(javax.servlet.http.HttpSession session)
session - the session
public static void setRequestWorkspace(javax.servlet.http.HttpServletRequest request,
Workspace workspace)
request - the requestworkspace - the workspacepublic static Workspace getRequestWorkspace(javax.servlet.http.HttpServletRequest request)
request - the request
public java.lang.String getDataName(java.lang.String language)
Data
getDataName in class Datalanguage - the language in which to return the name if multilang available for the data.
getTitle(String),
Data.getDataName(String)public java.lang.String getTitle(java.lang.String lang)
lang - the language to get the title
public java.lang.String getTitle(java.lang.String lang,
boolean useDefault)
lang - the language to get the titleuseDefault - should main language used as default language
if title does not exist in the given language
public java.lang.String getTitle()
public void setTitle(java.lang.String v)
v - Value to assign to title.public java.util.HashMap<java.lang.String,java.lang.String> getTitleML()
public void setTitleML(java.util.HashMap<java.lang.String,java.lang.String> v)
v - Value to assign to titleML.public void setGlobalCSS(java.lang.String[] globalCSS)
globalCSS - Set of css namepublic java.lang.String[] getGlobalCSS()
public boolean isModel()
public void setModel(boolean model)
model - is workspace is a modelpublic boolean isClosed()
public void setClosed(boolean closed)
closed - to close this workspace for contributionpublic boolean isOpen()
public java.util.HashMap<java.lang.String,WKRole> getRoleMap()
public void setRoleMap(java.util.HashMap<java.lang.String,WKRole> roleMap)
roleMap - public java.util.HashMap<java.lang.Class<?>,java.lang.Object> getTypeMap()
public void setTypeMap(java.util.HashMap<java.lang.Class<?>,java.lang.Object> typeMap)
typeMap - public int getOrder()
public void setOrder(int order)
order - The order to set.public java.util.TreeSet<Group> getGroupSet()
public void updateGroupSet(Group grp,
boolean add)
grp - the group to be added or removedadd - add if true, remove if falsepublic java.util.ArrayList<Member> getAdministrators()
public void setAdministrators(java.util.ArrayList<Member> administrators)
administrators - The administrators to set.public java.util.HashSet<Category> getCatSet()
public void setCatSet(java.util.HashSet<Category> catSet)
catSet - The catSet to set.public java.lang.String getEmail()
public java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
language - The language to set.public Workspace getParent()
public void setParent(Workspace parent)
parent - The parent workspace to set.public java.lang.String getFullEmail()
public java.lang.String getFullEmail(java.lang.String lang)
lang - the language used to retrive Workspace title
public void setEmail(java.lang.String email)
email - The email to set.public ControllerStatus checkIntegrity()
checkIntegrity in class Data
public ControllerStatus checkMember(int op,
Member mbr,
java.util.Map context)
checkMember in class Dataop - the operation (OP_CREATE, OP_UPDATE, ...)mbr - the member which requests the write operationcontext - a map which contains context parameters (may be null)
public ControllerStatus checkCreate(Member mbr,
java.util.Map context)
checkCreate in class Datambr - the member which requests the write operationcontext - a map which contains context parameters (may be null)
public ControllerStatus checkUpdate(Member mbr,
java.util.Map context)
checkUpdate in class Datambr - the member which requests the write operationcontext - a map which contains context parameters (may be null)
public ControllerStatus checkDelete(Member mbr,
java.util.Map context)
checkDelete in class Datambr - the member which requests the write operationcontext - a map which contains context parameters (may be null)
public void performUpdate(Member mbr,
java.util.Map context)
Data
performUpdate in class Datambr - the member which requests the write operationcontext - a map which contains context parameters (may be null)Data.performUpdate(com.jalios.jcms.Member, java.util.Map)
public void performDelete(Member mbr,
java.util.Map context)
performDelete in class Datambr - the member which requests the write operationcontext - a map which contains context parameters (may be null)public java.util.Set<Category> getCatSet(Member mbr)
mbr - the member. May be null.
protected void exportXmlRelated(java.lang.StringBuffer sb,
java.lang.String related,
int indentLevel)
exportXmlRelated in class Datapublic boolean isCollaborativeSpace()
public ObjectLongTreeMap getFileSizeMap(boolean refresh)
refresh - if true refresh the map
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||