|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.inmemory.storedobj.impl.StoredObjectImpl
org.apache.chemistry.opencmis.inmemory.storedobj.impl.AbstractMultiFilingImpl
public abstract class AbstractMultiFilingImpl
AbstractMultiPathImpl is the common superclass of all objects hold in the repository that have multiple parent folders, these are: Folders
Field Summary | |
---|---|
protected java.util.List<Folder> |
fParents
|
Fields inherited from class org.apache.chemistry.opencmis.inmemory.storedobj.impl.StoredObjectImpl |
---|
fCreatedAt, fCreatedBy, fId, fModifiedAt, fModifiedBy, fName, fObjStore, fProperties, fRepositoryId, fTypeId |
Fields inherited from interface org.apache.chemistry.opencmis.inmemory.storedobj.api.Filing |
---|
PATH_SEPARATOR |
Method Summary | |
---|---|
void |
addParent(Folder parent)
Add this document to a new parent folder as child object |
java.util.List<Folder> |
getParents()
|
java.util.List<Folder> |
getParents(java.lang.String user)
return a list of parents the principal has access to. |
java.lang.String |
getPathSegment()
retrieve the path segment of this folder |
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 |
removeParent(Folder parent)
Remove this object from the children of parent |
void |
rename(java.lang.String newName)
Rename an object |
Methods inherited from class org.apache.chemistry.opencmis.inmemory.storedobj.impl.StoredObjectImpl |
---|
createSystemBasePropertiesWhenCreated, fillProperties, getAcl, getAllowableActions, getChangeToken, getCreatedAt, getCreatedBy, getId, getModifiedAt, getModifiedBy, getName, getObjectRelationships, getProperties, getRepositoryId, getTypeId, persist, setCreatedAt, setCreatedBy, setCustomProperties, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setSystemBasePropertiesWhenCreatedDirect, setTypeId, updateSystemBasePropertiesWhenModified |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<Folder> fParents
Method Detail |
---|
public void addParent(Folder parent)
MultiFiling
addParent
in interface MultiFiling
parent
- new parent folder of the document.public void removeParent(Folder parent)
MultiFiling
removeParent
in interface MultiFiling
parent
- parent folder of the documentpublic java.util.List<Folder> getParents()
public java.util.List<Folder> getParents(java.lang.String user)
Filing
getParents
in interface Filing
user
- user id
public boolean hasParent()
Filing
hasParent
in interface Filing
public java.lang.String getPathSegment()
MultiFiling
getPathSegment
in interface MultiFiling
public void move(Folder oldParent, Folder newParent)
Filing
move
in interface Filing
newParent
- new parent folder for the objectpublic void rename(java.lang.String newName)
StoredObject
rename
in interface StoredObject
rename
in class StoredObjectImpl
newName
- the new name of the object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |