public abstract class AbstractSingleFilingImpl extends StoredObjectImpl implements SingleFiling
Modifier and Type | Field and Description |
---|---|
protected FolderImpl |
fParent |
description, fAclId, fCreatedAt, fCreatedBy, fId, fModifiedAt, fModifiedBy, fName, fObjStore, fProperties, fRepositoryId, fTypeId, ICON_SIZE, policyIds, RENDITION_MIME_TYPE_JPEG, RENDITION_MIME_TYPE_PNG, RENDITION_SUFFIX, secondaryTypeIds
PATH_SEPARATOR
Modifier | Constructor and Description |
---|---|
protected |
AbstractSingleFilingImpl(ObjectStoreImpl objStore) |
Modifier and Type | Method and Description |
---|---|
Folder |
getParent() |
List<Folder> |
getParents() |
List<Folder> |
getParents(String user)
return a list of parents the principal has access to.
|
String |
getPath() |
boolean |
hasParent()
usually true except for the root folder, optimized call that just tests
existence to provide information for AtomPub links (much cheaper than
calling getParents() and test for empty result.
|
void |
move(Folder oldParent,
Folder newParent)
Move an object to a different folder.
|
void |
rename(String newName)
Rename an object
|
void |
setParent(Folder parent)
Put the document in a folder and set the parent.
|
addAppliedPolicy, createSystemBasePropertiesWhenCreated, fillProperties, getAcl, getAclId, getAllowableActions, getAppliedPolicies, getChangeToken, getCreatedAt, getCreatedBy, getDescription, getIconFromResourceDir, getId, getModifiedAt, getModifiedBy, getName, getObjectRelationships, getProperties, getRenditionContent, getRenditions, getRepositoryId, getSecondaryTypeIds, getTypeId, hasRendition, persist, removePolicy, setAclId, setAppliedPolicies, setCreatedAt, setCreatedBy, setCustomProperties, setDescription, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setSystemBasePropertiesWhenCreatedDirect, setTypeId, testRenditionFilterForImage, updateSystemBasePropertiesWhenModified
protected FolderImpl fParent
protected AbstractSingleFilingImpl(ObjectStoreImpl objStore)
public String getPath()
getPath
in interface SingleFiling
public Folder getParent()
getParent
in interface SingleFiling
public boolean hasParent()
Filing
public List<Folder> getParents(String user)
Filing
getParents
in interface Filing
user
- user idpublic void setParent(Folder parent)
SingleFiling
setParent
in interface SingleFiling
parent
- parent folder of the document to be assigned.public void rename(String newName)
StoredObject
rename
in interface StoredObject
rename
in class StoredObjectImpl
newName
- the new name of the objectCopyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.