|
||||||||||
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 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 |
List<Folder> |
getParents()
return a list of parents. |
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(String newName)
Rename an object |
Methods inherited from class org.apache.chemistry.opencmis.inmemory.storedobj.impl.StoredObjectImpl |
---|
createSystemBasePropertiesWhenCreated, fillProperties, getChangeToken, getCreatedAt, getCreatedBy, getId, getModifiedAt, getModifiedBy, getName, 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 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 List<Folder> getParents()
Filing
getParents
in interface Filing
public boolean hasParent()
Filing
hasParent
in interface Filing
public 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(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 |