|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.ecmimpl.cmis.object.OwCMISObjectBase
com.wewebu.ow.server.ecmimpl.cmis.object.OwCMISFolderObject
public class OwCMISFolderObject
Class representing a Folder in CMIS environments.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Field Summary |
---|
Fields inherited from class com.wewebu.ow.server.ecmimpl.cmis.object.OwCMISObjectBase |
---|
ADD_PROPERTY_EXTENSIONS_EP, CUSTOMIZE_CLASS_EP, FILTER_PROPERTY_EXTENSIONS_EP, m_cmisObjType, m_network, PROCESS_NATIVE_PROPERITIES_EP, REQUEST_CACHED_PROPERITIES_EP |
Fields inherited from interface com.wewebu.ow.server.ecm.OwObject |
---|
STANDARD_PATH_DELIMITER |
Fields inherited from interface com.wewebu.ow.server.ecm.OwObjectReference |
---|
OBJECT_TYPE_ALL_CONTAINER_OBJECTS, OBJECT_TYPE_ALL_CONTENT_OBJECTS, OBJECT_TYPE_ALL_TUPLE_OBJECTS, OBJECT_TYPE_ALL_WORKFLOW_OBJECTS, OBJECT_TYPE_BPM_ROOT_FOLDER, OBJECT_TYPE_CONTAINER_USER_START, OBJECT_TYPE_CONTENT_USER_START, OBJECT_TYPE_CROSS_QUEUE_FOLDER, OBJECT_TYPE_CUSTOM, OBJECT_TYPE_DOCUMENT, OBJECT_TYPE_DYNAMIC_VIRTUAL_FOLDER, OBJECT_TYPE_ECM_ROOT_FOLDER, OBJECT_TYPE_FOLDER, OBJECT_TYPE_HISTORY, OBJECT_TYPE_LINK, OBJECT_TYPE_PROXY_QUEUE_FOLDER, OBJECT_TYPE_PUBLIC_QUEUE_FOLDER, OBJECT_TYPE_ROSTER_FOLDER, OBJECT_TYPE_ROSTERITEM, OBJECT_TYPE_STORED_SEARCH, OBJECT_TYPE_SYS_QUEUE_FOLDER, OBJECT_TYPE_TRACKER_QUEUE_FOLDER, OBJECT_TYPE_TUPLE_USER_START, OBJECT_TYPE_UNDEFINED, OBJECT_TYPE_USER_QUEUE_FOLDER, OBJECT_TYPE_VIRTUAL_FOLDER, OBJECT_TYPE_WORKFLOW_USER_START, OBJECT_TYPE_WORKITEM, OBJECT_TYPE_WORKITEM_PROXY, OBJECT_TYPE_WORKITEM_TRACKER |
Fields inherited from interface com.wewebu.ow.server.field.OwFieldProvider |
---|
TYPE_AJAX, TYPE_CHECKIN_OBJECT, TYPE_CREATE_OBJECT, TYPE_META_OBJECT, TYPE_RESULT_LIST, TYPE_SEARCH, TYPE_SMALL |
Constructor Summary | |
---|---|
OwCMISFolderObject(OwCMISNetwork network_p,
OwCMISObjectModel objectModel_p,
org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType cmistype_p)
|
Method Summary | |
---|---|
void |
add(com.wewebu.ow.server.ecm.OwObject object_p)
|
protected static void |
addPropertyName(StringBuilder existingProp_p,
String newPropName_p)
Helper method to add a property name to a StringBuilder, which contains/represents a String of comma (",") separated property names. |
boolean |
canAdd(com.wewebu.ow.server.ecm.OwObject object_p,
int context_p)
|
boolean |
canGetContent(int contentType_p,
int context_p)
|
boolean |
canMove(com.wewebu.ow.server.ecm.OwObject object_p,
com.wewebu.ow.server.ecm.OwObject oldParent_p,
int context_p)
|
boolean |
canRemoveReference(com.wewebu.ow.server.ecm.OwObject object_p,
int context_p)
|
boolean |
canSetContent(int contentType_p,
int context_p)
|
OwCMISObject |
createCopy(OwCMISObject copyParent_p,
com.wewebu.ow.server.ecm.OwPropertyCollection properties_p,
com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p,
int[] childTypes_p)
|
protected com.wewebu.ow.server.ecm.OwStandardObjectCollection |
createObjectCollection()
(overridable) Factory method for the ObjectCollection which will be used in the getChilds(int[], Collection, OwSort, int, int, OwSearchNode) method. |
void |
delete()
|
protected void |
doClientsideSorting(com.wewebu.ow.server.ecm.OwObjectCollection col_p)
(overridable) Called to do a client side sorting, because the sorting for the given property does not work on server side. |
int |
getChildCount(int[] objectTypes_p,
int context_p)
|
protected String |
getChildrenPropertiesAsString(Collection<String> propertyNames_p,
OwCMISObjectClass defaultObjClass_p)
Convert the Collection of Strings into a String of comma separated property names. |
com.wewebu.ow.server.ecm.OwObjectCollection |
getChilds(int[] objectTypes_p,
Collection propertyNames_p,
com.wewebu.ow.server.field.OwSort sort_p,
int maxSize_p,
int versionSelection_p,
com.wewebu.ow.server.field.OwSearchNode filterCriteria_p)
|
protected com.wewebu.ow.server.field.OwSort |
getClientSortCollection()
Return an OwSort containing properties which cloud not be used for sorting on server side. |
protected String |
getCurrentObjectId(com.wewebu.ow.server.ecm.OwObject object_p)
Helper method to get the correct object id, which is used in move operation (like latest object id, to avoid errors for version dependent filing). |
com.wewebu.ow.server.ecm.OwObjectCollection |
getParents()
|
String |
getPath()
|
protected String |
getSortString(com.wewebu.ow.server.field.OwSort sortingOrder_p,
int maxSortCriteria_p)
Return a String of the defined OwSort criteria in correct order. |
com.wewebu.ow.server.ecm.OwVersion |
getVersion()
|
com.wewebu.ow.server.ecm.OwVersionSeries |
getVersionSeries()
|
boolean |
hasChilds(int[] objectTypes_p,
int context_p)
|
boolean |
hasVersionSeries()
|
protected boolean |
isSubtypeOf(String typeId,
String isParentId)
Helper Method which will recursively traverse bottom-up the object-class/-type tree, searching for matching Id's. |
void |
move(com.wewebu.ow.server.ecm.OwObject object_p,
com.wewebu.ow.server.ecm.OwObject oldParent_p)
|
void |
removeReference(com.wewebu.ow.server.ecm.OwObject object_p)
|
protected void |
setClientSortCollection(com.wewebu.ow.server.field.OwSort sort_p)
Set the collection which should be used for client side sorting. |
void |
setContentCollection(com.wewebu.ow.server.ecm.OwContentCollection content_p)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OwCMISFolderObject(OwCMISNetwork network_p, OwCMISObjectModel objectModel_p, org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType cmistype_p) throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
Method Detail |
---|
public int getChildCount(int[] objectTypes_p, int context_p) throws com.wewebu.ow.server.exceptions.OwException
getChildCount
in interface com.wewebu.ow.server.ecm.OwObject
getChildCount
in class OwCMISObjectBase
com.wewebu.ow.server.exceptions.OwException
public com.wewebu.ow.server.ecm.OwObjectCollection getChilds(int[] objectTypes_p, Collection propertyNames_p, com.wewebu.ow.server.field.OwSort sort_p, int maxSize_p, int versionSelection_p, com.wewebu.ow.server.field.OwSearchNode filterCriteria_p) throws com.wewebu.ow.server.exceptions.OwException
getChilds
in interface com.wewebu.ow.server.ecm.OwObject
getChilds
in class OwCMISObjectBase
com.wewebu.ow.server.exceptions.OwException
public com.wewebu.ow.server.ecm.OwObjectCollection getParents() throws com.wewebu.ow.server.exceptions.OwException
getParents
in interface com.wewebu.ow.server.ecm.OwObject
getParents
in class OwCMISObjectBase
com.wewebu.ow.server.exceptions.OwException
public boolean canAdd(com.wewebu.ow.server.ecm.OwObject object_p, int context_p) throws com.wewebu.ow.server.exceptions.OwException
canAdd
in interface com.wewebu.ow.server.ecm.OwObject
canAdd
in class OwCMISObjectBase
com.wewebu.ow.server.exceptions.OwException
public boolean canGetContent(int contentType_p, int context_p) throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
protected String getChildrenPropertiesAsString(Collection<String> propertyNames_p, OwCMISObjectClass defaultObjClass_p) throws com.wewebu.ow.server.exceptions.OwException
if Collection is null, then all possible properties are retrieved
using the SQL operator *,
else the collection is transformed
into a String of comma separated property names.
propertyNames_p
- Collection, can be nulldefaultObjClass_p
- OwCMISObjectClass default object class for filtering use
com.wewebu.ow.server.exceptions.OwException
protected String getSortString(com.wewebu.ow.server.field.OwSort sortingOrder_p, int maxSortCriteria_p) throws com.wewebu.ow.server.exceptions.OwException
null
is returned.
Method will check every property if it isOrderable, regarding it's property definition. If the property can be used for sorting (isOrderable == true) the property will be add to returned String with the specific cmis:queryname, else the property will silently ignored and the next one will be processed
sortingOrder_p
- OwSort sort definitionmaxSortCriteria_p
- maxim number of sort criteria supported by the native CMIS system
com.wewebu.ow.server.exceptions.OwException
- if cannot resolve sort criteriapublic void delete() throws com.wewebu.ow.server.exceptions.OwException
delete
in interface com.wewebu.ow.server.ecm.OwObject
delete
in class OwCMISObjectBase
com.wewebu.ow.server.exceptions.OwException
public void removeReference(com.wewebu.ow.server.ecm.OwObject object_p) throws com.wewebu.ow.server.exceptions.OwException
removeReference
in interface com.wewebu.ow.server.ecm.OwObject
removeReference
in class OwCMISObjectBase
com.wewebu.ow.server.exceptions.OwException
public boolean canRemoveReference(com.wewebu.ow.server.ecm.OwObject object_p, int context_p) throws com.wewebu.ow.server.exceptions.OwException
canRemoveReference
in interface com.wewebu.ow.server.ecm.OwObject
canRemoveReference
in class OwCMISObjectBase
com.wewebu.ow.server.exceptions.OwException
public void add(com.wewebu.ow.server.ecm.OwObject object_p) throws com.wewebu.ow.server.exceptions.OwException
add
in interface com.wewebu.ow.server.ecm.OwObject
add
in class OwCMISObjectBase
com.wewebu.ow.server.exceptions.OwException
protected static void addPropertyName(StringBuilder existingProp_p, String newPropName_p)
Check if the existingProp is ending with a comma, and appending a comma if missing before appending new property name.
Does not check if existingProp already contains the newPropName!
existingProp_p
- StringBuilder which is non-emptynewPropName_p
- String new property name to be add.public com.wewebu.ow.server.ecm.OwVersion getVersion() throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public com.wewebu.ow.server.ecm.OwVersionSeries getVersionSeries() throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public boolean hasVersionSeries() throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public boolean canSetContent(int contentType_p, int context_p) throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public void setContentCollection(com.wewebu.ow.server.ecm.OwContentCollection content_p) throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public boolean hasChilds(int[] objectTypes_p, int context_p) throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public OwCMISObject createCopy(OwCMISObject copyParent_p, com.wewebu.ow.server.ecm.OwPropertyCollection properties_p, com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p, int[] childTypes_p) throws com.wewebu.ow.server.exceptions.OwException
createCopy
in interface OwCMISObject
createCopy
in class OwCMISObjectBase
com.wewebu.ow.server.exceptions.OwException
protected void setClientSortCollection(com.wewebu.ow.server.field.OwSort sort_p)
sort_p
- OwSortprotected com.wewebu.ow.server.field.OwSort getClientSortCollection()
Can return null if server side can sort every defined properties for
getChilds(int[], Collection, OwSort, int, int, OwSearchNode)
method.
protected com.wewebu.ow.server.ecm.OwStandardObjectCollection createObjectCollection()
getChilds(int[], Collection, OwSort, int, int, OwSearchNode)
method.
protected void doClientsideSorting(com.wewebu.ow.server.ecm.OwObjectCollection col_p) throws com.wewebu.ow.server.exceptions.OwException
Sorting is incomplete because the list of object is not the whole list which exist on server side.
col_p
- OwObjectCollection which should be sorted
com.wewebu.ow.server.exceptions.OwException
public String getPath() throws com.wewebu.ow.server.exceptions.OwException
getPath
in interface com.wewebu.ow.server.ecm.OwObject
getPath
in class OwCMISObjectBase
com.wewebu.ow.server.exceptions.OwException
public boolean canMove(com.wewebu.ow.server.ecm.OwObject object_p, com.wewebu.ow.server.ecm.OwObject oldParent_p, int context_p) throws com.wewebu.ow.server.exceptions.OwException
canMove
in interface com.wewebu.ow.server.ecm.OwObject
canMove
in class OwCMISObjectBase
com.wewebu.ow.server.exceptions.OwException
public void move(com.wewebu.ow.server.ecm.OwObject object_p, com.wewebu.ow.server.ecm.OwObject oldParent_p) throws com.wewebu.ow.server.exceptions.OwException
move
in interface com.wewebu.ow.server.ecm.OwObject
move
in class OwCMISObjectBase
com.wewebu.ow.server.exceptions.OwException
protected boolean isSubtypeOf(String typeId, String isParentId) throws com.wewebu.ow.server.exceptions.OwException
typeId
- String current id/symbolic name of typeisParentId
- String parent type id/symbolic name
com.wewebu.ow.server.exceptions.OwException
- could not find object type or parent object typeprotected String getCurrentObjectId(com.wewebu.ow.server.ecm.OwObject object_p) throws com.wewebu.ow.server.exceptions.OwException
object_p
- OwObject to be moved
com.wewebu.ow.server.exceptions.OwException
- if could not retrieve corresponding id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |