com.wewebu.ow.server.ecmimpl.cmis.object
Class OwCMISObjectBase

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.cmis.object.OwCMISObjectBase
All Implemented Interfaces:
com.wewebu.ow.server.ecm.OwObject, com.wewebu.ow.server.ecm.OwObjectReference, OwCMISObject, com.wewebu.ow.server.field.OwFieldProvider
Direct Known Subclasses:
OwCMISDocumentObject, OwCMISFolderObject, OwCMISPolicyObject, OwCMISRelationshipObject

public abstract class OwCMISObjectBase
extends Object
implements OwCMISObject

Base object class for all CMIS objects.

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
static String ADD_PROPERTY_EXTENSIONS_EP
           
static String CUSTOMIZE_CLASS_EP
           
static String FILTER_PROPERTY_EXTENSIONS_EP
           
protected  org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType m_cmisObjType
           
protected  OwCMISNetwork m_network
           
static String PROCESS_NATIVE_PROPERITIES_EP
           
static String 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
OwCMISObjectBase(OwCMISNetwork network_p, OwCMISObjectModel objectModel_p, org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType object_p)
          create a folder object wrapper
 
Method Summary
 void add(com.wewebu.ow.server.ecm.OwObject object_p)
           
 boolean canAdd(com.wewebu.ow.server.ecm.OwObject object_p, int context_p)
           
 boolean canChangeClass()
           
 boolean canDelete(int context_p)
           
 boolean canFilterChilds()
           
 boolean canGetPermissions()
           
 boolean canGetProperties(int context_p)
           
 boolean canLock()
           
 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 canSetPermissions()
           
 boolean canSetProperties(int contextStatus_p)
           
 void changeClass(String strNewClassName_p, com.wewebu.ow.server.ecm.OwPropertyCollection properties_p, com.wewebu.ow.server.ecm.OwPermissionCollection permissions_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  String decodeID(String id_p)
          Helper to decode the ID of an object.
 void delete()
           
protected  String encodeID(String id_p)
          Helper to encode the ID of an object.
 boolean equals(Object obj_p)
           
protected  String getChangeToken()
          Get the value of change token.
 int getChildCount(int[] objectTypes_p, int context_p)
           
 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)
           
 String getClassName()
           
 OwCMISPermissionCollection getClonedPermissions()
           
 com.wewebu.ow.server.ecm.OwPropertyCollection getClonedProperties(Collection propertyNames_p)
           
 Collection getColumnInfoList()
           
 com.wewebu.ow.server.ecm.OwContentCollection getContentCollection()
           
 String getDecodedID()
          Helper method which can be used to without calling decodeID(String).
 String getDMSID()
           
 com.wewebu.ow.server.field.OwField getField(String strFieldClassName_p)
           
 String getFieldProviderName()
           
 Object getFieldProviderSource()
           
 int getFieldProviderType()
           
 Collection getFields()
           
 Collection getFilterProperties(Collection propertyNames_p)
           
 String getID()
           
 com.wewebu.ow.server.ecm.OwObject getInstance()
           
 boolean getLock(int context_p)
           
 String getLockUserID(int context_p)
           
 String getMIMEParameter()
           
 String getMIMEType()
           
 boolean getMyLock(int context_p)
           
 String getName()
           
 org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType getNativeObject()
           
protected  OwCMISNetwork getNetwork()
           
 OwCMISObjectClass getObjectClass()
           
 OwCMISObjectModel getObjectModel()
           
 int getPageCount()
           
 com.wewebu.ow.server.ecm.OwObjectCollection getParents()
           
 String getPath()
           
 OwCMISPermissionCollection getPermissions()
           
 com.wewebu.ow.server.ecm.OwPropertyCollection getProperties(Collection propertyNames_p)
           
 OwCMISProperty getProperty(String propertyName_p)
           
 OwCMISResource getResource()
           
 String getResourceID()
           
 Object getSafeFieldValue(String name_p, Object defaultValue_p)
           
 com.wewebu.ow.server.field.OwSearchTemplate getSearchTemplate()
           
 int getType()
           
 boolean hasContent(int context_p)
           
 int hashCode()
           
 void move(com.wewebu.ow.server.ecm.OwObject object_p, com.wewebu.ow.server.ecm.OwObject oldParent_p)
           
 void refreshProperties()
           
 void refreshProperties(Collection propertyClassNames_p)
           
 void removeReference(com.wewebu.ow.server.ecm.OwObject object_p)
           
protected  void resetNativeObject(org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType object_p)
           
protected  com.wewebu.ow.server.ecm.OwPropertyCollection retrieveCmisProperties(List<String> lstCmisPropertyClassNames_p, boolean strict_p)
          Method which handles the fall back to retrieve more then one property from back end.
protected  OwCMISProperty retrieveCmisProperty(String cmisPropertyClassName_p)
          Method which handles the fall back retrieving of property.
 void setField(String name_p, Object value_p)
           
 boolean setLock(boolean lock_p)
           
 void setPermissions(com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p)
           
 void setProperties(com.wewebu.ow.server.ecm.OwPropertyCollection properties_p)
           
 void setProperties(com.wewebu.ow.server.ecm.OwPropertyCollection properties_p, Object mode_p)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.wewebu.ow.server.ecm.OwObject
canGetContent, canSetContent, getVersion, getVersionSeries, hasChilds, hasVersionSeries, setContentCollection
 

Field Detail

m_cmisObjType

protected org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType m_cmisObjType

m_network

protected OwCMISNetwork m_network

CUSTOMIZE_CLASS_EP

public static final String CUSTOMIZE_CLASS_EP
See Also:
Constant Field Values

PROCESS_NATIVE_PROPERITIES_EP

public static final String PROCESS_NATIVE_PROPERITIES_EP
See Also:
Constant Field Values

REQUEST_CACHED_PROPERITIES_EP

public static final String REQUEST_CACHED_PROPERITIES_EP
See Also:
Constant Field Values

FILTER_PROPERTY_EXTENSIONS_EP

public static final String FILTER_PROPERTY_EXTENSIONS_EP
See Also:
Constant Field Values

ADD_PROPERTY_EXTENSIONS_EP

public static final String ADD_PROPERTY_EXTENSIONS_EP
See Also:
Constant Field Values
Constructor Detail

OwCMISObjectBase

public OwCMISObjectBase(OwCMISNetwork network_p,
                        OwCMISObjectModel objectModel_p,
                        org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType object_p)
                 throws com.wewebu.ow.server.exceptions.OwException
create a folder object wrapper

Parameters:
network_p - OwCMISNetwork
objectModel_p - OwCMISObjectModel
object_p - CmisObjectType the native object
Throws:
com.wewebu.ow.server.exceptions.OwException
Method Detail

resetNativeObject

protected void resetNativeObject(org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType object_p)
                          throws com.wewebu.ow.server.exceptions.OwException
Throws:
com.wewebu.ow.server.exceptions.OwException

getObjectClass

public OwCMISObjectClass getObjectClass()
Specified by:
getObjectClass in interface com.wewebu.ow.server.ecm.OwObject
Specified by:
getObjectClass in interface OwCMISObject

getMIMEType

public String getMIMEType()
                   throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getMIMEType in interface com.wewebu.ow.server.ecm.OwObjectReference
Throws:
com.wewebu.ow.server.exceptions.OwException

getDMSID

public String getDMSID()
                throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getDMSID in interface com.wewebu.ow.server.ecm.OwObjectReference
Throws:
com.wewebu.ow.server.exceptions.OwException

getType

public int getType()
Specified by:
getType in interface com.wewebu.ow.server.ecm.OwObjectReference

add

public void add(com.wewebu.ow.server.ecm.OwObject object_p)
         throws com.wewebu.ow.server.exceptions.OwException
Specified by:
add in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

canAdd

public boolean canAdd(com.wewebu.ow.server.ecm.OwObject object_p,
                      int context_p)
               throws com.wewebu.ow.server.exceptions.OwException
Specified by:
canAdd in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

canChangeClass

public boolean canChangeClass()
                       throws com.wewebu.ow.server.exceptions.OwException
Specified by:
canChangeClass in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

canDelete

public boolean canDelete(int context_p)
                  throws com.wewebu.ow.server.exceptions.OwException
Specified by:
canDelete in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

canFilterChilds

public boolean canFilterChilds()
                        throws com.wewebu.ow.server.exceptions.OwException
Specified by:
canFilterChilds in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

canGetPermissions

public boolean canGetPermissions()
                          throws com.wewebu.ow.server.exceptions.OwException
Specified by:
canGetPermissions in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

canGetProperties

public boolean canGetProperties(int context_p)
                         throws com.wewebu.ow.server.exceptions.OwException
Specified by:
canGetProperties in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

canLock

public boolean canLock()
                throws com.wewebu.ow.server.exceptions.OwException
Specified by:
canLock in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

canMove

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
Specified by:
canMove in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

canRemoveReference

public boolean canRemoveReference(com.wewebu.ow.server.ecm.OwObject object_p,
                                  int context_p)
                           throws com.wewebu.ow.server.exceptions.OwException
Specified by:
canRemoveReference in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

canSetPermissions

public boolean canSetPermissions()
                          throws com.wewebu.ow.server.exceptions.OwException
Specified by:
canSetPermissions in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

changeClass

