|
||||||||||
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.AbstractSingleFilingImpl
public abstract class AbstractSingleFilingImpl
AbstractPathImpl is the common superclass of all objects hold in the repository that have a single parent, these are: Folders.
Field Summary |
---|
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 | |
---|---|
protected |
AbstractSingleFilingImpl(ObjectStoreImpl objStore)
|
protected |
AbstractSingleFilingImpl(ObjectStoreImpl objStore,
File file)
|
Method Summary | |
---|---|
Folder |
getParent()
|
java.lang.String |
getParentId()
|
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 |
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(java.lang.String newName)
Rename an object |
void |
setParent(Folder parent)
Put the document in a folder and set the parent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractSingleFilingImpl(ObjectStoreImpl objStore)
protected AbstractSingleFilingImpl(ObjectStoreImpl objStore, File file)
Method Detail |
---|
public java.lang.String getPath()
getPath
in interface SingleFiling
public Folder getParent()
getParent
in interface SingleFiling
public java.lang.String getParentId()
public boolean hasParent()
Filing
hasParent
in interface Filing
public java.util.List<Folder> getParents()
public java.util.List<Folder> getParents(java.lang.String user)
Filing
getParents
in interface Filing
user
- user id
public void setParent(Folder parent)
SingleFiling
setParent
in interface SingleFiling
parent
- parent folder of the document to be assigned.public void rename(java.lang.String newName)
StoredObject
rename
in interface StoredObject
rename
in class StoredObjectImpl
newName
- the new name of the objectpublic void move(Folder oldParent, Folder newParent)
Filing
move
in interface Filing
newParent
- new parent folder for the object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |