|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.sistematica.isharedoc.opencmis.indatabase.storedobj.impl.StoredObjectImpl
it.sistematica.isharedoc.opencmis.indatabase.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 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 |
Constructor Summary | |
---|---|
AbstractMultiFilingImpl(ObjectStoreImpl objStore)
|
|
AbstractMultiFilingImpl(ObjectStoreImpl objStore,
File file)
|
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. for single parent object this list must contain only one element. returns an empty list if this is an unfiled document. |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<Folder> fParents
Constructor Detail |
---|
AbstractMultiFilingImpl(ObjectStoreImpl objStore)
AbstractMultiFilingImpl(ObjectStoreImpl objStore, File file)
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 |