public void changeClass(String strNewClassName_p,
                        com.wewebu.ow.server.ecm.OwPropertyCollection properties_p,
                        com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p)
                 throws com.wewebu.ow.server.exceptions.OwException
Specified by:
changeClass in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

delete

public void delete()
            throws com.wewebu.ow.server.exceptions.OwException
Specified by:
delete in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

getChildCount

public int getChildCount(int[] objectTypes_p,
                         int context_p)
                  throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getChildCount in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

createCopy

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
Specified by:
createCopy in interface OwCMISObject
Throws:
com.wewebu.ow.server.exceptions.OwException

getClassName

public String getClassName()
Specified by:
getClassName in interface com.wewebu.ow.server.ecm.OwObject

getClonedPermissions

public OwCMISPermissionCollection getClonedPermissions()
                                                throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getClonedPermissions in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

getClonedProperties

public com.wewebu.ow.server.ecm.OwPropertyCollection getClonedProperties(Collection propertyNames_p)
                                                                  throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getClonedProperties in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

getColumnInfoList

public Collection getColumnInfoList()
                             throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getColumnInfoList in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

getContentCollection

public com.wewebu.ow.server.ecm.OwContentCollection getContentCollection()
                                                                  throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getContentCollection in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

getFilterProperties

public Collection getFilterProperties(Collection propertyNames_p)
                               throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getFilterProperties in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

getLock

public boolean getLock(int context_p)
                throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getLock in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

getLockUserID

public String getLockUserID(int context_p)
                     throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getLockUserID in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

getMyLock

public boolean getMyLock(int context_p)
                  throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getMyLock in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

getNativeObject

public org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType getNativeObject()
Specified by:
getNativeObject in interface com.wewebu.ow.server.ecm.OwObject
Specified by:
getNativeObject in interface OwCMISObject

getParents

public com.wewebu.ow.server.ecm.OwObjectCollection getParents()
                                                       throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getParents in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

getPath

public String getPath()
               throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getPath in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

getPermissions

public OwCMISPermissionCollection getPermissions()
                                          throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getPermissions in interface com.wewebu.ow.server.ecm.OwObject
Specified by:
getPermissions in interface OwCMISObject
Throws:
com.wewebu.ow.server.exceptions.OwException

setPermissions

public void setPermissions(com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p)
                    throws com.wewebu.ow.server.exceptions.OwException
Specified by:
setPermissions in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

getProperties

public com.wewebu.ow.server.ecm.OwPropertyCollection getProperties(Collection propertyNames_p)
                                                            throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getProperties in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

getProperty

public OwCMISProperty getProperty(String propertyName_p)
                           throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getProperty in interface com.wewebu.ow.server.ecm.OwObject
Specified by:
getProperty in interface OwCMISObject
Throws:
com.wewebu.ow.server.exceptions.OwException

getResource

public OwCMISResource getResource()
                           throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getResource in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

getObjectModel

public OwCMISObjectModel getObjectModel()

getSearchTemplate

public com.wewebu.ow.server.field.OwSearchTemplate getSearchTemplate()
                                                              throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getSearchTemplate in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

move

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
Specified by:
move in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

refreshProperties

public void refreshProperties()
                       throws com.wewebu.ow.server.exceptions.OwException
Specified by:
refreshProperties in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

refreshProperties

public void refreshProperties(Collection propertyClassNames_p)
                       throws com.wewebu.ow.server.exceptions.OwException
Specified by:
refreshProperties in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

removeReference

public void removeReference(com.wewebu.ow.server.ecm.OwObject object_p)
                     throws com.wewebu.ow.server.exceptions.OwException
Specified by:
removeReference in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

setLock

public boolean setLock(boolean lock_p)
                throws com.wewebu.ow.server.exceptions.OwException
Specified by:
setLock in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

canSetProperties

public boolean canSetProperties(int contextStatus_p)
                         throws com.wewebu.ow.server.exceptions.OwException
Specified by:
canSetProperties in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

setProperties

public void setProperties(com.wewebu.ow.server.ecm.OwPropertyCollection properties_p)
                   throws com.wewebu.ow.server.exceptions.OwException
Specified by:
setProperties in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

setProperties

public void setProperties(com.wewebu.ow.server.ecm.OwPropertyCollection properties_p,
                          Object mode_p)
                   throws com.wewebu.ow.server.exceptions.OwException
Specified by:
setProperties in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

getID

public String getID()
Specified by:
getID in interface com.wewebu.ow.server.ecm.OwObjectReference

getDecodedID

public String getDecodedID()
Helper method which can be used to without calling decodeID(String).

Returns:
String representing the decodeID
Since:
3.1.0.0

getInstance

