com.wewebu.ow.server.ecmimpl.cmis
Class OwCMISAbstractDomainFolder

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.cmis.OwCMISAbstractDomainFolder
All Implemented Interfaces:
com.wewebu.ow.server.ecm.OwObject, com.wewebu.ow.server.ecm.OwObjectReference, com.wewebu.ow.server.field.OwFieldProvider
Direct Known Subclasses:
OwCMISCrossDomainFolder, OwCMISDomainFolder

public abstract class OwCMISAbstractDomainFolder
extends Object
implements com.wewebu.ow.server.ecm.OwObject

Domain folder implementation base class.

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

Since:
3.1.0.0

Field Summary
protected  OwCMISNetwork m_network
          OwCMISNetwork reference
 
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
OwCMISAbstractDomainFolder(OwCMISNetwork network_p)
           
 
Method Summary
 void add(com.wewebu.ow.server.ecm.OwObject oObject_p)
           
 boolean canAdd(com.wewebu.ow.server.ecm.OwObject oObject_p, int iContext_p)
           
 boolean canChangeClass()
           
 boolean canDelete(int iContext_p)
           
 boolean canFilterChilds()
           
 boolean canGetContent(int iContentType_p, int iContext_p)
           
 boolean canGetPermissions()
           
 boolean canGetProperties(int iContext_p)
           
 boolean canLock()
           
 boolean canMove(com.wewebu.ow.server.ecm.OwObject oObject_p, com.wewebu.ow.server.ecm.OwObject oldParent_p, int iContext_p)
           
 boolean canRemoveReference(com.wewebu.ow.server.ecm.OwObject oObject_p, int iContext_p)
           
 boolean canSetContent(int iContentType_p, int iContext_p)
           
 boolean canSetPermissions()
           
 boolean canSetProperties(int iContext_p)
           
 void changeClass(String strNewClassName_p, com.wewebu.ow.server.ecm.OwPropertyCollection properties_p, com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p)
           
protected  List<OwCMISRepositoryObject> createRepositoryFolders()
           
 void delete()
           
 com.wewebu.ow.server.ecm.OwPermissionCollection getClonedPermissions()
           
 com.wewebu.ow.server.ecm.OwPropertyCollection getClonedProperties(Collection strPropertyNames_p)
           
 Collection getColumnInfoList()
           
 com.wewebu.ow.server.ecm.OwContentCollection getContentCollection()
           
 String getDMSID()
          Creates a DMSID for this domain folder.
The ID of this object is used getID() and attached as hash code to the DMSID representation.
Like: "DMS_PREFIX,ResourceID,"+Integer.toString(getID().hashCode())
 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 iContext_p)
           
 String getLockUserID(int iContext_p)
           
 boolean getMyLock(int iContext_p)
           
 Object getNativeObject()
           
