Class Workspace
- All Implemented Interfaces:
EditableData,JcmsConstants,ImportConstants,MashupConstants,Storable,JaliosConstants,LangPropertyArgument,TreeNode,Cloneable,Comparable<BasicStorable>
- Since:
- jcms-4.1
- Author:
- Jean-Philippe Encausse
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSelect model workspaces the user can work on.static classCompare workspace with their classification level.static classSelect workspace with the specified classification level.static classSelect workspace that are Collaborative Spaces.static classWorkspace.FavoriteComparator<T extends Workspace>Compares workspaces based on member engagement.static classWorkspace.GroupSizeComparator<T extends Workspace>static classSelect workspace with a Portal.static classWorkspace.MemberSizeComparator<T extends Workspace>static classSelect model workspaces.static classWorkspace.NameComparator<T extends Workspace>static classSelect open workspaces.static classWorkspace.OrderComparator<T extends Workspace>static classSelect the workspaces which are sons of the given parent Workspace.static classDeprecated.static classSelect a set of workspace by their name.Nested classes/interfaces inherited from class com.jalios.jcms.Data
Data.AuthorComparator<T extends Data>, Data.AuthorizedSelector, 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.StrongLockSelectorNested 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
FieldsModifier and TypeFieldDescriptionprotected intstatic final Stringprotected Dataprotected booleanprotected intprotected HashMap<Class<?>, Set<Publication>> protected WeakReference<PortletCollection> static final Stringprotected Class<?> static final Stringprotected FileAnalyzerThreadprotected Groupprotected WorkspaceFileSizeResultprotected PortalInterfaceprotected Stringprotected booleanprotected booleanprotected booleanprotected Stringstatic final Stringprotected longprotected intprotected intprotected Workspacestatic Stringstatic final Stringprotected WorkspaceFileSizeResultprotected TreeSet<Publication> protected longprotected QuotaElementprotected Categoryprotected Stringprotected booleanstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class com.jalios.jcms.Data
author, authorDBID, channel, DISPLAY_URL_EXTRA_INFO, extraDataMap, extraDBDataMapToSaveOnOp, importMap, opAuthor, opDelegate, WRITE_IN_PROGRESS_EXTRA_INFO, WYSIWYG_INLINE_EDIT_REQUEST_PARAMETERFields inherited from class com.jalios.jstore.BasicStorable
cdate, ddate, id, isStoreCache, mdate, storeFields 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_PROPFields 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_YEARFields inherited from interface com.jalios.jcms.JcmsConstants
ADATE_SEARCH, ADVANCED_TAB, AJAX_MODE_ATTR, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, CLASS_PROPERTY, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, COUNTRY_SPRITE, CS_TYPOLOGY_ROOT_CAT_VID, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DATA_DIRECTORY, DEFAULT_PHOTO_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, GENERATIONAL_STORE_DIRECTORY, GLYPH_ICON_PREFIX, ICON_ARCHIVE, ICON_ICON_PREFIX, ICON_LOCK, ICON_LOCK_STRONG, ICON_PREFIX_PROP, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, IS_IN_FRONT_OFFICE, JALIOS_JUNIT_PROP, JCMS_CADDY, JCMS_MSG_LIST, JCMS_TOASTR_COLLECTION, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, LANG_SPRITE, 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, ORGANIZATION_ROOT_GROUP_PROP, PDATE_SEARCH, PHOTO_DIR, PHOTO_ICON, PHOTO_ICON_HEIGHT, PHOTO_ICON_PROP_PREFIX, PHOTO_ICON_WIDTH, PHOTO_LARGE, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_PROP_PREFIX, PHOTO_LARGE_WIDTH, PHOTO_MINI, PHOTO_MINI_HEIGHT, PHOTO_MINI_PROP_PREFIX, PHOTO_MINI_WIDTH, PHOTO_NORMAL, PHOTO_NORMAL_HEIGHT, PHOTO_NORMAL_PROP_PREFIX, PHOTO_NORMAL_WIDTH, PHOTO_SMALL, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_PROP_PREFIX, PHOTO_SMALL_WIDTH, PHOTO_TINY, PHOTO_TINY_HEIGHT, PHOTO_TINY_PROP_PREFIX, PHOTO_TINY_WIDTH, PHOTO_XLARGE, PHOTO_XLARGE_HEIGHT, PHOTO_XLARGE_PROP_PREFIX, PHOTO_XLARGE_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, RAW_CONTENT_ICON_PREFIX, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, SECURITY_LOG_FILE, SESSION_AUTHORIZED_FILENAMES_SET, SPRITE_ICON_PREFIX, STATS_REPORT_DIR, STATUS_PROP, STORE_XML, SUCCESS_MSG, SVG_ICON_PREFIX, SVGINLINE_ICON_PREFIX, SVGSPRITE_ICON_PREFIX, TEMPLATE_TAB, THEME_DIR, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_WIDTH, TTCARD_MEDIA_HEIGHT, TTCARD_MEDIA_WIDTH, TYPES_ICON_ALT_PROP, TYPES_ICON_SUFFIX_PROP, TYPES_ICON_TITLE_PROP, TYPES_PREFIX_PROP, TYPES_THUMB_SUFFIX_PROP, TYPES_UNKNOWN_CLASS_PROP, UDATE_SEARCH, UPDATE_RIGHT_TAB, UPLOAD_DIR, UPLOAD_PERMISSION_COUNT_PROP_PREFIX, UPLOAD_PERMISSION_SIZE_PROP_PREFIX, URL_REGEXP, VID_LOGGED_MEMBER, WARNING_MSG, WEBAPP_PROP, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XMLFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBeReadBy(Member member, boolean searchInGroups, RightInfo rightInfo) Checks if the specified member is authorized to read this Data.booleancanPublish(Class clazz) Checks if the given class can be published in this workspace.checkCreate(Member mbr, Map context) Checks if the creation can be performedcheckDelete(Member mbr, Map context) Checks if the deletion can be performedChecks whether or not data integrity constraints are respected.checkMember(int op, Member mbr, Map context) Checks if the given member can perform the given operation.checkUpdate(Member mbr, Map context) Checks if the update can be performedcheckWrite(int op, Member mbr, boolean checkIntegrity, Map context) Checks if the given write operation can be performedprotected voidThis method must be overrided by sub-classes that are persisted in JStore and that have hybrid collection/array.voidexportXmlField(StringBuffer sb, int indentLevel) Fills the given StringBuffer with Xml export of fields of this data.protected voidexportXmlRelated(StringBuffer sb, String related, int indentLevel) voidReset the cache of the home category.static DataSelectorReturns the selector for active Workspaces (Not a model, and not closed)Retrieve administrators of this workspace (including DBMember).getAdministrators(boolean queryDB) Retrieve administrators of this workspace.Retrieve the ids of DBMember configured as administrators of this workspace.intReturn all the descendant Workspaces of the current Workspace.getAllSubWorkspaces(Member loggedMember) Return all the descendant Workspaces of the current Workspace.
If theloggedMemberparameter is not null, only Workspaces for which the Member is Worker are returned.getAllWorkingWorkspaceSet(Member loggedMember, JcmsContext jcmsContext) Gives the list of workspaces for which the current loggedMember is a worker.Returns a Set with all workspace, model or not.getAllWorkspaceSet(Member member) Returns a Set of workspace, for the given member.Returns a Set with all workspace model.Returns a Set with all workspace without workspace model.Gives the root categories for this Workspace, that the given member may read.intRetrieve the classification level of this workspace.HashMap<Class<?>, Set<Publication>> Returns the CollaborativeSpace associated to this workspace (or null if none).static Comparator<Workspace> getComparator(String str, boolean reverse) Deprecated.protected StringgetConfiguredWorkflowId(Class clazz) return the configured workflow id for this type, don't resolve inheritage if value isWorkflowConstants.INHERIT_WORKFLOWstatic StringgetCSVHeader(String lang) Returns the CSV header of this objectReturn the current analyzer thread if analyze is in progressReturns source information for the icon associated to this Data, either a relative path or sprite classes name.getDataIconAlt(String lang) Returns the alternative text (alt attribute) to use in the HTML IMG tag of this Data's icon.getDataName(String language) Return the name of this Data, every sub class Data which will be displayed to user should implements this method already.Returns the default group for this workspace.getDefaultGroup(boolean search) Returns the default group for this workspace.intRetrieve the effective classification level of this workspace using baseline classification level configured on site.static Comparator<Workspace> getFavoriteComparator(Member mbr, String lang) Returns a new Comparator instance to compare workspace based on member engagement.getFileAnalyzer(boolean refresh) returnsWorkspaceFileSizeResultinstance associated with this workspace.getFileSizeMap(boolean refresh) Returns the map file size for each content-type.Returns first workspace category mathching (or parent) given category.static Comparator<Workspace> getGroupSizeComparator(String lang) Returns a new Comparator instance to compare workspace based on the number of groups in each workspace.Retrieves the home portal for current Workspace by searching through its PortalInterface which could be a Portal, a PortalJspCollection or a CollaborativeSpacegetHomeUrl(Locale userLocale) Returns the home url for the given workspace calculated from portal categories that belongs to workspaceprotected CategorygetHomeUrlVisitor(Collection<Category> collect, Set<Publication> portalSet) Internal methods to check home urlgetIcon()Returns the image path icon for the given workspacegetIncomingAddress(Member member) Computes an incoming e-mail for given Member.getIncomingAddress(Member member, boolean useLabel) Computes an incoming e-mail for given Member.longintgetMemberCount(boolean includeDBMember) Returns the member count for this workspace.Deprecated.since JCMS-5751, useAllMemberQueryHandlergetMemberSet(boolean includeDBMember) Deprecated.since JCMS-5751, useAllMemberQueryHandlerstatic Comparator<Workspace> Returns a new Comparator instance to compare workspace based on the number of members in each workspace.intRetrieve the minimum classification level of publication authorized in this workspace.static Comparator<Workspace> getNameComparator(String lang) Returns a new Comparator instance to compare workspace based on their title.intgetOrder()static Comparator<Workspace> getOrderComparator(String lang) Returns a new Comparator instance to compare workspace based on their order.getOtherWorkspaceContentList(Member mbr, int firstResult, int maxResults) Returns the list of contents of other workspaces shared in this workspace.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.returns previousWorkspaceFileSizeResultinstance associated with this workspace if any.getPublicationSet(Workflow workflow) Return all publication for a given WorkflowgetPublicationSet(Workflow workflow, boolean specialState) Return all the publication in/not a special state for the given Workflow<T extends Publication>
Set<T> getPublicationSet(Class<?> clazz) Return all publication for a given Clazz<T extends Publication>
Set<T> getPublicationSet(Class<?> clazz, boolean specialState) Return all the publication in/not a special state for the given classlonggetQuota()static WorkspacegetRequestWorkspace(javax.servlet.http.HttpServletRequest request) Get the workspace stored in the requestGet the WKRole linked to a WFRole for a given WorkflowGet the WKRole linked to a WFRole for a given WorkflowGetter of RoleMapgetRootWorkspaces(Comparator<Workspace> comparator) All Workspaces with no parent, sorted with comparator if not null.getRootWorkspaces(Comparator<Workspace> comparator, Member loggedMember) All Workspaces with no parent the loggedMember in parameter belongs to, sorted with comparator if not null.static WorkspacegetSessionWorkspace(javax.servlet.http.HttpSession session) Get the workspace stored in the sessiongetSharedContentList(Member mbr, int firstResult, int maxResults) Returns the list of content of this workspace shared with other workspaces.getSubTypeSet(Class<T> clazz) Returns a set of types used in this Workspace, extending the given class.getSubTypeSet(Class<T> clazz, Member mbr) Returns a set of types used in this Workspace, extending the given class and that the given member can publish.getSubTypeSet(Class<T> clazz, Member mbr, Map<String, ?> contextMap) Returns a set of types used in this Workspace, extending the given class and that the given member can publish.Gives the set of all WS just under the ws in parameter.getSubWorkspaces(Member loggedMember) Return the workspaces just under the workspace in parameter.getTitle()Get the value of title.Get the value of title bound to the given language.Get the value of title bound to the given language.Retrieve the HashMap containing the titles of this Workspace in language other than the main site language.Collection<? extends TreeNode> Returns a Collection of TreeNode children of the current nodeReturns parent of the current nodeReturns the root of the current nodegetTypeDescription(Class clazz, String lang) Returns the description for the given type (class) in the given language.getTypeLabel(Class clazz, String lang) Returns the label for the given type (class) in the given language.Getter of TypeMapReturns a Set of all visible typesbooleanReturns the WFRole bound to the given WKRole.Return a set of all WFRoleIdReturn a set of all WFRoleReturn a set of all WKRolegetWKRoleSet(Workflow wf) Return all the WKRole for a given WorkflowgetWKRoleSet(Class clazz) Return all the WKRole for a given ClassgetWorkflow(Class clazz) Find the Worflow associated to the given class.getWorkflow(Class clazz, boolean useParentWFOnEmpty) Find the Worflow associated to the given class.getWorkflowId(Class clazz, boolean useParentWFOnEmpty) Find the Worflow Id associated to the given class.Returns a Set of all workflow used by calling getWorkflow(clazz,false) on all clazz.getWSTypeEntry(Class clazz) Returns a WSTypeEntry describing custom properties for a given type in a given workspace.getWSTypeEntry(String className) Returns a WSTypeEntry describing custom properties for a given type in a given workspace.voidhandleFileAnalyzeEnd(WorkspaceFileSizeResult fileAnalyzer) This method is called when global file analyzer has endbooleanReturns true if DBMembers belong to this workspacebooleanCheck if a WKRole exists in this workspace for the specified WFRolebooleanCheck if a WKRole exists in this workspace for the specified WFRole idbooleanhasWorkflow(Class clazz) Check if the type is linked to a workflow for this workspaceprotected booleaninternalCanBeReadBy(Member member, boolean searchInGroups, RightInfo rightInfo) voidInvalidate the internal cache used byisCollaborativeSpace()getCollaborativeSpace()voidInvalidate the cache for hasDBMember method.booleanCheck if the member is an administrator of the workspace or of the channelbooleanCheck if this workspace is classified.booleanisClosed()Getter for isClosed.booleanReturns true if this workspace is a CollaborativeSpace (i.e.booleanisFavorite(Member member) Returns true if this workspace is a favorite workspace for given Member.booleanbooleanReturns true if the given member belongs tho this workspace.booleanisModel()Getter for modelbooleanisOpen()booleanReturns boolean true if the TreeNode is a leafbooleanReturns boolean true if the TreeNode is a nodebooleanisWorkspaceCat(Category cat) Checks if the given category is a workspace category or a descendent of worspace categories.voidLink into the workspace a WFRole to a WKRoleprotected voidperformAfterWrite(int op, Member mbr, Map context) Called to perform some action after the write.voidperformDelete(Member mbr, Map context) Performs data deletionvoidperformUpdate(Member mbr, Map context) Performs data update.voidsetAdministrators(ArrayList<Member> administrators) voidsetAdministratorsDBID(ArrayList<String> dbMbrIds) Set the ids of DBMember to configure as administrators of this workspace.voidsetAlertThreshold(int alertThreshold) voidvoidsetClassificationLevel(Integer level) Set the classification level of this workspace.voidsetClosed(boolean closed) Setter for isClosedvoidsetDefaultGroup(Group defaultGroup) Set the default group for this workspace.voidsetIncomingMailEnabled(boolean enable) voidsetIncomingMailLocalPart(String localPart) voidsetInstanceWorkflowGroupMap(HashMap<Class<?>, Set<String>> instanceWorkflowGroupMap) voidsetInstanceWorkflowIdMap(HashMap<Class<?>, Set<String>> instanceWorkflowIdMap) voidsetLanguage(String language) voidsetLastQuotaNotificationDate(long lastQuotaNotificationDate) voidsetMainPortal(PortalInterface mainPortal) voidsetMinClassificationLevel(Integer level) Set the minimum classification level of publication authorized in this workspace.voidsetModel(boolean model) Setter for modelvoidsetOrder(int order) voidvoidsetQuota(long quota) voidsetQuotaAlert(QuotaElement quotaAlert) static voidsetRequestWorkspace(javax.servlet.http.HttpServletRequest request, Workspace workspace) Set the given workspace to the request.voidBinds a WKRole to a WFRolevoidsetRoleMap(HashMap<String, WKRole> roleMap) Setter of RoleMapstatic voidsetSessionWorkspace(javax.servlet.http.HttpSession session, Workspace workspace) Set the given workspace to the session.voidsetTagRoot(Category tagRoot) voidSet the value of title.voidConvenient method to set the value of the title field in any language (default site language or any other).
This method will set the proper field value (setTitle(String)orsetTitleML(HashMap)) depending on the specified language.voidSet the HashMap containing the titles of this Workspace in language other than the main site language.voidsetTypeMap(HashMap<Class<?>, Object> typeMap) Setter of TypeMapvoidsetTypeWorkflow(Class<?> clazz, Workflow wf) Link a Workflow to a given Class.voidsetUseDefaultQuota(boolean useDefaultQuota) voidsetWfByInstanceMap(HashMap<Class<?>, Boolean> wfByInstanceMap) booleansetWSTypeEntry(Class<?> clazz, WSTypeEntry wste) Link a WSTypeEntry to a given Class.protected voidsplitHybridCollections(Data previousData) This method must be overrided by sub-classes that are persisted in JStore and that have hybrid collection/array.Returns a CSV view of this objecttoString()voidupdateGroupSet(Group grp, boolean add) Update the groupSet indexvoidupdatePubSet(Publication pub, boolean add) Update pubSet indexMethods inherited from class com.jalios.jcms.Data
canBeReadBy, canBeUnlockedBy, canRequestUnlock, checkAndPerformCreate, checkAndPerformCreate, checkAndPerformDelete, checkAndPerformDelete, checkAndPerformUpdate, checkAndPerformUpdate, checkCreate, checkDelete, checkIntegrity, checkLockMember, checkStrongLockMember, checkStrongLockMember, checkUpdate, cleanHybridCollection, cleanHybridCollection, cleanHybridCollection, clone, computeDBIDArray, computeDBIDList, computeDBIDSet, exportXml, exportXml, exportXml, exportXml, exportXmlRelated, fillExportXmlFieldAttributes, getAllReferrerSet, getAllReferrerSet, getAllRelatedData, getAllTypeFieldEntry, getAuthor, getAuthor, getAuthorComparator, getAuthorDBID, getAuthorId, getAuthorSelector, getBooleanFieldValue, getBooleanFieldValue, getCaddyComparator, getCategoryFieldValue, getCategoryFieldValue, getCdateSelector, getDataIconCSS, getDataIconHtml, getDataIconHtml, getDataIconTitle, getDataImage, getDataImage, getDataImage, getDataNameComparator, getDate, getDate, getDateSelector, getDefaultFieldStatus, getDeletableSelector, getDisplayLink, getDisplayLink, getDisplayLink, getDisplayLink, getDisplayLinkCss, getDisplayLinkDataAttribute, getDisplayLinkHtmlAttributes, getDisplayUrl, getDoubleFieldValue, getDoubleFieldValue, getExportXmlDataValue, getExtraData, getExtraDataMap, getExtraDBData, getExtraDBDataMap, getExtraInfo, getExtraInfoMap, getFieldStatusMap, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getGenericThumbnail, 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, getOpAuthorId, getOpDelegate, getReadAuthorizedSelector, getReferrerSet, getRowId, getRowIdComparator, getStrongLock, getStrongLockContext, getStrongLockContextData, getStrongLockDate, getStrongLockInfo, getStrongLockMember, getStrongLockSelector, getTypeEntry, getTypeFieldsEntries, getUpdateInstance, getVirtualIDSet, importXml, importXmlFieldsWithReferences, importXmlFiles, importXmlReferences, initializeDBDataCollections, isDBData, isImported, isImportUpdated, isInDatabase, isLocked, isPersisted, isStrongLocked, lock, markNewImport, mergeHybridLink, mergeHybridLink, performBeforeWrite, performCreate, performCreate, performDelete, performUpdate, prepareUpdateContext, printDataName, printDisplayLinkEnd, printDisplayLinkStart, printDisplayLinkStart, printDisplayUrl, printDisplayUrl, putStrongLock, putStrongLock, releaseStrongLock, releaseStrongLock, removeAllRelatedData, removeAllRelatedData, removeExtraData, removeExtraDBData, removeExtraInfo, setAuthor, setAuthorDBID, setAuthorId, setBooleanFieldValue, setCategoryFieldValue, setDoubleFieldValue, setExtraData, setExtraDataMap, setExtraDBData, setExtraDBDataMap, setExtraDBDataMap, setExtraInfo, setFieldValue, setFieldValue, setImportAuthor, setImportBatch, setImportDate, setImportDisplayUrl, setImportId, setImportMap, setImportMdate, setImportSignature, setImportSource, setImportSourceUrl, setImportUpdated, setIntFieldValue, setLongFieldValue, setMdate, setOpAuthor, setOpAuthorId, setOpDelegate, setRowId, toFullString, unlock, unlock, unmarkNewImport, updateDisplayLinkCss, updateDisplayLinkDataAttribute, updateDisplayLinkHtmlAttributes, updateExtraDataMap, updateExtraDBDataMap, updateIndexTreeSetMethods inherited from class com.jalios.jstore.BasicStorable
clearId, compareTo, equals, getAttribute, getAttributes, getCdate, getCdateComparator, getDdate, getId, getIdComparator, getMdate, getMdateComparator, getStore, getUrid, hasBeenUpdated, hashCode, isStored, resetInternalCaches, resolveAtt, resolveVal, setAttributes, setAttributes, setCdate, setDdate, setId, setStore, toXml
-
Field Details
-
WORKSPACE_DELETION_CONTROLLER_CTXT
- See Also:
-
COLLABORATIVESPACE_CLASSNAME
- See Also:
-
CTXT_IGNORE_CONTENT_CHECK_DELETE
- See Also:
-
PORTALJSPCOLLECTION_CLASSNAME
- See Also:
-
LAST_QUOTA_NOTIFICATION_DATE
- See Also:
-
title
-
titleML
-
order
protected int order -
administrators
-
administratorsDBID
-
typeMap
-
wfByInstanceMap
-
instanceWorkflowIdMap
-
instanceWorkflowGroupMap
-
roleMap
-
catSet
-
isModel
protected boolean isModel -
isClosed
protected boolean isClosed -
language
-
tagRoot
-
parent
-
defaultGroup
-
isIncomingMailEnabled
protected boolean isIncomingMailEnabled -
incomingMailLocalPart
-
alertThreshold
protected int alertThreshold -
quota
protected long quota -
useDefaultQuota
protected boolean useDefaultQuota -
classificationLevel
protected int classificationLevel -
minClassificationLevel
protected int minClassificationLevel -
groupSet
-
pubSet
-
classPubSetMap
-
fileAnalyzer
-
previousFileAnalyzer
-
currentAnalyzerThread
-
lastQuotaNotificationDate
protected transient long lastQuotaNotificationDate -
quotaAlert
-
collaborativeSpaceClass
-
collaborativeSpace
-
PARENT_WORKSPACE_PARAMNAME
-
WORKSPACE_ICON
- See Also:
-
WORKSPACE_MODEL_ICON
- See Also:
-
WORKSPACE_CLOSED_ICON
- See Also:
-
WORKSPACE_CS_ICON
- See Also:
-
WORKSPACE_CS_MODEL_ICON
- See Also:
-
WORKSPACE_CS_CLOSED_ICON
- See Also:
-
WORKSPACE_MODEL_CLOSED_ICON
- See Also:
-
ALL_WORKSPACE_ICON
- See Also:
-
cachedHomeData
-
cachedHomePortal
protected transient boolean cachedHomePortal -
homePortal
-
-
Constructor Details
-
Workspace
public Workspace() -
Workspace
-
-
Method Details
-
checkWrite
Description copied from class:DataChecks if the given write operation can be performed- Overrides:
checkWritein classData- Parameters:
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)- Returns:
- a ControllerStatus
-
performAfterWrite
Description copied from class:DataCalled to perform some action after the write.- Overrides:
performAfterWritein classData- Parameters:
op- the operation (OP_CREATE, OP_UPDATE, ...)mbr- the member which requests the write operationcontext- a map which contains context parameters (may be null)
-
getRootWorkspaces
All Workspaces with no parent, sorted with comparator if not null.- Parameters:
comparator- the comparator- Returns:
- All orphean WS
- Since:
- jcms-7.0.0
-
getRootWorkspaces
public 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.- Parameters:
comparator- the comparatorloggedMember- the loggedMember- Returns:
- All orphean WS, as seen for loggedMember
- Since:
- jcms-7.0.0
-
getParent
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.- Parameters:
loggedMember- the logged member- Returns:
- The Parent WS if loggedMember is worker of it
-
setDefaultGroup
Set the default group for this workspace.- Parameters:
defaultGroup- the default group.- Since:
- jcms-7.0.0
-
getDefaultGroup
Returns the default group for this workspace. If there is no default group, returns the group with lesser DataRight.- Returns:
- the default group for this workspace.
- Since:
- jcms-7.0.0
-
getDefaultGroup
Returns the default group for this workspace.- Parameters:
search- if true and if there is no default group, returns the group with lesser DataRight.- Returns:
- the default group for this workspace.
- Since:
- jcms-7.0.0
-
getSubWorkspaces
Gives the set of all WS just under the ws in parameter.- Returns:
- All children ws in a Set.
-
getSubWorkspaces
Return the workspaces just under the workspace in parameter. If the loggedMember parameter is not null, only workspaces for which the loggedMember is worker are returned.- Parameters:
loggedMember- Only Workspaces for which the loggedMember is Worker are returned- Returns:
- All the ws sons of the workspace in parameter for which the loggedMember is worker.
-
getAllSubWorkspaces
Return all the descendant Workspaces of the current Workspace.- Returns:
- All descendant Workspaces in a Set.
-
getAllSubWorkspaces
Return all the descendant Workspaces of the current Workspace.
If theloggedMemberparameter is not null, only Workspaces for which the Member is Worker are returned.- Parameters:
loggedMember- Only Workspaces for which this Member is Worker are returned- Returns:
- All the descendant Workspaces of the current Workspace for which the loggedMember is Worker.
-
getTreeParent
Description copied from interface:TreeNodeReturns parent of the current node- Specified by:
getTreeParentin interfaceTreeNode- Returns:
- TreeNode parent Node
-
isTreeLeaf
public boolean isTreeLeaf()Description copied from interface:TreeNodeReturns boolean true if the TreeNode is a leaf- Specified by:
isTreeLeafin interfaceTreeNode- Returns:
- boolean indicating if node is leaf or node
-
isTreeNode
public boolean isTreeNode()Description copied from interface:TreeNodeReturns boolean true if the TreeNode is a node- Specified by:
isTreeNodein interfaceTreeNode- Returns:
- boolean indicating if node is leaf or node
-
getTreeRoot
Description copied from interface:TreeNodeReturns the root of the current node- Specified by:
getTreeRootin interfaceTreeNode- Returns:
- TreeNode root Node
-
getTreeChildren
Description copied from interface:TreeNodeReturns a Collection of TreeNode children of the current node- Specified by:
getTreeChildrenin interfaceTreeNode- Returns:
- Collection of TreeNode
-
toString
-
exportXmlField
Description copied from class:DataFills the given StringBuffer with Xml export of fields of this data.- Overrides:
exportXmlFieldin classData- Parameters:
sb- the StringBufferindentLevel- the indent level
-
toCSV
Returns a CSV view of this object -
getCSVHeader
Returns the CSV header of this object- Parameters:
lang- the output language- Returns:
- the CSV header of this object
- Since:
- jcms-5.0.0
-
getIcon
Returns the image path icon for the given workspace- Returns:
- String image relative path
- Since:
- jcms-5.5.0
-
getDataIcon
Description copied from class:DataReturns source information for the icon associated to this Data, either a relative path or sprite classes name.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.- Either by specifying a relative image path :
types.Article.icon: images/jalios/icon/abstract.gif
- or else by using a sprite icon :
types.Article.icon: ss_sprite ss_date
- Overrides:
getDataIconin classData- Returns:
- a relative path (eg
images/jalios/icon/abstract.gif) or sprite classes name (egss_sprite ss_date). - See Also:
- Either by specifying a relative image path :
-
getDataIconAlt
Description copied from class:DataReturns the alternative text (alt attribute) to use in the HTML IMG tag of this Data's icon.If this method behavior has not been overriden by subclass, the default alternative text can be declared using language property
types.{Type}.alt, where{Type}is the short class name of the type concerned.For example :
[en.prop]types.Workspace.alt: Workspace[fr.prop]types.Workspace.alt: Espace de travail
- Overrides:
getDataIconAltin classData- Parameters:
lang- the user language- Returns:
- the alt Html attribute for the IMG Html tag, or empty string if non alternative text was define in property.
- See Also:
-
flushHomeUrl
public void flushHomeUrl()Reset the cache of the home category. Should only be called by category, publication and workspace listeners -
getHomePortal
Retrieves the home portal for current Workspace by searching through its PortalInterface which could be a Portal, a PortalJspCollection or a CollaborativeSpace- Returns:
- the home portal of current Workspace
- Since:
- jcms-9.0.0
-
getHomeUrl
Returns the home url for the given workspace calculated from portal categories that belongs to workspace- Parameters:
userLocale- the user local- Returns:
- String
-
getHomeUrlVisitor
Internal methods to check home url- Parameters:
collect- a collection of category to checkportalSet- the portal set- Returns:
- Category the hoem category
-
isWorkspaceCat
Checks if the given category is a workspace category or a descendent of worspace categories.- Parameters:
cat- the child category- Returns:
- true if the given category is a workspace category or a descendent of worspace categories.
- Since:
- jcms 4.1
-
getFirstWorkspaceCat
Returns first workspace category mathching (or parent) given category.- Parameters:
cat- the child category- Returns:
- category the workspace category.
- Since:
- jcms 5.7.4
-
getAllWorkspaceSet
Returns a Set with all workspace, model or not. CAUTION: DO NOT alter the returned set, clone prior modification.- Returns:
- Set of Workspace
- Since:
- jcms-5.5.0
-
getAllWorkspaceSet
Returns a Set of workspace, for the given member. If the Member is an Admin return all workspace (model or not) If member is not null return workspace's member otherwise return empty TreeSet.- Parameters:
member- the working member- Returns:
- Set of Workspace
- Since:
- jcms-5.5.0
-
getAllWorkspaceSetWithoutModel
Returns a Set with all workspace without workspace model.- Returns:
- Set of Workspace
- Since:
- jcms-5.5.0
-
getAllWorkspaceSetModel
Returns a Set with all workspace model.- Returns:
- Set of Workspace
- Since:
- jcms-5.5.0
-
getAllWorkingWorkspaceSet
public static SortedSet<Workspace> getAllWorkingWorkspaceSet(Member loggedMember, JcmsContext jcmsContext) Gives the list of workspaces for which the current loggedMember is a worker.- Parameters:
loggedMember- the current logged memberjcmsContext- the current jcmsContext- Returns:
- the sorted, regarding to the title in the current language, set of workspace for which the logged member is worker
-
getWorkflow
Find the Worflow associated to the given class. This method also check for super class.- Parameters:
clazz- the class- Returns:
- the workflow linked to the given class.
- Since:
- jcms-4.1
- See Also:
-
getWorkflow
Find the Worflow associated to the given class. This method also check for super class if useParentWFOnEmpty is true.- Parameters:
clazz- the classuseParentWFOnEmpty- true if parent class should be checked when typeMap doesn't have the configuration for the type or if "inherit" is used- Returns:
- the workflow linked to the given class.
-
getWorkflowId
Find the Worflow Id associated to the given class. This method also check for super class if useParentWFOnEmpty is true.- Parameters:
clazz- the classuseParentWFOnEmpty- true if parent class should be checked when typeMap doesn't have the configuration for the type or if "inherit" is used- Returns:
- the workflow id linked to the given class.
-
getConfiguredWorkflowId
return the configured workflow id for this type, don't resolve inheritage if value isWorkflowConstants.INHERIT_WORKFLOW- Parameters:
clazz- the class- Returns:
- the workflow id, may be null if type is not activated in the workspace
-
getWSTypeEntry
Returns a WSTypeEntry describing custom properties for a given type in a given workspace. WARNING: If Workspace doesn't handle a WSTypeEntry for this class it will return a fake WSTypeEntry.- Parameters:
clazz- the target class- Returns:
- WSTypeEntry the type description or null if it doesn't exists
- Since:
- jcms-5.5.0
-
getWSTypeEntry
Returns a WSTypeEntry describing custom properties for a given type in a given workspace. WARNING: If Workspace doesn't handle a WSTypeEntry for this class it will return a fake WSTypeEntry.- Parameters:
className- the target class name- Returns:
- WSTypeEntry the type description or null if it doesn't exists
- Since:
- jcms-5.5.0
-
getTypeLabel
Returns the label for the given type (class) in the given language.- Parameters:
clazz- the classlang- the language- Returns:
- the label for the given type in the given language.
-
getTypeDescription
Returns the description for the given type (class) in the given language.- Parameters:
clazz- the classlang- the language- Returns:
- the description for the given type (class) in the given language.
-
hasWorkflow
Check if the type is linked to a workflow for this workspace- Parameters:
clazz- the class to check- Returns:
- true if the type is linked to a workflow
- Since:
- jcms-4.1
-
getTypeSet
Returns a Set of all visible types- Returns:
- a Set of all visible types (String)
- Since:
- jcms-4.1
-
getSubTypeSet
Returns a set of types used in this Workspace, extending the given class and that the given member can publish.- Parameters:
clazz- the classmbr- the member- Returns:
- a set of types used in this Workspace, extending the given class and that the given member can publish.
- Since:
- jcms-9.0.0
-
getSubTypeSet
public <T> Set<Class<? extends T>> getSubTypeSet(Class<T> clazz, Member mbr, Map<String, ?> contextMap) Returns a set of types used in this Workspace, extending the given class and that the given member can publish.- Parameters:
clazz- the classmbr- the membercontextMap- an optional context map providing information on publish request context, may be null- Returns:
- a set of types used in this Workspace, extending the given class and that the given member can publish.
- Since:
- jcms-10.0.6 / JCMS-8882
-
getSubTypeSet
Returns a set of types used in this Workspace, extending the given class.- Parameters:
clazz- the class- Returns:
- a set of types used in this Workspace, extending the given class.
- Since:
- jcms-10.0.5
-
canPublish
Checks if the given class can be published in this workspace.- Parameters:
clazz- the Class for which publication authorization should be verified- Returns:
- true if the given class can be published in this workspace
- Since:
- jcms-4.1
-
getWorkflowSet
Returns a Set of all workflow used by calling getWorkflow(clazz,false) on all clazz.- Returns:
- a Set of all workflow used
- Since:
- jcms-4.1
-
setTypeWorkflow
Link a Workflow to a given Class. Warning since jcms-5.5.0 Workspace may use a WSTypeEntry. You may also use setWSTypeEntry(Class,WSTypeEntry) If the given class is linked to a WSTypeEntry then this method will throw a RuntimeException.- Parameters:
clazz- the clazz to linkwf- the workflow to link- Since:
- jcms-5.5.0
- See Also:
-
setWSTypeEntry
Link a WSTypeEntry to a given Class. If WSTypeEntry.isSameProperties() than channel properties then do not store the WSTypeEntry. Warning: Caller must create, update or delete the WSTypeEntry this method is only a convenient setter- Parameters:
clazz- the clazz to linkwste- the WSTypeEntry to link with- Returns:
- boolean true if the WSTypeEntry is used or false if it is same
- Since:
- jcms-5.5.0
-
getPublicationSet
Return all publication for a given Workflow- Parameters:
workflow- the workflow- Returns:
- a Set of publication
- Since:
- jcms-4.1
-
getPublicationSet
Return all the publication in/not a special state for the given Workflow- Parameters:
workflow- the workflowspecialState- the state- Returns:
- a Set of publication
- Since:
- jcms-4.1
-
getPubSet
- Returns:
- Returns the pubSet.
- Since:
- jcms-4.1
-
updatePubSet
Update pubSet index- Parameters:
pub- the publication to be added or removedadd- add if true, remove if false- Since:
- jcms-5.0.1
-
getClassPubSetMap
- Returns:
- map(class, pubSet)
- Since:
- jcms-4.1
-
getPublicationSet
Return all the publication in/not a special state for the given class- Type Parameters:
T- a Publication type- Parameters:
clazz- the classspecialState- the state- Returns:
- a Set of publication
- Since:
- jcms-4.1
-
getPublicationSet
Return all publication for a given Clazz- Type Parameters:
T- a Publication type- Parameters:
clazz- the class- Returns:
- a Set of publication
- Since:
- jcms-4.1
-
getWFRole
Returns the WFRole bound to the given WKRole.- Parameters:
wkRole- the WKRole to look for.- Returns:
- the WFRole bound to the given WKRole.
- Since:
- jcms-5.0.5
-
getRole
Get the WKRole linked to a WFRole for a given Workflow- Parameters:
wfRole- the role- Returns:
- WKRole associated to the given WFRole
- Since:
- jcms-4.1
-
setRole
Binds a WKRole to a WFRole- Parameters:
wfRole- the WFRolewkRole- the WKRole- Since:
- jcms-5.5.0
-
getRole
Get the WKRole linked to a WFRole for a given Workflow- Parameters:
wfRoleId- the role id- Returns:
- WKRole associated to the given WFRole
- Since:
- jcms-4.1
-
hasWKRole
Check if a WKRole exists in this workspace for the specified WFRole id- Parameters:
wfRoleId- the id of the WFRole to check- Returns:
- true if the wfRoleID have associated WKRole
- Since:
- jcms-4.1
-
hasWKRole
Check if a WKRole exists in this workspace for the specified WFRole- Parameters:
wfRole- the WFRole to check- Returns:
- true if the wfRole have associated WKRole
- Since:
- jcms-4.1
-
getWFRoleIdSet
Return a set of all WFRoleId- Returns:
- a set of WFRoleId
- Since:
- jcms-4.1
-
getWFRoleSet
Return a set of all WFRole- Returns:
- a set of WFRole
- Since:
- jcms-4.1
-
getWKRoleSet
Return a set of all WKRole- Returns:
- a set of WKRole
- Since:
- jcms-4.1
-
getWKRoleSet
Return all the WKRole for a given Workflow- Parameters:
wf- the workflow- Returns:
- a Set of WKRole
- Since:
- jcms-4.1
-
getWKRoleSet
Return all the WKRole for a given Class- Parameters:
clazz- the class- Returns:
- a Set of WKRole
- Since:
- jcms-4.1
-
linkRole
Link into the workspace a WFRole to a WKRole- Parameters:
wfRole- the WFRolewkRole- the WKRole- Since:
- jcms-4.1
-
isAdmin
Check if the member is an administrator of the workspace or of the channel- Parameters:
member- the member- Returns:
- true if the member is an administrator
- Since:
- jcms-4.1
-
isMember
Returns true if the given member belongs tho this workspace.- Parameters:
member- the member- Returns:
- true if the given member belongs tho this workspace.
- Since:
- jcms-7.1.0
-
getComparator
Deprecated.- Since:
- jcms-5.0.0
-
getNameComparator
Returns a new Comparator instance to compare workspace based on their title.- Parameters:
lang- the language in which to compare workspace- Returns:
- a new NameComparator instance
- Since:
- jcms-5.6.1
-
getOrderComparator
Returns a new Comparator instance to compare workspace based on their order.- Parameters:
lang- the language in which to compare workspaces'title when order is the same.- Returns:
- a new OrderComparator instance
- Since:
- jcms-5.6.1
-
getGroupSizeComparator
Returns a new Comparator instance to compare workspace based on the number of groups in each workspace.- Parameters:
lang- the language in which to compare workspaces'title when number of groups is the same.- Returns:
- a new GroupSizeComparator instance
- Since:
- jcms-5.6.1
-
getMemberSizeComparator
Returns a new Comparator instance to compare workspace based on the number of members in each workspace.- Parameters:
lang- the language in which to compare workspaces'title when number of members is the same.- Returns:
- a new MemberSizeComparator instance
- Since:
- jcms-5.6.1
-
getFavoriteComparator
Returns a new Comparator instance to compare workspace based on member engagement.- Parameters:
mbr- the memberlang- the language in which to compare workspaces' title as default order criteria.- Returns:
- a new
Workspace.FavoriteComparatorinstance - Since:
- jcms-9.0.0
- See Also:
-
getActiveWorkspaceSelector
Returns the selector for active Workspaces (Not a model, and not closed)- Returns:
- the selector to filter active workspaces
- Since:
- jcms-10.0.0
-
getMemberSet
Deprecated.since JCMS-5751, useAllMemberQueryHandlerReturns a set of members that belongs to groups of this workspace. This method only returns Member (no DBMember).- Returns:
- a new Set containing all members of this Workspace
-
getMemberSet
Deprecated.since JCMS-5751, useAllMemberQueryHandlerReturns a set of members that belongs to groups of this workspace.- Parameters:
includeDBMember- if true it includes for DBMember (up toHibernateManager.getDefaultMaxResults()).- Returns:
- a new Set containing all members of this Workspace
- Since:
- jcms-7.0.0
-
getMemberCount
public int getMemberCount(boolean includeDBMember) Returns the member count for this workspace.- Parameters:
includeDBMember- if true it includes for DBMember.- Returns:
- the member count for this workspace.
- Since:
- jcms-8.0.0
-
hasDBMember
public boolean hasDBMember()Returns true if DBMembers belong to this workspace- Returns:
- true if DBMembers belong to this workspace
- Since:
- jcms-7.1.1
-
invalidateHasDBMember
public void invalidateHasDBMember()Invalidate the cache for hasDBMember method.- Since:
- jcms-7.1.1
-
setSessionWorkspace
Set the given workspace to the session.- Parameters:
session- the sessionworkspace- the workspace- Since:
- jcms-4.1
-
getSessionWorkspace
Get the workspace stored in the session- Parameters:
session- the session- Returns:
- the workspace in the session
- Since:
- jcms-4.1
-
setRequestWorkspace
public static void setRequestWorkspace(javax.servlet.http.HttpServletRequest request, Workspace workspace) Set the given workspace to the request.- Parameters:
request- the requestworkspace- the workspace- Since:
- jcms-5.0
-
getRequestWorkspace
Get the workspace stored in the request- Parameters:
request- the request- Returns:
- the workspace in the request
- Since:
- jcms-5.0
-
getDataName
Description copied from class:DataReturn the name of this Data, every sub class Data which will be displayed to user should implements this method already.
- The Title (multi-language) for a Publication.
- The Name (multi-language) for a Category.
- The Name for a Group, a Member.
- The Title (multi-language) for a Workspace.
Default behaviour is to return toFullString() of Data or empty string if toFullString is null.- Overrides:
getDataNamein classData- Parameters:
language- the language in which to return the name if multilang available for the data.- Returns:
- title of Workspace in given language or empty String if not specified.
- Since:
- jcms-5.1
- See Also:
-
getTitle
Get the value of title bound to the given language.- Parameters:
lang- the language to get the title- Returns:
- title in the given language.
- Since:
- jcms-4.1
-
getTitle
Get the value of title bound to the given language.- Parameters:
lang- the language to get the titleuseDefault- should main language used as default language if title does not exist in the given language- Returns:
- title in the given language.
- Since:
- jcms-4.1
-
getTitle
Get the value of title.- Returns:
- Value of title.
- Since:
- jcms-4.1
-
setTitle
Set the value of title.- Parameters:
v- Value to assign to title.- Since:
- jcms-4.1
-
getTitleML
Retrieve the HashMap containing the titles of this Workspace in language other than the main site language.- Returns:
- an HashMap of String.
- Since:
- jcms-4.1
-
setTitleML
Set the HashMap containing the titles of this Workspace in language other than the main site language.- Parameters:
v- Value to assign to titleML.- Since:
- jcms-4.1
-
setTitle
Convenient method to set the value of the title field in any language (default site language or any other).
This method will set the proper field value (setTitle(String)orsetTitleML(HashMap)) depending on the specified language.- Parameters:
lang- the language (ISO 639 code) in which to set the valuevalue- the value to set.- Since:
- jcms-10.0.1
- See Also:
-
isModel
public boolean isModel()Getter for model- Returns:
- model is workspace is a model
-
setModel
public void setModel(boolean model) Setter for model- Parameters:
model- is workspace is a model
-
isClosed
public boolean isClosed()Getter for isClosed. Is a workspace is closed, no contribution, no modification on groups are allowed.- Returns:
- isClosed is workspace is Closed For Contribution
-
setClosed
public void setClosed(boolean closed) Setter for isClosed- Parameters:
closed- to close this workspace for contribution
-
isOpen
public boolean isOpen() -
getRoleMap
Getter of RoleMap- Returns:
- the association: Workflow / WfRoleSet
- Since:
- jcms-4.1
-
setRoleMap
Setter of RoleMap- Parameters:
roleMap- the RoleMap- Since:
- jcms-4.1
-
getTypeMap
Getter of TypeMap- Returns:
- a Map Class / Workflow Id
- Since:
- jcms-4.1
-
setTypeMap
Setter of TypeMap- Parameters:
typeMap- the TypeMap- Since:
- jcms-4.1
-
getOrder
public int getOrder()- Returns:
- Returns the order.
- Since:
- jcms-4.1
-
setOrder
public void setOrder(int order) - Parameters:
order- The order to set.- Since:
- jcms-4.1
-
getGroupSet
- Returns:
- Returns the groupSet.
- Since:
- jcms-4.1
-
updateGroupSet
Update the groupSet index- Parameters:
grp- the group to be added or removedadd- add if true, remove if false- Since:
- jcms-5.0.1
-
getAdministrators
Retrieve administrators of this workspace (including DBMember).- Returns:
- Returns the administrators.
CAUTION: DO NOT alter the returned List, clone prior modification. - Since:
- jcms-4.1
- See Also:
-
getAdministrators
Retrieve administrators of this workspace.Including or not DBMember.
- Parameters:
queryDB- whether to query Database to retrieve any DBMember specified as administrators of this workspace- Returns:
- an ArrayList of Members, may return null and may contains null value when queryDB is set to false
- Since:
- JCMS-6331
-
setAdministrators
- Parameters:
administrators- The administrators to set.- Since:
- jcms-4.1
-
setAdministratorsDBID
Set the ids of DBMember to configure as administrators of this workspace.- Parameters:
dbMbrIds- an ArrayList of DBMember ids, may be null- Since:
- JCMS-6331
- See Also:
-
getAdministratorsDBID
Retrieve the ids of DBMember configured as administrators of this workspace.- Returns:
- an ArrayList of DBMember ids, may be null
- Since:
- JCMS-6331
- See Also:
-
splitHybridCollections
Description copied from class:DataThis method must be overrided by sub-classes that are persisted in JStore and that have hybrid collection/array.- Overrides:
splitHybridCollectionsin classData- Parameters:
previousData- the previous data (provided for update only)
-
cleanHybridCollections
protected void cleanHybridCollections()Description copied from class:DataThis method must be overrided by sub-classes that are persisted in JStore and that have hybrid collection/array.- Overrides:
cleanHybridCollectionsin classData
-
getCatSet
- Returns:
- Returns the catSet.
- Since:
- jcms-4.1
-
setCatSet
- Parameters:
catSet- The catSet to set.- Since:
- jcms-4.1
-
getTagRoot
- Returns:
- the tag root.
- Since:
- jcms-7.1.0
-
setTagRoot
- Parameters:
tagRoot- the tag root to set.- Since:
- jcms-7.1.0
-
getLanguage
- Returns:
- Returns the main Language of the workspace if it is specified. null otherwise.
- Since:
- jcms-5.7.3
-
setLanguage
- Parameters:
language- The language to set.- Since:
- jcms-5.7.3
-
getParent
- Returns:
- Returns the parent Workspace of the current workspace if it has one. null otherwise.
- Since:
- jcms-7.0.0
-
setParent
- Parameters:
parent- The parent workspace to set.- Since:
- jcms-7.0.0
-
isIncomingMailEnabled
public boolean isIncomingMailEnabled()- Returns:
- true if the incoming mail is enabled in this Workspace.
- Since:
- jcms-9.0.0
-
setIncomingMailEnabled
public void setIncomingMailEnabled(boolean enable) - Parameters:
enable- true to enable the incoming mail in this Workspace.- Since:
- jcms-9.0.0
-
getIncomingMailLocalPart
- Returns:
- the localPart of the incoming E-mail address.
- Since:
- jcms-9.0.0
-
getIncomingMailDefaultLocalPart
- Returns:
- a default, generated, not already used, incoming Mail LocalPart, built on Workspace's title in its main language.
- Since:
- jcms-9.0.0
-
setIncomingMailLocalPart
- Parameters:
localPart- the incoming Mail Address' localPart to set- Since:
- jcms-9.0.0
-
getIncomingAddress
Computes an incoming e-mail for given Member.
Output is like:
"space_email+mbr_authkey@server.com"
- Parameters:
member- the member for who generate the E-mail address.- Returns:
- an incoming Email address for this Workspace and Member, or null if incoming mail is disabled.
- Since:
- jcms-9.0.0
- See Also:
-
getIncomingAddress
Computes an incoming e-mail for given Member.
If label is used, output is like:
"Space title <space_email+mbr_authkey@server.com>"
Else, output is like:"space_email+mbr_authkey@server.com"
- Parameters:
member- the member for who generate the E-mail address.useLabel- weither to use Workspace title as label.- Returns:
- an incoming Email address for this Workspace and Member, or null if incoming mail is disabled.
- Since:
- jcms-9.0.0
- See Also:
-
checkIntegrity
Checks whether or not data integrity constraints are respected.- Overrides:
checkIntegrityin classData- Returns:
- a ControllerStatus
- Since:
- jcms-5.0.0
-
checkMember
Checks if the given member can perform the given operation.- Overrides:
checkMemberin classData- Parameters:
op- the operation (OP_CREATE, OP_UPDATE, ...)mbr- the member which requests the write operationcontext- a map which contains context parameters (may be null)- Returns:
- a ControllerStatus
- Since:
- jcms-5.0.0
-
checkCreate
Checks if the creation can be performed- Overrides:
checkCreatein classData- Parameters:
mbr- the member which requests the write operationcontext- a map which contains context parameters (may be null)- Returns:
- a ControllerStatus
- Since:
- jcms-5.0.0
-
checkUpdate
Checks if the update can be performed- Overrides:
checkUpdatein classData- Parameters:
mbr- the member which requests the write operationcontext- a map which contains context parameters (may be null)- Returns:
- a ControllerStatus
- Since:
- jcms-5.0.0
-
checkDelete
Checks if the deletion can be performed- Overrides:
checkDeletein classData- Parameters:
mbr- the member which requests the write operationcontext- a map which contains context parameters (may be null)- Returns:
- a ControllerStatus
- Since:
- jcms-5.0.0
-
performUpdate
Description copied from class:DataPerforms data update.- Overrides:
performUpdatein classData- Parameters:
mbr- the member which requests the write operationcontext- a map which contains context parameters (may be null)- Since:
- jcms-5.5.0
- See Also:
-
performDelete
Performs data deletion- Overrides:
performDeletein classData- Parameters:
mbr- the member which requests the write operationcontext- a map which contains context parameters (may be null)- Since:
- jcms-5.0.0
-
getCatSet
Gives the root categories for this Workspace, that the given member may read.- Parameters:
mbr- the member. May be null.- Returns:
- a sub set of getCatSet()
- Since:
- JCMS-6.1
-
exportXmlRelated
- Overrides:
exportXmlRelatedin classData
-
isCollaborativeSpace
public boolean isCollaborativeSpace()Returns true if this workspace is a CollaborativeSpace (i.e. generated with the Collaborative Spaces Plugin).- Returns:
- true if this workspace is a CollaborativeSpace (i.e. generated with the Collaborative Spaces Plugin).
- Since:
- jcms-6.1.0
-
getCollaborativeSpace
Returns the CollaborativeSpace associated to this workspace (or null if none).- Returns:
- the CollaborativeSpace associated to this workspace (or null if none).
- Since:
- jcms-10.0.5
-
invalidateCollaborativeSpaceCache
public void invalidateCollaborativeSpaceCache()Invalidate the internal cache used byisCollaborativeSpace()getCollaborativeSpace()- Since:
- JCMS-11732
-
isFavorite
Returns true if this workspace is a favorite workspace for given Member.- Parameters:
member- the member- Returns:
- true if this workspace is a favorite workspace for given Member.
- Since:
- jcms-10.0.0
-
getFileSizeMap
Returns the map file size for each content-type. To improve the performances, the map is cached unless it is requested to refresh it.This method retrieve the underlying
ObjectLongTreeMapwhich is NOT thread safe.
Always synchronize iteration or modification on the returned map.- Parameters:
refresh- if true refresh the map- Returns:
- the map file size for each content-type.
- Since:
- jcms-7.0.0
-
getPreviousFileAnalyzer
returns previousWorkspaceFileSizeResultinstance associated with this workspace if any. This method doesn't do any refresh nor computation like getFileAnalyzer(boolean)- Returns:
- previous
WorkspaceFileSizeResultinstance associated with this workspace if any.
-
getFileAnalyzer
returnsWorkspaceFileSizeResultinstance 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.- Parameters:
refresh- force to ignore data previously present in cache- Returns:
WorkspaceFileSizeResultinstance associated with this workspace or null if an analyze is in progress (or if refresh is asked).
-
getCurrentAnalyzerThread
Return the current analyzer thread if analyze is in progress- Returns:
- the
FileAnalyzerThreador null if no analyze is running
-
handleFileAnalyzeEnd
This method is called when global file analyzer has end- Parameters:
fileAnalyzer- the file analyzer
-
getWfByInstanceMap
-
setWfByInstanceMap
-
getInstanceWorkflowIdMap
-
setInstanceWorkflowIdMap
-
getInstanceWorkflowGroupMap
-
setInstanceWorkflowGroupMap
-
getAlertThreshold
public int getAlertThreshold() -
setAlertThreshold
public void setAlertThreshold(int alertThreshold) -
getQuota
public long getQuota() -
setQuota
public void setQuota(long quota) -
getLastQuotaNotificationDate
public long getLastQuotaNotificationDate() -
setLastQuotaNotificationDate
public void setLastQuotaNotificationDate(long lastQuotaNotificationDate) -
getQuotaAlert
-
setQuotaAlert
-
getUseDefaultQuota
public boolean getUseDefaultQuota() -
setUseDefaultQuota
public void setUseDefaultQuota(boolean useDefaultQuota) -
getMainPortal
-
setMainPortal
-
canBeReadBy
Description copied from class:DataChecks if the specified member is authorized to read this Data.- Overrides:
canBeReadByin classData- Parameters:
member- the member to check (may be null for anonymous user)searchInGroups- set to true to check for read right authorization using Member's group(s).rightInfo- aRightInfoinstance in which explanation of read right authorization acceptance or refusal will be indicated. Value is required and cannot be null.- Returns:
- true if the member can read this Data, false otherwise
-
internalCanBeReadBy
-
getOtherWorkspaceContentList
Returns the list of contents of other workspaces shared in this workspace.- Parameters:
mbr- the member (to filter according the read rights)firstResult- the first resultmaxResults- the max results- Returns:
- the list of contents of other workspaces shared in this workspace.
- Since:
- jcms-10.0.2
-
getEffectiveClassificationLevel
public int getEffectiveClassificationLevel()Retrieve the effective classification level of this workspace using baseline classification level configured on site.If this workspace classification was not specified (
getClassificationLevel()is zero), the effective level used for read right, feature access and constraint required is the baseline levelClassificationManager.getBaselineLevel().- Returns:
- a value from 1 (if baseline is 1) to
ClassificationManager.getMaximumLevel()(if baseline is the maximum level) - Since:
- 10.0.8 / JCMS-10746
- See Also:
-
getClassificationLevel
public int getClassificationLevel()Retrieve the classification level of this workspace.- Returns:
- a value from 0 for unclassified workspace to
ClassificationManager.getMaximumLevel()(included) for highly classified workspace - Since:
- 10.0.8 / JCMS-10746
- See Also:
-
setClassificationLevel
Set the classification level of this workspace.- Parameters:
level- a value from 0 for unclassified workspace toClassificationManager.getMaximumLevel()(included) for highly classified workspace. 0 if used if null is specified.- Since:
- 10.0.8 / JCMS-10746
- See Also:
-
isClassified
public boolean isClassified()Check if this workspace is classified.- Returns:
- true if this workspace has a its effective classification level higher than 1 (and classification is enabled), false otherwise
- Since:
- 10.0.8 / JCMS-10746
- See Also:
-
getMinClassificationLevel
public int getMinClassificationLevel()Retrieve the minimum classification level of publication authorized in this workspace.- Returns:
- a value from 0 to
getClassificationLevel()(included) - Since:
- 10.0.8 / JCMS-10746
- See Also:
-
setMinClassificationLevel
Set the minimum classification level of publication authorized in this workspace.- Parameters:
level- a value from 0 togetClassificationLevel()(included)- Since:
- 10.0.8 / JCMS-10746
-
Workspace.TitleSelector