public com.wewebu.ow.server.ecm.OwObject getInstance()
                                              throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getInstance in interface com.wewebu.ow.server.ecm.OwObjectReference
Throws:
com.wewebu.ow.server.exceptions.OwException

getChilds

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
Specified by:
getChilds in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

getMIMEParameter

public String getMIMEParameter()
                        throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getMIMEParameter in interface com.wewebu.ow.server.ecm.OwObjectReference
Throws:
com.wewebu.ow.server.exceptions.OwException

getName

public String getName()
Specified by:
getName in interface com.wewebu.ow.server.ecm.OwObjectReference

getPageCount

public int getPageCount()
                 throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getPageCount in interface com.wewebu.ow.server.ecm.OwObjectReference
Throws:
com.wewebu.ow.server.exceptions.OwException

getResourceID

public String getResourceID()
                     throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getResourceID in interface com.wewebu.ow.server.ecm.OwObjectReference
Specified by:
getResourceID in interface OwCMISObject
Throws:
com.wewebu.ow.server.exceptions.OwException

hasContent

public boolean hasContent(int context_p)
                   throws com.wewebu.ow.server.exceptions.OwException
Specified by:
hasContent in interface com.wewebu.ow.server.ecm.OwObjectReference
Throws:
com.wewebu.ow.server.exceptions.OwException

getField

public com.wewebu.ow.server.field.OwField getField(String strFieldClassName_p)
                                            throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getField in interface com.wewebu.ow.server.field.OwFieldProvider
Throws:
com.wewebu.ow.server.exceptions.OwException

getFieldProviderName

public String getFieldProviderName()
Specified by:
getFieldProviderName in interface com.wewebu.ow.server.field.OwFieldProvider

getFieldProviderSource

public Object getFieldProviderSource()
Specified by:
getFieldProviderSource in interface com.wewebu.ow.server.field.OwFieldProvider

getFieldProviderType

public int getFieldProviderType()
Specified by:
getFieldProviderType in interface com.wewebu.ow.server.field.OwFieldProvider

getFields

public Collection getFields()
                     throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getFields in interface com.wewebu.ow.server.field.OwFieldProvider
Throws:
com.wewebu.ow.server.exceptions.OwException

getSafeFieldValue

public Object getSafeFieldValue(String name_p,
                                Object defaultValue_p)
Specified by:
getSafeFieldValue in interface com.wewebu.ow.server.field.OwFieldProvider

setField

public void setField(String name_p,
                     Object value_p)
              throws com.wewebu.ow.server.exceptions.OwException
Specified by:
setField in interface com.wewebu.ow.server.field.OwFieldProvider
Throws:
com.wewebu.ow.server.exceptions.OwException

getNetwork

protected OwCMISNetwork getNetwork()

retrieveCmisProperty

protected OwCMISProperty retrieveCmisProperty(String cmisPropertyClassName_p)
                                       throws com.wewebu.ow.server.exceptions.OwException
Method which handles the fall back retrieving of property.

Simply calling the retrieveCmisProperties(List,boolean) and packing the cmisPropId into a list.

Parameters:
cmisPropertyClassName_p - a qualified or non-qualified CMIS property name
Returns:
OwCMISProperty specific to the data type
Throws:
com.wewebu.ow.server.exceptions.OwException

retrieveCmisProperties

protected com.wewebu.ow.server.ecm.OwPropertyCollection retrieveCmisProperties(List<String> lstCmisPropertyClassNames_p,
                                                                               boolean strict_p)
                                                                        throws com.wewebu.ow.server.exceptions.OwException
Method which handles the fall back to retrieve more then one property from back end. And add it to the current property collection of this object.

Parameters:
lstCmisPropertyClassNames_p - List of CMIS property class names (qualified or non qualified)
strict_p - if true the returned property collection will contain properties mapped for the exact requested names property names
if false the returned property collection will contain properties mapped to their concrete names (see OwCMISMappedInternalPropertyClass)
Returns:
OwPropertyCollection with the defined properties
Throws:
com.wewebu.ow.server.exceptions.OwException

equals

public boolean equals(Object obj_p)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

encodeID

protected String encodeID(String id_p)
Helper to encode the ID of an object.

Parameters:
id_p - String
Returns:
String which is encoded
Since:
3.1.0.0
See Also:
decodeID(String)

decodeID

protected String decodeID(String id_p)
Helper to decode the ID of an object.

Parameters:
id_p - String to decode
Returns:
String
Since:
3.1.0.0
See Also:
encodeID(String)

getChangeToken

protected String getChangeToken()
                         throws com.wewebu.ow.server.exceptions.OwException
Get the value of change token.

Returns:
String value or null
Throws:
com.wewebu.ow.server.exceptions.OwException
Since:
3.2.0.3


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.