protected  OwCMISNetwork getNetwork()
          Get the current network.
 com.wewebu.ow.server.ecm.OwObjectCollection getParents()
           
 String getPath()
           
 com.wewebu.ow.server.ecm.OwPermissionCollection getPermissions()
           
 com.wewebu.ow.server.ecm.OwPropertyCollection getProperties(Collection propertyNames_p)
           
 com.wewebu.ow.server.ecm.OwProperty getProperty(String strPropertyName_p)
           
 Object getSafeFieldValue(String sName_p, Object defaultvalue_p)
           
 com.wewebu.ow.server.field.OwSearchTemplate getSearchTemplate()
           
 int getType()
           
 com.wewebu.ow.server.ecm.OwVersion getVersion()
           
 com.wewebu.ow.server.ecm.OwVersionSeries getVersionSeries()
           
 boolean hasContent(int iContext_p)
           
 boolean hasVersionSeries()
           
 void move(com.wewebu.ow.server.ecm.OwObject oObject_p, com.wewebu.ow.server.ecm.OwObject oldParent_p)
           
 void refreshProperties()
           
 void refreshProperties(Collection props_p)
           
 void removeReference(com.wewebu.ow.server.ecm.OwObject oObject_p)
           
 void setContentCollection(com.wewebu.ow.server.ecm.OwContentCollection content_p)
           
 void setField(String sName_p, Object value_p)
           
 boolean setLock(boolean fLock_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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.wewebu.ow.server.ecm.OwObject
getChildCount, getChilds, getClassName, getObjectClass, getResource, hasChilds
 
Methods inherited from interface com.wewebu.ow.server.ecm.OwObjectReference
getMIMEParameter, getMIMEType, getName, getPageCount, getResourceID
 

Field Detail

m_network

protected OwCMISNetwork m_network
OwCMISNetwork reference

Constructor Detail

OwCMISAbstractDomainFolder

public OwCMISAbstractDomainFolder(OwCMISNetwork network_p)
Method Detail

getDMSID

public String getDMSID()
Creates a DMSID for this domain folder.
The ID of this object is used getID() and attached as hash code to the DMSID representation.
Like: "DMS_PREFIX,ResourceID,"+Integer.toString(getID().hashCode())

Specified by:
getDMSID in interface com.wewebu.ow.server.ecm.OwObjectReference
Returns:
String representing an DMSID.

getID

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

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 com.wewebu.ow.server.ecm.OwProperty getProperty(String strPropertyName_p)
                                                throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getProperty in interface com.wewebu.ow.server.ecm.OwObject
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

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

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

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

add

public void add(com.wewebu.ow.server.ecm.OwObject oObject_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 oObject_p,
                      int iContext_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

move

public void move(com.wewebu.ow.server.ecm.OwObject oObject_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

canMove

public boolean canMove(com.wewebu.ow.server.ecm.OwObject oObject_p,
                       com.wewebu.ow.server.ecm.OwObject oldParent_p,
                       int iContext_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

canDelete

public boolean canDelete(int iContext_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

canGetProperties

public boolean canGetProperties(int iContext_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

canRemoveReference

public boolean canRemoveReference(com.wewebu.ow.server.ecm.OwObject oObject_p,
                                  int iContext_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

canGetContent

public boolean canGetContent(int iContentType_p,
                             int iContext_p)
                      throws com.wewebu.ow.server.exceptions.OwException
Specified by:
canGetContent in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

canSetContent

public boolean canSetContent(int iContentType_p,
                             int iContext_p)
                      throws com.wewebu.ow.server.exceptions.OwException
Specified by:
canSetContent in interface com.wewebu.ow.server.ecm.OwObject
Throws:
com.wewebu.ow.server.exceptions.OwException

canSetProperties

public boolean canSetProperties(int iContext_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

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

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

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

getClonedProperties

public com.wewebu.ow.server.ecm.OwPropertyCollection getClonedProperties(Collection strPropertyNames_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

getLock

public boolean getLock(int iContext_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

getMyLock

public boolean getMyLock(int iContext_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

getLockUserID

public String getLockUserID(int iContext_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

getPermissions

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

getClonedPermissions

public com.wewebu.ow.server.ecm.OwPermissionCollection 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

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

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

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

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 props_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

setContentCollection

public void setContentCollection(com.wewebu.ow.server.ecm.OwContentCollection content_p)
                          throws com.wewebu.ow.server.exceptions.OwException
Specified by:
setContentCollection 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

getNativeObject

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

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

getSafeFieldValue

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

getNetwork

protected OwCMISNetwork getNetwork()
Get the current network.

Returns:
OwCMISNetwork

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

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

getVersionSeries

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

hasVersionSeries

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

getVersion

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

hasContent

public boolean hasContent(int iContext_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

getFieldProviderName

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

setField

public void setField(String sName_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

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

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

setLock

public boolean setLock(boolean fLock_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

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

removeReference

public void removeReference(com.wewebu.ow.server.ecm.OwObject oObject_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

getType

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

getPath

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

createRepositoryFolders

protected List<OwCMISRepositoryObject> createRepositoryFolders()
                                                        throws com.wewebu.ow.server.exceptions.OwException
Throws:
com.wewebu.ow.server.exceptions.OwException


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.