public abstract class AbstractSingleFilingImpl extends StoredObjectImpl implements SingleFiling
Modifier and Type | Field and Description |
---|---|
protected FolderImpl |
fParent |
fAclId, fCreatedAt, fCreatedBy, fId, fModifiedAt, fModifiedBy, fName, fObjStore, fProperties, fRepositoryId, fTypeId
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.
|
createSystemBasePropertiesWhenCreated, fillProperties, getAcl, getAclId, getAllowableActions, getChangeToken, getCreatedAt, getCreatedBy, getId, getModifiedAt, getModifiedBy, getName, getObjectRelationships, getProperties, getRenditionContent, getRenditions, getRepositoryId, getTypeId, hasRendition, persist, setAclId, setCreatedAt, setCreatedBy, setCustomProperties, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setSystemBasePropertiesWhenCreatedDirect, setTypeId, 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-2012 The Apache Software Foundation. All Rights Reserved.