|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 ArrayList<Member> |
administrators
|
static String |
ALL_WORKSPACE_ICON
|
protected Category |
cachedHomeCat
|
protected HashSet<Category> |
catSet
|
protected HashMap<Class<?>,Set<Publication>> |
classPubSetMap
|
protected static Map<String,Set<String>> |
cssGlobalMap
|
protected Group |
defaultGroup
|
protected String |
email
|
protected String[] |
globalCSS
|
protected TreeSet<Group> |
groupSet
|
protected boolean |
isClosed
|
protected boolean |
isModel
|
protected String |
language
|
protected int |
order
|
protected Workspace |
parent
|
static String |
PARENT_WORKSPACE_PARAMNAME
|
protected TreeSet<Publication> |
pubSet
|
static String |
REVISION
|
protected HashMap<String,WKRole> |
roleMap
|
protected String |
title
|
protected HashMap<String,String> |
titleML
|
protected HashMap<Class<?>,Object> |
typeMap
|
static String |
WORKSPACE_CLOSED_ICON
|
static String |
WORKSPACE_CS_ICON
|
static String |
WORKSPACE_CS_MODEL_ICON
|
static String |
WORKSPACE_ICON
|
static String |
WORKSPACE_MODEL_CLOSED_ICON
|
static 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(Class clazz)
Checks if the given class can be published in this workspace. |
|
ControllerStatus |
checkCreate(Member mbr,
Map context)
Checks if the creation can be performed |
|
ControllerStatus |
checkDelete(Member mbr,
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,
Map context)
Checks if the given member can perform the given operation. |
|
ControllerStatus |
checkUpdate(Member mbr,
Map context)
Checks if the update can be performed |
|
ControllerStatus |
checkWrite(int op,
Member mbr,
boolean checkIntegrity,
Map context)
Checks if the given write operation can be performed |
|
void |
exportXmlField(StringBuffer sb,
int indentLevel)
Fills the given StringBuffer with Xml export of fields of this data. |
|
protected void |
exportXmlRelated(StringBuffer sb,
String related,
int indentLevel)
|
|
void |
flushHomeUrl()
Reset the cache of the home category. |
|
ArrayList<Member> |
getAdministrators()
|
|
Set<Workspace> |
getAllSubWorkspaces()
Gives the set of all WS under the ws in parameter. |
|
Set<Workspace> |
getAllSubWorkspaces(Member loggedMember)
Return the workspaces descendants of the workspace in parameter. |
|
static SortedSet<Workspace> |
getAllWorkingWorkspaceSet(Member loggedMember,
JcmsContext jcmsContext)
Gives the list of workspaces for which the current loggedMember is a worker. |
|
static Set<Workspace> |
getAllWorkspaceSet()
Returns a Set with all workspace, model or not. |
|
static Set<Workspace> |
getAllWorkspaceSet(Member member)
Returns a Set of workspace, for the given member. |
|
static Set<Workspace> |
getAllWorkspaceSetModel()
Returns a Set with all workspace model. |
|
static Set<Workspace> |
getAllWorkspaceSetWithoutModel()
Returns a Set with all workspace without workspace model. |
|
HashSet<Category> |
getCatSet()
|
|
Set<Category> |
getCatSet(Member mbr)
Gives the root categories for this Workspace, that the given member may read. |
|
HashMap<Class<?>,Set<Publication>> |
getClassPubSetMap()
|
|
static Comparator<Workspace> |
getComparator(String str,
boolean reverse)
|
|
static String |
getCSVHeader(String lang)
Returns the CSV header of this object |
|
String |
getDataName(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. |
|
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. |
|
String |
getFullEmail()
Returns the full email in the form "WorkspaceTitle |
|
String |
getFullEmail(String lang)
Returns the full email in the form "WorkspaceTitle |
|
String[] |
getGlobalCSS()
Getter for globalCSS |
|
Set<String> |
getGlobalWYSIWYGStyle()
Returns a Set of global style for the current workspace. |
|
static Map<String,Set<String>> |
getGlobalWYSIWYGStyleMap()
|
|
TreeSet<Group> |
getGroupSet()
|
|
static Comparator<Workspace> |
getGroupSizeComparator(String lang)
Returns a new Comparator instance to compare workspace based on the number of groups in each workspace. |
|
String |
getHomeUrl(Locale userLocal)
Returns the home url for the given workspace calculated from portal categories that belongs to workspace |
|
protected Category |
getHomeUrlVisitor(Collection<Category> collect,
Set<Publication> portalSet)
Internal methods to check home url |
|
String |
getIcon()
Returns the image path icon for the given workspace |
|
String |
getLanguage()
|
|
Set<String> |
getLocalWYSIWYGStyle(String global)
Returns a Set of local style for a given global style |
|
Set<Member> |
getMemberSet()
Returns a set of members that belongs to groups of this workspace. |
|
Set<Member> |
getMemberSet(boolean includeDBMember)
Returns a set of members that belongs to groups of this workspace. |
|
static Comparator<Workspace> |
getMemberSizeComparator(String lang)
Returns a new Comparator instance to compare workspace based on the number of members in each workspace. |
|
static Comparator<Workspace> |
getNameComparator(String lang)
Returns a new Comparator instance to compare workspace based on their title. |
|
int |
getOrder()
|
|
static Comparator<Workspace> |
getOrderComparator(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(Class<?> clazz)
Return all publication for a given Clazz |
|
|
getPublicationSet(Class<?> clazz,
boolean specialState)
Return all the publication in/not a special state for the given class |
|
Set<Publication> |
getPublicationSet(Workflow workflow)
Return all publication for a given Workflow |
|
Set<Publication> |
getPublicationSet(Workflow workflow,
boolean specialState)
Return all the publication in/not a special state for the given Workflow |
|
TreeSet<Publication> |
getPubSet()
|
|
static Workspace |
getRequestWorkspace(javax.servlet.http.HttpServletRequest request)
Get the workspace stored in the request |
|
WKRole |
getRole(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 |
|
HashMap<String,WKRole> |
getRoleMap()
Getter of RoleMap |
|
static Set<Workspace> |
getRootWorkspaces(Comparator<Workspace> comparator)
All Workspaces with no parent, sorted with comparator if not null. |
|
static Set<Workspace> |
getRootWorkspaces(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 |
|
Set<Workspace> |
getSubWorkspaces()
Gives the set of all WS just under the ws in parameter. |
|
Set<Workspace> |
getSubWorkspaces(Member loggedMember)
Return the workspaces just under the workspace in parameter. |
|
String |
getTitle()
Get the value of title. |
|
String |
getTitle(String lang)
Get the value of title bound to the given language. |
|
String |
getTitle(String lang,
boolean useDefault)
Get the value of title bound to the given language. |
|
HashMap<String,String> |
getTitleML()
Retrieve the HashMap containing the titles of this Workspace in language other than the main site language. |
|
String |
getTypeDescription(Class clazz,
String lang)
Returns the description for the given type (class) in the given language. |
|
String |
getTypeLabel(Class clazz,
String lang)
Returns the label for the given type (class) in the given language. |
|
HashMap<Class<?>,Object> |
getTypeMap()
Getter of TypeMap |
|
Set<Class<?>> |
getTypeSet()
Returns a Set of all visible types |
|
WFRole |
getWFRole(WKRole wkRole)
Returns the WFRole bound to the given WKRole. |
|
Set<String> |
getWFRoleIdSet()
Return a set of all WFRoleId |
|
Set<WFRole> |
getWFRoleSet()
Return a set of all WFRole |
|
Set<WKRole> |
getWKRoleSet()
Return a set of all WKRole |
|
Set<WKRole> |
getWKRoleSet(Class clazz)
Return all the WKRole for a given Class |
|
Set<WKRole> |
getWKRoleSet(Workflow wf)
Return all the WKRole for a given Workflow |
|
Workflow |
getWorkflow(Class clazz)
Find the Worflow associated to the given class. |
|
Workflow |
getWorkflow(Class<?> clazz,
boolean checkSuperclass)
Find the Worflow associated to the given class or one of it's super class. |
|
Set<Workflow> |
getWorkflowSet()
Returns a Set of all workflow used by calling getWorkflow(clazz,false) on all clazz. |
|
WSTypeEntry |
getWSTypeEntry(Class clazz)
Returns a WSTypeEntry describing custom properties for a given type in a given workspace. |
|
WSTypeEntry |
getWSTypeEntry(String className)
Returns a WSTypeEntry describing custom properties for a given type in a given workspace. |
|
static Set<String> |
getWysiwygCSSFileSet()
Returns the list of CSS files for the WYSIWYG. |
|
boolean |
hasWKRole(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(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. |
|
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,
Map context)
Performs data deletion |
|
void |
performUpdate(Member mbr,
Map context)
Performs data update |
|
void |
setAdministrators(ArrayList<Member> administrators)
|
|
void |
setCatSet(HashSet<Category> catSet)
|
|
void |
setClosed(boolean closed)
Setter for isClosed |
|
void |
setDefaultGroup(Group defaultGroup)
Set the default group for this workspace. |
|
void |
setEmail(String email)
|
|
void |
setGlobalCSS(String[] globalCSS)
Setter for globcalCSS |
|
void |
setLanguage(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(HashMap<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(String v)
Set the value of title. |
|
void |
setTitleML(HashMap<String,String> v)
Set the HashMap containing the titles of this Workspace in language other than the main site language. |
|
void |
setTypeMap(HashMap<Class<?>,Object> typeMap)
Setter of TypeMap |
|
void |
setTypeWorkflow(Class<?> clazz,
Workflow wf)
Link a Workflow to a given Class. |
|
boolean |
setWSTypeEntry(Class<?> clazz,
WSTypeEntry wste)
Link a WSTypeEntry to a given Class. |
|
String |
toCSV(String lang)
Returns a CSV view of this object |
|
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 String REVISION
protected String title
protected HashMap<String,String> titleML
protected int order
protected ArrayList<Member> administrators
protected HashMap<Class<?>,Object> typeMap
protected HashMap<String,WKRole> roleMap
protected HashSet<Category> catSet
protected String email
protected boolean isModel
protected boolean isClosed
protected String[] globalCSS
protected String language
protected Workspace parent
protected Group defaultGroup
protected transient TreeSet<Group> groupSet
protected transient TreeSet<Publication> pubSet
protected transient HashMap<Class<?>,Set<Publication>> classPubSetMap
public static String PARENT_WORKSPACE_PARAMNAME
public static final String WORKSPACE_ICON
public static final String WORKSPACE_MODEL_ICON
public static final String WORKSPACE_CLOSED_ICON
public static final String WORKSPACE_CS_ICON
public static final String WORKSPACE_CS_MODEL_ICON
public static final String WORKSPACE_MODEL_CLOSED_ICON
public static final String ALL_WORKSPACE_ICON
protected transient Category cachedHomeCat
protected static transient Map<String,Set<String>> cssGlobalMap
Constructor Detail |
---|
public Workspace()
public Workspace(Workspace other)
Method Detail |
---|
public ControllerStatus checkWrite(int op, Member mbr, boolean checkIntegrity, Map context)
Data
checkWrite
in class Data
op
- 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 Set<Workspace> getRootWorkspaces(Comparator<Workspace> comparator)
comparator
-
public static Set<Workspace> getRootWorkspaces(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 Set<Workspace> getSubWorkspaces()
public Set<Workspace> getSubWorkspaces(Member loggedMember)
loggedMember
- Only Workspaces for which the loggedMember is Worker are returned
public Set<Workspace> getAllSubWorkspaces()
public Set<Workspace> getAllSubWorkspaces(Member loggedMember)
loggedMember
- Only Workspaces for which the loggedMember is Worker are returned
public String toString()
toString
in class Data
public void exportXmlField(StringBuffer sb, int indentLevel)
Data
exportXmlField
in class Data
sb
- the StringBufferindentLevel
- the indent levelpublic String toCSV(String lang)
toCSV
in class Data
lang
- the output language
public static String getCSVHeader(String lang)
lang
- the output language
public String getIcon()
public void flushHomeUrl()
public String getHomeUrl(Locale userLocal)
userLocal
- the user local
protected Category getHomeUrlVisitor(Collection<Category> collect, 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 Set<String> getGlobalWYSIWYGStyle()
public Set<String> getLocalWYSIWYGStyle(String global)
global
- the selected global style
public static Map<String,Set<String>> getGlobalWYSIWYGStyleMap()
public static Set<String> getWysiwygCSSFileSet()
PolicyManager.checkWysiwygCSSFile(Set)
protected static void initWYSIWYGStyleMap()
public static Set<Workspace> getAllWorkspaceSet()
public static Set<Workspace> getAllWorkspaceSet(Member member)
member
- the working member
public static Set<Workspace> getAllWorkspaceSetWithoutModel()
public static Set<Workspace> getAllWorkspaceSetModel()
public static SortedSet<Workspace> getAllWorkingWorkspaceSet(Member loggedMember, JcmsContext jcmsContext)
loggedMember
- the current logged memberjcmsContext
- the current jcmsContext
public Workflow getWorkflow(Class clazz)
clazz
-
getWorkflow(Class, boolean)
public Workflow getWorkflow(Class<?> clazz, boolean checkSuperclass)
clazz
- the target classcheckSuperclass
- should check super class
getWorkflow(Class)
public WSTypeEntry getWSTypeEntry(Class clazz)
clazz
- the target class
public WSTypeEntry getWSTypeEntry(String className)
className
- the target class name
public String getTypeLabel(Class clazz, String lang)
clazz
- the classlang
- the language
public String getTypeDescription(Class clazz, String lang)
clazz
- the classlang
- the language
public boolean hasWorkflow(Class clazz)
clazz
- the class to check
public Set<Class<?>> getTypeSet()
public boolean canPublish(Class clazz)
public Set<Workflow> getWorkflowSet()
public void setTypeWorkflow(Class<?> clazz, Workflow wf)
clazz
- the clazz to linkwf
- the workflow to linksetWSTypeEntry(Class, WSTypeEntry)
public boolean setWSTypeEntry(Class<?> clazz, WSTypeEntry wste)
clazz
- the clazz to linkwste
- the WSTypeEntry to link with
public Set<Publication> getPublicationSet(Workflow workflow)
workflow
-
public Set<Publication> getPublicationSet(Workflow workflow, boolean specialState)
workflow
- specialState
-
public TreeSet<Publication> getPubSet()
public void updatePubSet(Publication pub, boolean add)
pub
- the publication to be added or removedadd
- add if true, remove if falsepublic HashMap<Class<?>,Set<Publication>> getClassPubSetMap()
public <T extends Publication> Set<T> getPublicationSet(Class<?> clazz, boolean specialState)
clazz
- specialState
-
public <T extends Publication> Set<T> getPublicationSet(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(String wfRoleId)
wfRoleId
- the role id
public boolean hasWKRole(String wfRoleId)
wfRoleId
- the id of the WFRole to check
public boolean hasWKRole(WFRole wfRole)
wfRole
- the WFRole to check
public Set<String> getWFRoleIdSet()
public Set<WFRole> getWFRoleSet()
public Set<WKRole> getWKRoleSet()
public Set<WKRole> getWKRoleSet(Workflow wf)
wf
-
public Set<WKRole> getWKRoleSet(Class clazz)
clazz
- the class
public void linkRole(WFRole wfRole, WKRole wkRole)
wfRole
- wkRole
- public boolean isAdmin(Member member)
member
-
public static Comparator<Workspace> getComparator(String str, boolean reverse)
public static Comparator<Workspace> getNameComparator(String lang)
lang
- the language in which to compare workspacepublic static Comparator<Workspace> getOrderComparator(String lang)
lang
- the language in which to compare workspaces'title
when order is the same.public static Comparator<Workspace> getGroupSizeComparator(String lang)
lang
- the language in which to compare workspaces'title when
number of groups is the same.public static Comparator<Workspace> getMemberSizeComparator(String lang)
lang
- the language in which to compare workspaces'title when
number of members is the same.public Set<Member> getMemberSet()
public 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 String getDataName(String language)
Data
getDataName
in class Data
language
- the language in which to return the name if multilang available for the data.
getTitle(String)
,
Data.getDataName(String)
public String getTitle(String lang)
lang
- the language to get the title
public String getTitle(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 String getTitle()
public void setTitle(String v)
v
- Value to assign to title.public HashMap<String,String> getTitleML()
public void setTitleML(HashMap<String,String> v)
v
- Value to assign to titleML.public void setGlobalCSS(String[] globalCSS)
globalCSS
- Set of css namepublic 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 HashMap<String,WKRole> getRoleMap()
public void setRoleMap(HashMap<String,WKRole> roleMap)
roleMap
- public HashMap<Class<?>,Object> getTypeMap()
public void setTypeMap(HashMap<Class<?>,Object> typeMap)
typeMap
- public int getOrder()
public void setOrder(int order)
order
- The order to set.public TreeSet<Group> getGroupSet()
public void updateGroupSet(Group grp, boolean add)
grp
- the group to be added or removedadd
- add if true, remove if falsepublic ArrayList<Member> getAdministrators()
public void setAdministrators(ArrayList<Member> administrators)
administrators
- The administrators to set.public HashSet<Category> getCatSet()
public void setCatSet(HashSet<Category> catSet)
catSet
- The catSet to set.public String getEmail()
public String getLanguage()
public void setLanguage(String language)
language
- The language to set.public Workspace getParent()
public void setParent(Workspace parent)
parent
- The parent workspace to set.public String getFullEmail()
public String getFullEmail(String lang)
lang
- the language used to retrive Workspace title
public void setEmail(String email)
email
- The email to set.public ControllerStatus checkIntegrity()
checkIntegrity
in class Data
public ControllerStatus checkMember(int op, Member mbr, Map context)
checkMember
in class Data
op
- 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, Map context)
checkCreate
in class Data
mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)
public ControllerStatus checkUpdate(Member mbr, Map context)
checkUpdate
in class Data
mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)
public ControllerStatus checkDelete(Member mbr, Map context)
checkDelete
in class Data
mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)
public void performUpdate(Member mbr, Map context)
Data
performUpdate
in class Data
mbr
- 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, Map context)
performDelete
in class Data
mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)public Set<Category> getCatSet(Member mbr)
mbr
- the member. May be null.
protected void exportXmlRelated(StringBuffer sb, String related, int indentLevel)
exportXmlRelated
in class Data
public 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 |