public class Workspace extends Data implements EditableData
Modifier and Type | Class and Description |
---|---|
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.
|
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
BasicStorable.CdateComparator<T extends Storable>, BasicStorable.IdComparator<T extends Storable>, BasicStorable.MdateComparator<T extends Storable>
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<Member> |
administrators |
protected int |
alertThreshold |
static java.lang.String |
ALL_WORKSPACE_ICON |
protected Data |
cachedHomeData |
protected java.util.HashSet<Category> |
catSet |
protected java.util.HashMap<java.lang.Class<?>,java.util.Set<Publication>> |
classPubSetMap |
static java.lang.String |
COLLABORATIVESPACE_CLASSNAME |
protected static java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
cssGlobalMap |
protected FileAnalyzerThread |
currentAnalyzerThread |
protected Group |
defaultGroup |
protected java.lang.String |
email |
protected WorkspaceFileAnalyzer |
fileAnalyzer |
protected java.lang.String[] |
globalCSS |
protected java.util.TreeSet<Group> |
groupSet |
protected java.util.HashMap<java.lang.Class<?>,java.util.Set<java.lang.String>> |
instanceWorkflowGroupMap |
protected java.util.HashMap<java.lang.Class<?>,java.util.Set<java.lang.String>> |
instanceWorkflowIdMap |
protected boolean |
isClosed |
protected boolean |
isModel |
protected java.lang.String |
language |
static java.lang.String |
LAST_QUOTA_NOTIFICATION_DATE |
protected long |
lastQuotaNotificationDate |
protected int |
order |
protected Workspace |
parent |
static java.lang.String |
PARENT_WORKSPACE_PARAMNAME |
protected WorkspaceFileAnalyzer |
previousFileAnalyzer |
protected java.util.TreeSet<Publication> |
pubSet |
protected long |
quota |
protected QuotaElement |
quotaAlert |
static java.lang.String |
REVISION |
protected java.util.HashMap<java.lang.String,WKRole> |
roleMap |
protected Category |
tagRoot |
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 |
protected boolean |
useDefaultQuota |
protected java.util.HashMap<java.lang.Class<?>,java.lang.Boolean> |
wfByInstanceMap |
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 |
author, authorDBID, channel, DISPLAY_URL_EXTRA_INFO, extension, extraDataMap, extraDBDataMapToSaveOnOp, importMap, opAuthor, opDelegate
ADATE_SEARCH, ADMIN_NOTES_PROP, ADVANCED_TAB, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, ICON_ARCHIVE, ICON_LOCK, ICON_LOCK_STRONG, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, JALIOS_JUNIT_PROP, JCMS_CADDY, JCMS_MSG_LIST, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, LOG_FILE, LOG_TOPIC_SECURITY, LOGGER_PROP, LOGGER_XMLPROP, MBR_PHOTO_DIR, MDATE_SEARCH, MONITOR_XML, OP_CREATE, OP_CREATE_STR, OP_DEEP_COPY, OP_DEEP_COPY_STR, OP_DEEP_DELETE, OP_DEEP_DELETE_STR, OP_DELETE, OP_DELETE_STR, OP_MERGE, OP_MERGE_STR, OP_UPDATE, OP_UPDATE_STR, PDATE_SEARCH, PHOTO_DIR, PHOTO_ICON, PHOTO_ICON_HEIGHT, PHOTO_ICON_WIDTH, PHOTO_LARGE, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_WIDTH, PHOTO_NORMAL, PHOTO_NORMAL_HEIGHT, PHOTO_NORMAL_WIDTH, PHOTO_SMALL, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_WIDTH, PHOTO_TINY, PHOTO_TINY_HEIGHT, PHOTO_TINY_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, SESSION_AUTHORIZED_FILENAMES_SET, STATS_REPORT_DIR, STATUS_PROP, STORE_XML, TEMPLATE_TAB, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_WIDTH, TYPES_ICON_ALT_PROP, TYPES_ICON_SUFFIX_PROP, TYPES_ICON_TITLE_PROP, TYPES_PREFIX_PROP, TYPES_THUMB_SUFFIX_PROP, UDATE_SEARCH, UPDATE_RIGHT_TAB, UPLOAD_DIR, URL_REGEXP, WARNING_MSG, WEBAPP_PROP, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XML
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
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
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
Modifier and Type | Method and Description |
---|---|
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() |
int |
getAlertThreshold() |
java.util.Set<Workspace> |
getAllSubWorkspaces()
Return all the descendant Workspaces of the current Workspace.
|
java.util.Set<Workspace> |
getAllSubWorkspaces(Member loggedMember)
Return all the descendant Workspaces of the current Workspace.
|
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)
Deprecated.
|
static java.lang.String |
getCSVHeader(java.lang.String lang)
Returns the CSV header of this object
|
FileAnalyzerThread |
getCurrentAnalyzerThread()
Return the current analyzer thread if analyze is in progress
|
java.lang.String |
getDataIcon()
Returns source information for the icon associated to this Data, either a relative path or sprite classes name.
|
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()
Deprecated.
Workspace email should not be used anymore. it will be remove in further version.
|
WorkspaceFileAnalyzer |
getFileAnalyzer(boolean refresh)
returns
WorkspaceFileAnalyzer instance associated with this workspace. |
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)
Deprecated.
Workspace email should not be used anymore. it will be remove in further version.
|
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 userLocale)
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.util.HashMap<java.lang.Class<?>,java.util.Set<java.lang.String>> |
getInstanceWorkflowGroupMap() |
java.util.HashMap<java.lang.Class<?>,java.util.Set<java.lang.String>> |
getInstanceWorkflowIdMap() |
java.lang.String |
getLanguage() |
long |
getLastQuotaNotificationDate() |
java.util.Set<java.lang.String> |
getLocalWYSIWYGStyle(java.lang.String global)
Returns a Set of local style
for a given global style
|
int |
getMemberCount(boolean includeDBMember)
Returns the member count for this workspace.
|
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.
|
WorkspaceFileAnalyzer |
getPreviousFileAnalyzer()
returns previous
WorkspaceFileAnalyzer instance associated with this workspace if any. |
<T extends Publication> |
getPublicationSet(java.lang.Class<?> clazz)
Return all publication for a given Clazz
|
<T extends Publication> |
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() |
long |
getQuota() |
QuotaElement |
getQuotaAlert() |
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.
|
Category |
getTagRoot() |
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
|
boolean |
getUseDefaultQuota() |
java.util.HashMap<java.lang.Class<?>,java.lang.Boolean> |
getWfByInstanceMap() |
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.
|
void |
handleFileAnalyzeEnd(WorkspaceFileAnalyzer fileAnalyzer)
This method is called when global file analyzer has end
|
boolean |
hasDBMember()
Returns true if DBMembers belong to this workspace
|
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
|
void |
invalidateHasDBMember()
Invalidate the cache for hasDBMember method.
|
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 |
isMember(Member member)
Returns true if the given member belongs tho this workspace.
|
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 |
setAlertThreshold(int alertThreshold) |
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)
Deprecated.
Workspace email should not be used anymore. it will be remove in further version.
|
void |
setGlobalCSS(java.lang.String[] globalCSS)
Setter for globcalCSS
|
void |
setInstanceWorkflowGroupMap(java.util.HashMap<java.lang.Class<?>,java.util.Set<java.lang.String>> instanceWorkflowGroupMap) |
void |
setInstanceWorkflowIdMap(java.util.HashMap<java.lang.Class<?>,java.util.Set<java.lang.String>> instanceWorkflowIdMap) |
void |
setLanguage(java.lang.String language) |
void |
setLastQuotaNotificationDate(long lastQuotaNotificationDate) |
void |
setModel(boolean model)
Setter for model
|
void |
setOrder(int order) |
void |
setParent(Workspace parent) |
void |
setQuota(long quota) |
void |
setQuotaAlert(QuotaElement quotaAlert) |
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 |
setTagRoot(Category tagRoot) |
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.
|
void |
setUseDefaultQuota(boolean useDefaultQuota) |
void |
setWfByInstanceMap(java.util.HashMap<java.lang.Class<?>,java.lang.Boolean> wfByInstanceMap) |
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
|
canRequestUnlock, checkCreate, checkDelete, checkIntegrity, checkLockMember, checkStrongLockMember, checkUpdate, clone, computeDBIDArray, exportXml, exportXml, exportXml, exportXml, exportXmlRelated, fillExportXmlFieldAttributes, getAllReferrerSet, getAllReferrerSet, getAllTypeFieldEntry, getAuthor, getAuthor, getAuthorComparator, getAuthorDBID, getAuthorId, getAuthorSelector, getBooleanFieldValue, getBooleanFieldValue, getCaddyComparator, getCategoryFieldValue, getCategoryFieldValue, getCdateSelector, getDataIconAlt, getDataIconHtml, getDataIconHtml, getDataIconTitle, getDataImage, getDataImage, getDataImage, getDataNameComparator, getDate, getDate, getDateSelector, getDeletableSelector, getDisplayLink, getDisplayLink, getDisplayLink, getDisplayUrl, getDoubleFieldValue, getDoubleFieldValue, getExportXmlDataValue, getExtension, getExtraData, getExtraDataMap, getExtraDBData, getExtraDBDataMap, getExtraInfo, getExtraInfoMap, getFieldStatusMap, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getGenericThumbnail, getImportAuthor, getImportBatch, getImportDate, getImportDisplayUrl, getImportId, getImportMap, getImportMdate, getImportSelector, getImportSignature, getImportSource, getImportSourceUrl, getImportUrl, getIntFieldValue, getIntFieldValue, getLangPropertyValue, getLinkCount, getLinkIndexedDataSet, getLinkIndexedDataSet, getLockDate, getLockInfo, getLockMember, getLongFieldValue, getLongFieldValue, getMdateSelector, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getOpAuthor, getOpAuthorComparator, getOpDelegate, getRowId, getRowIdComparator, getStrongLock, getStrongLockDate, getStrongLockInfo, getStrongLockMember, getStrongLockSelector, getTypeEntry, getTypeFieldsEntries, getUpdateInstance, getVirtualIDSet, hashCode, importXml, importXmlFieldsWithReferences, importXmlFiles, importXmlReferences, initializeDBDataCollections, isDBData, isImported, isImportUpdated, isInDatabase, isLocked, isPersisted, isStrongLocked, lock, markNewImport, mergeHybridLink, performAfterWrite, performBeforeWrite, performCreate, performCreate, performDelete, performUpdate, prepareUpdateContext, printDataName, printDisplayLinkEnd, printDisplayLinkStart, printDisplayUrl, printDisplayUrl, putStrongLock, releaseStrongLock, releaseStrongLock, removeExtraData, removeExtraDBData, removeExtraInfo, setAuthor, setAuthorDBID, setAuthorId, setBooleanFieldValue, setCategoryFieldValue, setDoubleFieldValue, setExtension, setExtraData, setExtraDataMap, setExtraDBData, setExtraDBDataMap, setExtraDBDataMap, setExtraInfo, setFieldValue, setFieldValue, setImportAuthor, setImportBatch, setImportDate, setImportDisplayUrl, setImportId, setImportMap, setImportMdate, setImportSignature, setImportSource, setImportSourceUrl, setImportUpdated, setIntFieldValue, setLongFieldValue, setMdate, setOpAuthor, setOpDelegate, setRowId, toFullString, unlock, unlock, unmarkNewImport, updateExtraDataMap, updateExtraDBDataMap, updateIndexTreeSet
clearId, compareTo, equals, getAttribute, getAttributes, getCdate, getCdateComparator, getDdate, getId, getIdComparator, getMdate, getMdateComparator, getStore, getUrid, hasBeenUpdated, isStored, resolveAtt, resolveVal, setAttributes, setAttributes, setCdate, setDdate, setId, setStore, toXml
public static final java.lang.String COLLABORATIVESPACE_CLASSNAME
public static final java.lang.String REVISION
public static final java.lang.String LAST_QUOTA_NOTIFICATION_DATE
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.Class<?>,java.lang.Boolean> wfByInstanceMap
protected java.util.HashMap<java.lang.Class<?>,java.util.Set<java.lang.String>> instanceWorkflowIdMap
protected java.util.HashMap<java.lang.Class<?>,java.util.Set<java.lang.String>> instanceWorkflowGroupMap
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 Category tagRoot
protected Workspace parent
protected Group defaultGroup
protected int alertThreshold
protected long quota
protected boolean useDefaultQuota
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
protected transient WorkspaceFileAnalyzer fileAnalyzer
protected transient WorkspaceFileAnalyzer previousFileAnalyzer
protected transient FileAnalyzerThread currentAnalyzerThread
protected transient long lastQuotaNotificationDate
protected transient QuotaElement quotaAlert
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 Data cachedHomeData
protected static transient java.util.Map<java.lang.String,java.util.Set<java.lang.String>> cssGlobalMap
public Workspace()
public Workspace(Workspace other)
public ControllerStatus checkWrite(int op, Member mbr, boolean checkIntegrity, java.util.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 java.util.Set<Workspace> getRootWorkspaces(java.util.Comparator<Workspace> comparator)
comparator
- the comparatorpublic static java.util.Set<Workspace> getRootWorkspaces(java.util.Comparator<Workspace> comparator, Member loggedMember)
comparator
- the comparatorloggedMember
- the loggedMemberpublic Workspace getParent(Member loggedMember)
loggedMember
- the logged memberpublic 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 returnedpublic java.util.Set<Workspace> getAllSubWorkspaces()
public java.util.Set<Workspace> getAllSubWorkspaces(Member loggedMember)
loggedMember
- Only Workspaces for which this Member is Worker are returnedpublic void exportXmlField(java.lang.StringBuffer sb, int indentLevel)
Data
exportXmlField
in class Data
sb
- the StringBufferindentLevel
- the indent levelpublic java.lang.String toCSV(java.lang.String lang)
public static java.lang.String getCSVHeader(java.lang.String lang)
lang
- the output languagepublic java.lang.String getIcon()
public java.lang.String getDataIcon()
Data
If this method behavior has not been overriden by subclass, the default icon can be declared
using property types.{Type}.icon
, where {Type}
is the short class name of
the type concerned.
types.Article.icon: images/jalios/icon/abstract.gif
types.Article.icon: ss_sprite ss_date
getDataIcon
in class Data
images/jalios/icon/abstract.gif
) or sprite classes name (eg ss_sprite ss_date
).Data.getDataIconHtml(String)
public void flushHomeUrl()
public java.lang.String getHomeUrl(java.util.Locale userLocale)
userLocale
- the user localprotected Category getHomeUrlVisitor(java.util.Collection<Category> collect, java.util.Set<Publication> portalSet)
collect
- a collection of category to checkportalSet
- the portal setpublic boolean isWorkspaceCat(Category cat)
cat
- the child categorypublic Category getFirstWorkspaceCat(Category cat)
cat
- the child categorypublic java.util.Set<java.lang.String> getGlobalWYSIWYGStyle()
public java.util.Set<java.lang.String> getLocalWYSIWYGStyle(java.lang.String global)
global
- the selected global stylepublic 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 memberpublic 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 jcmsContextpublic Workflow getWorkflow(java.lang.Class clazz)
clazz
- the classgetWorkflow(Class, boolean)
public Workflow getWorkflow(java.lang.Class<?> clazz, boolean checkSuperclass)
clazz
- the target classcheckSuperclass
- should check super classgetWorkflow(Class)
public WSTypeEntry getWSTypeEntry(java.lang.Class clazz)
clazz
- the target classpublic WSTypeEntry getWSTypeEntry(java.lang.String className)
className
- the target class namepublic java.lang.String getTypeLabel(java.lang.Class clazz, java.lang.String lang)
clazz
- the classlang
- the languagepublic java.lang.String getTypeDescription(java.lang.Class clazz, java.lang.String lang)
clazz
- the classlang
- the languagepublic boolean hasWorkflow(java.lang.Class clazz)
clazz
- the class to checkpublic java.util.Set<java.lang.Class<?>> getTypeSet()
public boolean canPublish(java.lang.Class clazz)
clazz
- the Class for which publication authorization should be verifiedpublic 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 withpublic java.util.Set<Publication> getPublicationSet(Workflow workflow)
workflow
- the workflowpublic java.util.Set<Publication> getPublicationSet(Workflow workflow, boolean specialState)
workflow
- the workflowspecialState
- the statepublic 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)
T
- a Publication typeclazz
- the classspecialState
- the statepublic <T extends Publication> java.util.Set<T> getPublicationSet(java.lang.Class<?> clazz)
T
- a Publication typeclazz
- the classpublic WFRole getWFRole(WKRole wkRole)
wkRole
- the WKRole to look for.public WKRole getRole(WFRole wfRole)
wfRole
- the rolepublic void setRole(WFRole wfRole, WKRole wkRole)
wfRole
- the WFRolewkRole
- the WKRolepublic WKRole getRole(java.lang.String wfRoleId)
wfRoleId
- the role idpublic boolean hasWKRole(java.lang.String wfRoleId)
wfRoleId
- the id of the WFRole to checkpublic boolean hasWKRole(WFRole wfRole)
wfRole
- the WFRole to checkpublic 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
- the workflowpublic java.util.Set<WKRole> getWKRoleSet(java.lang.Class clazz)
clazz
- the classpublic void linkRole(WFRole wfRole, WKRole wkRole)
wfRole
- the WFRolewkRole
- the WKRolepublic boolean isAdmin(Member member)
member
- the memberpublic boolean isMember(Member member)
member
- the memberpublic static java.util.Comparator<Workspace> getComparator(java.lang.String str, boolean reverse)
ComparatorManager
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 int getMemberCount(boolean includeDBMember)
includeDBMember
- if true it includes for DBMember.public boolean hasDBMember()
public void invalidateHasDBMember()
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 sessionpublic 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 requestpublic java.lang.String getDataName(java.lang.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 java.lang.String getTitle(java.lang.String lang)
lang
- the language to get the titlepublic 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 languagepublic 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
- the RoleMappublic java.util.HashMap<java.lang.Class<?>,java.lang.Object> getTypeMap()
public void setTypeMap(java.util.HashMap<java.lang.Class<?>,java.lang.Object> typeMap)
typeMap
- the TypeMappublic 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 Category getTagRoot()
public void setTagRoot(Category tagRoot)
tagRoot
- the tag root 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 titlepublic 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 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, java.util.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, java.util.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, java.util.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, java.util.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, java.util.Map context)
performDelete
in class Data
mbr
- 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 Data
public boolean isCollaborativeSpace()
public ObjectLongTreeMap getFileSizeMap(boolean refresh)
refresh
- if true refresh the mappublic WorkspaceFileAnalyzer getPreviousFileAnalyzer()
WorkspaceFileAnalyzer
instance associated with this workspace if any.
This method doesn't do any refresh nor computation like getFileAnalyzer(boolean)WorkspaceFileAnalyzer
instance associated with this workspace if any.public WorkspaceFileAnalyzer getFileAnalyzer(boolean refresh)
WorkspaceFileAnalyzer
instance associated with this workspace. Note that as file analyze is down asynchronously, this method should returns null if an analyze is in progress (or if refresh is asked).
In this case, user should ask getCurrentAnalyzerThread() to retrieve the analyze thread. getCompleteness() method on the thread can be used to know the state of the thread.refresh
- force to ignore data previously present in cacheWorkspaceFileAnalyzer
instance associated with this workspace or null if an analyze is in progress (or if refresh is asked).public FileAnalyzerThread getCurrentAnalyzerThread()
FileAnalyzerThread
or null if no analyze is runningpublic void handleFileAnalyzeEnd(WorkspaceFileAnalyzer fileAnalyzer)
fileAnalyzer
- the file analyzerpublic java.util.HashMap<java.lang.Class<?>,java.lang.Boolean> getWfByInstanceMap()
public void setWfByInstanceMap(java.util.HashMap<java.lang.Class<?>,java.lang.Boolean> wfByInstanceMap)
public java.util.HashMap<java.lang.Class<?>,java.util.Set<java.lang.String>> getInstanceWorkflowIdMap()
public void setInstanceWorkflowIdMap(java.util.HashMap<java.lang.Class<?>,java.util.Set<java.lang.String>> instanceWorkflowIdMap)
public java.util.HashMap<java.lang.Class<?>,java.util.Set<java.lang.String>> getInstanceWorkflowGroupMap()
public void setInstanceWorkflowGroupMap(java.util.HashMap<java.lang.Class<?>,java.util.Set<java.lang.String>> instanceWorkflowGroupMap)
public int getAlertThreshold()
public void setAlertThreshold(int alertThreshold)
public long getQuota()
public void setQuota(long quota)
public long getLastQuotaNotificationDate()
public void setLastQuotaNotificationDate(long lastQuotaNotificationDate)
public QuotaElement getQuotaAlert()
public void setQuotaAlert(QuotaElement quotaAlert)
public boolean getUseDefaultQuota()
public void setUseDefaultQuota(boolean useDefaultQuota)
Copyright © 2001-2010 Jalios SA. All Rights Reserved.