Package org.silverpeas.core.cmis.model
Class ContributionFolder
- java.lang.Object
-
- org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractExtensionData
-
- org.apache.chemistry.opencmis.commons.impl.dataobjects.ObjectDataImpl
-
- org.silverpeas.core.cmis.model.CmisObject
-
- org.silverpeas.core.cmis.model.CmisFile
-
- org.silverpeas.core.cmis.model.CmisFolder
-
- org.silverpeas.core.cmis.model.ContributionFolder
-
- All Implemented Interfaces:
Serializable
,org.apache.chemistry.opencmis.commons.data.ExtensionsData
,org.apache.chemistry.opencmis.commons.data.MutableObjectData
,org.apache.chemistry.opencmis.commons.data.ObjectData
,Fileable
,Folding
public class ContributionFolder extends CmisFolder
A folder of user contributions managed within an application in Silverpeas. Such a folder is a contribution of a user (with peculiar rights) dedicated to categorize or to organize some contributions from others users (and from himself) according to some thematics. a contribution folder can be a topic in an EDM, an album in a media gallery or simply a category of posts in a blog. The folder can contain also others folders in order to refine the categorization or the organization of the user contributions. The contribution folder is represented in Silverpeas by the technical classNodeDetail
.- Author:
- mmoquillon
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<TypeId>
getAllAllowedChildrenTypes()
protected Supplier<Set<org.apache.chemistry.opencmis.commons.enums.Action>>
getAllowableActionsSupplier()
Gets a supplier of the actions allowable on this CMIS object.List<TypeId>
getAllowedChildrenTypes()
Gets all the types this object accepts as children.String
getApplicationId()
org.apache.chemistry.opencmis.commons.enums.BaseTypeId
getBaseTypeId()
Gets the identifier of the base type from which the type of the CMIS object is derived.static ContributionIdentifier
getRootFolderId(String applicationId)
Gets the virtual root contribution folder of the specified application.String
getSymbol()
Gets the possible UTF-8 symbol representing the type of this CMIS object.TypeId
getTypeId()
Gets the identifier of the type of this CMIS object.boolean
isRoot()
Is this object is the root folder in the CMIS objects tree?-
Methods inherited from class org.silverpeas.core.cmis.model.CmisFolder
completeWithFolderActions, getAllowedChildrenType, isFolding, isOrphaned, setParentId
-
Methods inherited from class org.silverpeas.core.cmis.model.CmisFile
completeWithFileActions, getParentId, getPath, isFileable
-
Methods inherited from class org.silverpeas.core.cmis.model.CmisObject
addACEs, getAcl, getAllowableActions, getCreationDate, getCreator, getDescription, getId, getLabel, getLanguage, getLastModificationDate, getLastModifier, getName, isDocument, setAcesSupplier, setAcl, setAllowableActions, setCreationDate, setCreator, setDescription, setIsExactAcl, setLastModificationDate, setLastModifier, theCommonActions
-
Methods inherited from class org.apache.chemistry.opencmis.commons.impl.dataobjects.ObjectDataImpl
getChangeEventInfo, getPolicyIds, getProperties, getRelationships, getRenditions, isExactAcl, setAllowableActions, setChangeEventInfo, setPolicyIds, setProperties, setRelationships, setRenditions, toString
-
Methods inherited from class org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractExtensionData
getExtensions, setExtensions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.chemistry.opencmis.commons.data.ExtensionsData
getExtensions, setExtensions
-
Methods inherited from interface org.silverpeas.core.cmis.model.Folding
getParentId
-
-
-
-
Field Detail
-
CMIS_TYPE
public static final TypeId CMIS_TYPE
The identifier of its CMIS type.
-
-
Method Detail
-
getRootFolderId
public static ContributionIdentifier getRootFolderId(String applicationId)
Gets the virtual root contribution folder of the specified application.- Parameters:
applicationId
- the unique identifier of an application.- Returns:
- the
ContributionIdentifier
of the root folder.
-
getSymbol
public String getSymbol()
Description copied from class:CmisObject
Gets the possible UTF-8 symbol representing the type of this CMIS object. It acts as an icon but instead of being a regular image the icon is encoded in UTF-8. Its goal is to mark the concrete type of the CMIS object upon its basic CMIS one (that is folder, document, ...)- Specified by:
getSymbol
in classCmisObject
- Returns:
- the UTF-8 symbol representing the type of this object or an empty String if no symbol is defined.
-
getApplicationId
public String getApplicationId()
-
isRoot
public boolean isRoot()
Description copied from interface:Folding
Is this object is the root folder in the CMIS objects tree?- Returns:
- true if this folder is the root of the CMIS objects tree. False otherwise.
-
getAllowedChildrenTypes
public List<TypeId> getAllowedChildrenTypes()
Description copied from interface:Folding
Gets all the types this object accepts as children.- Returns:
- a list of
TypeId
instances, each of them identifying the type of CMIS objects this folding object accepts as children.
-
getBaseTypeId
public org.apache.chemistry.opencmis.commons.enums.BaseTypeId getBaseTypeId()
Description copied from class:CmisObject
Gets the identifier of the base type from which the type of the CMIS object is derived.- Specified by:
getBaseTypeId
in interfaceorg.apache.chemistry.opencmis.commons.data.ObjectData
- Specified by:
getBaseTypeId
in classCmisObject
-
getTypeId
public TypeId getTypeId()
Description copied from class:CmisObject
Gets the identifier of the type of this CMIS object.- Specified by:
getTypeId
in classCmisObject
- Returns:
- a
TypeId
enumeration value.
-
getAllowableActionsSupplier
protected Supplier<Set<org.apache.chemistry.opencmis.commons.enums.Action>> getAllowableActionsSupplier()
Description copied from class:CmisObject
Gets a supplier of the actions allowable on this CMIS object. The supplier is only invoked when theCmisObject.setAllowableActions()
is invoked.- Overrides:
getAllowableActionsSupplier
in classCmisFolder
- Returns:
-
-