it.sistematica.isharedoc.opencmis.indatabase.storedobj.impl
Class FolderImpl
java.lang.Object
it.sistematica.isharedoc.opencmis.indatabase.storedobj.impl.StoredObjectImpl
it.sistematica.isharedoc.opencmis.indatabase.storedobj.impl.AbstractSingleFilingImpl
it.sistematica.isharedoc.opencmis.indatabase.storedobj.impl.FolderImpl
- All Implemented Interfaces:
- Children, Filing, Folder, SingleFiling, StoredObject
public class FolderImpl
- extends AbstractSingleFilingImpl
- implements Folder
Fields inherited from class it.sistematica.isharedoc.opencmis.indatabase.storedobj.impl.StoredObjectImpl |
fNativeObject, fObjStore, fProperties, fRepositoryId, fTypeId, ICON_SIZE, policyIds, RENDITION_MIME_TYPE_JPEG, RENDITION_MIME_TYPE_PNG, RENDITION_SUFFIX, secondaryTypeIds |
Fields inherited from interface it.sistematica.isharedoc.opencmis.indatabase.storedobj.api.Filing |
PATH_SEPARATOR |
Method Summary |
void |
addChildDocument(Document doc)
|
void |
addChildDocument(VersionedDocument doc)
|
void |
addChildFolder(Folder folder)
|
void |
addChildItem(StoredObject item)
|
void |
fillProperties(java.util.Map<java.lang.String,org.apache.chemistry.opencmis.commons.data.PropertyData<?>> properties,
org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory objFactory,
java.util.List<java.lang.String> requestedIds)
|
java.util.List<java.lang.String> |
getAllowedChildObjectTypeIds()
return a list of allowed types of children in this folder |
Children.ChildrenResult |
getChildren(int maxItems,
int skipCount,
java.lang.String user)
get all the children of this folder. |
Children.ChildrenResult |
getFolderChildren(int maxItems,
int skipCount,
java.lang.String user)
get all the children of this folder which are folders. |
org.apache.chemistry.opencmis.commons.data.ContentStream |
getRenditionContent(java.lang.String streamId,
long offset,
long length)
get the rendition of this object |
java.util.List<org.apache.chemistry.opencmis.commons.data.RenditionData> |
getRenditions(java.lang.String renditionFilter,
long maxItems,
long skipCount)
get the rendition this objects supports |
boolean |
hasChild(java.lang.String name)
indicate if a child with the given name exists in this folder |
boolean |
hasRendition(java.lang.String user)
check if the document can generate a renditions and rendition is visible
for user |
void |
moveChildDocument(StoredObject so,
Folder oldParent,
Folder newParent)
|
Methods inherited from class it.sistematica.isharedoc.opencmis.indatabase.storedobj.impl.StoredObjectImpl |
addAcl, addAppliedPolicy, createSystemBasePropertiesWhenCreated, getAcl, getAllowableActions, getAppliedPolicies, getChangeToken, getConfidentialityLevel, getCreatedAt, getCreatedBy, getDeleted, getDescription, getHidden, getIconFromResourceDir, getId, getModifiedAt, getModifiedBy, getName, getNativeObject, getObjectRelationships, getObjectTemplate, getOrganization, getOriginalNativeObject, getProperties, getRepositoryId, getSecondaryTypeIds, getSignatureExpireDate, getSignatureStatus, getSignatureValidationDate, getSignatureValidationNote, getSignatureValidationStatus, getSigned, getType, getTypeId, persist, removeAcl, removePolicy, setAppliedPolicies, setConfidentialityLevel, setConfidentialityLevelId, setCreatedAt, setCreatedBy, setCustomProperties, setDeleted, setDescription, setHidden, setId, setModifiedAtNow, setModifiedBy, setName, setNativeObject, setNote, setObjectTemplate, setObjectTemplateId, setOrganization, setOrganizationId, setOriginalFileId, setProperties, setRemoteURL, setRepositoryId, setSecondaryTypeIds, setSignatureValidationNote, setSignatureValidationStatus, setStatus, setSystemBasePropertiesWhenCreatedDirect, setTypeId, testRenditionFilterForImage, updateSystemBasePropertiesWhenModified |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface it.sistematica.isharedoc.opencmis.indatabase.storedobj.api.StoredObject |
addAcl, addAppliedPolicy, createSystemBasePropertiesWhenCreated, getAcl, getAllowableActions, getAppliedPolicies, getChangeToken, getCreatedAt, getCreatedBy, getDescription, getId, getModifiedAt, getModifiedBy, getName, getNativeObject, getObjectRelationships, getProperties, getRepositoryId, getSecondaryTypeIds, getTypeId, persist, removeAcl, removePolicy, rename, setCreatedAt, setCreatedBy, setCustomProperties, setDescription, setModifiedAtNow, setModifiedBy, setName, setNativeObject, setProperties, setRepositoryId, setTypeId, updateSystemBasePropertiesWhenModified |
FolderImpl
public FolderImpl(ObjectStoreImpl objStore)
FolderImpl
public FolderImpl(ObjectStoreImpl objStore,
File file)
FolderImpl
FolderImpl(ObjectStoreImpl objStore,
File file,
java.lang.String name,
Folder parent)
FolderImpl
public FolderImpl(ObjectStoreImpl objStore,
java.lang.String name,
Folder parent)
addChildFolder
public void addChildFolder(Folder folder)
addChildDocument
public void addChildDocument(Document doc)
addChildDocument
public void addChildDocument(VersionedDocument doc)
addChildItem
public void addChildItem(StoredObject item)
getChildren
public Children.ChildrenResult getChildren(int maxItems,
int skipCount,
java.lang.String user)
- Description copied from interface:
Children
- get all the children of this folder. To support paging an initial offset
and a maximum number of children to retrieve can be passed
- Specified by:
getChildren
in interface Children
- Parameters:
maxItems
- max. number of items to returnskipCount
- initial offset where to start fetching
- Returns:
- list of children objects
getFolderChildren
public Children.ChildrenResult getFolderChildren(int maxItems,
int skipCount,
java.lang.String user)
- Description copied from interface:
Children
- get all the children of this folder which are folders. To support paging
an initial offset and a maximum number of childrent to retrieve can be
passed.
- Specified by:
getFolderChildren
in interface Children
- Parameters:
maxItems
- max. number of items to returnskipCount
- initial offset where to start fetching
- Returns:
- list of children folders
hasChild
public boolean hasChild(java.lang.String name)
- Description copied from interface:
Children
- indicate if a child with the given name exists in this folder
- Specified by:
hasChild
in interface Children
- Parameters:
name
- name to check
- Returns:
- true if the name exists in the folderas child, false otherwise
fillProperties
public void fillProperties(java.util.Map<java.lang.String,org.apache.chemistry.opencmis.commons.data.PropertyData<?>> properties,
org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory objFactory,
java.util.List<java.lang.String> requestedIds)
- Specified by:
fillProperties
in interface StoredObject
- Overrides:
fillProperties
in class StoredObjectImpl
moveChildDocument
public void moveChildDocument(StoredObject so,
Folder oldParent,
Folder newParent)
getAllowedChildObjectTypeIds
public java.util.List<java.lang.String> getAllowedChildObjectTypeIds()
- Description copied from interface:
Folder
- return a list of allowed types of children in this folder
- Specified by:
getAllowedChildObjectTypeIds
in interface Folder
- Returns:
getRenditions
public java.util.List<org.apache.chemistry.opencmis.commons.data.RenditionData> getRenditions(java.lang.String renditionFilter,
long maxItems,
long skipCount)
- Description copied from interface:
StoredObject
- get the rendition this objects supports
- Specified by:
getRenditions
in interface StoredObject
- Overrides:
getRenditions
in class StoredObjectImpl
- Returns:
- List of renditions or null if no renditions are available for
this object
getRenditionContent
public org.apache.chemistry.opencmis.commons.data.ContentStream getRenditionContent(java.lang.String streamId,
long offset,
long length)
- Description copied from interface:
StoredObject
- get the rendition of this object
- Specified by:
getRenditionContent
in interface StoredObject
- Overrides:
getRenditionContent
in class StoredObjectImpl
- Parameters:
streamId
- stream if of renditionoffset
- offset in rendition contentlength
- length of rendition content
- Returns:
- ContentStream containing the rendition
hasRendition
public boolean hasRendition(java.lang.String user)
- Description copied from interface:
StoredObject
- check if the document can generate a renditions and rendition is visible
for user
- Specified by:
hasRendition
in interface StoredObject
- Overrides:
hasRendition
in class StoredObjectImpl
- Returns:
- true if rendition exists, false if not.