com.wewebu.ow.server.ecmimpl.owdummy
Class OwDummyObjectLink

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.owdummy.OwDummyObjectLink
All Implemented Interfaces:
com.wewebu.ow.server.ecm.OwObject, com.wewebu.ow.server.ecm.OwObjectLink, com.wewebu.ow.server.ecm.OwObjectReference, com.wewebu.ow.server.field.OwFieldProvider

public class OwDummyObjectLink
extends Object
implements com.wewebu.ow.server.ecm.OwObjectLink

Dummy link implementation.

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:
4.1.1.0

Field Summary
static String LINKS_PREFIX
          prefix for DMSID to identify links
 
Fields inherited from interface com.wewebu.ow.server.ecm.OwObjectLink
OW_LINK_RELATION, OW_LINK_SOURCE, OW_LINK_TARGET, OW_LINK_TYPE_FILTER
 
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
OwDummyObjectLink(com.wewebu.ow.server.ecm.OwObject source, com.wewebu.ow.server.ecm.OwObject target)
           
OwDummyObjectLink(String name, com.wewebu.ow.server.ecm.OwObjectClass linkClass, com.wewebu.ow.server.ecm.OwObject source, com.wewebu.ow.server.ecm.OwObject target)
           
OwDummyObjectLink(String name, com.wewebu.ow.server.ecm.OwObject source, com.wewebu.ow.server.ecm.OwObject target)
           
 
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)
           
 void delete()
           
 int getChildCount(int[] iObjectTypes_p, int iContext_p)
           
 com.wewebu.ow.server.ecm.OwObjectCollection getChilds(int[] iObjectTypes_p, Collection propertyNames_p, com.wewebu.ow.server.field.OwSort sort_p, int iMaxSize_p, int iVersionSelection_p, com.wewebu.ow.server.field.OwSearchNode filterCriteria_p)
           
 String getClassName()
           
 com.wewebu.ow.server.ecm.OwPermissionCollection getClonedPermissions()
           
 com.wewebu.ow.server.ecm.OwPropertyCollection getClonedProperties(Collection propertyNames_p)
           
 Collection getColumnInfoList()
           
 com.wewebu.ow.server.ecm.OwContentCollection getContentCollection()
           
 String getDMSID()
           
 com.wewebu.ow.server.field.OwField getField(String strFieldClassName_p)
           
 String getFieldProviderName()
           
 Object getFieldProviderSource()
           
 int getFieldProviderType()
           
 Collection getFields()
           
 Collection<com.wewebu.ow.server.field.OwFieldDefinition> getFilterProperties(Collection propertynames_p)
           
 String getID()
           
 com.wewebu.ow.server.ecm.OwObject getInstance()
           
 boolean getLock(int iContext_p)
           
 String getLockUserID(int iContext_p)
           
 String getMIMEParameter()
           
 String getMIMEType()
           
 boolean getMyLock(int iContext_p)
           
 String getName()
           
 Object getNativeObject()
           
 com.wewebu.ow.server.ecm.OwObjectClass getObjectClass()
           
 int getPageCount()
           
 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)
           
 com.wewebu.ow.server.ecm.OwObjectLinkRelation getRelation(com.wewebu.ow.server.ecm.OwObject obj)
           
 com.wewebu.ow.server.ecm.OwResource getResource()
           
 String getResourceID()
           
 Object getSafeFieldValue(String sName_p, Object defaultvalue_p)
           
 com.wewebu.ow.server.field.OwSearchTemplate getSearchTemplate()
           
 com.wewebu.ow.server.ecm.OwObjectReference getSource()
           
 com.wewebu.ow.server.ecm.OwObjectReference getTarget()
           
 int getType()
           
 com.wewebu.ow.server.ecm.OwVersion getVersion()
           
 com.wewebu.ow.server.ecm.OwVersionSeries getVersionSeries()
           
 boolean hasChilds(int[] iObjectTypes_p, int iContext_p)
           
 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
 

Field Detail

LINKS_PREFIX

public static final String LINKS_PREFIX
prefix for DMSID to identify links

See Also:
Constant Field Values
Constructor Detail

OwDummyObjectLink

public OwDummyObjectLink(com.wewebu.ow.server.ecm.OwObject source,
                         com.wewebu.ow.server.ecm.OwObject target)

OwDummyObjectLink

public OwDummyObjectLink(String name,
                         com.wewebu.ow.server.ecm.OwObject source,
                         com.wewebu.ow.server.ecm.OwObject target)

OwDummyObjectLink

public OwDummyObjectLink(String name,
                         com.wewebu.ow.server.ecm.OwObjectClass linkClass,
                         com.wewebu.ow.server.ecm.OwObject source,
                         com.wewebu.ow.server.ecm.OwObject target)
Method Detail

getClassName

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

getObjectClass

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

getParents

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

getChilds

public com.wewebu.ow.server.ecm.OwObjectCollection getChilds(int[] iObjectTypes_p,
                                                             Collection propertyNames_p,
                                                             com.wewebu.ow.server.field.OwSort sort_p,
                                                             int iMaxSize_p,
                                                             int iVersionSelection_p,
                                                             com.wewebu.ow.server.field.OwSearchNode filterCriteria_p)
                                                      throws Exception
Specified by:
getChilds in interface com.wewebu.ow.server.ecm.OwObject
Throws:
Exception

hasChilds

public boolean hasChilds(int[] iObjectTypes_p,
                         int iContext_p)
                  throws Exception
Specified by:
hasChilds in interface com.wewebu.ow.server.ecm.OwObject
Throws:
Exception

getChildCount

public int getChildCount(int[] iObjectTypes_p,
                         int iContext_p)
                  throws Exception
Specified by:
getChildCount in interface com.wewebu.ow.server.ecm.OwObject
Throws:
Exception

changeClass

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

canChangeClass

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

canFilterChilds

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

getFilterProperties

public Collection<com.wewebu.ow.server.field.OwFieldDefinition> getFilterProperties(Collection propertynames_p)
                                                                             throws Exception
Specified by:
getFilterProperties in interface com.wewebu.ow.server.ecm.OwObject
Throws:
Exception

getVersionSeries

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

hasVersionSeries

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

getVersion

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

getProperty

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

getProperties

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

getClonedProperties

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

setProperties

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

setProperties

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

canSetProperties

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

canGetProperties

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

canLock

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

setLock

public boolean setLock(boolean fLock_p)
                throws Exception
Specified by:
setLock in interface com.wewebu.ow.server.ecm.OwObject
Throws:
Exception

getLock

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

getMyLock

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

getLockUserID

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

delete

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

canDelete

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

removeReference

public void removeReference(com.wewebu.ow.server.ecm.OwObject oObject_p)
                     throws Exception
Specified by:
removeReference in interface com.wewebu.ow.server.ecm.OwObject
Throws:
Exception

canRemoveReference

public boolean canRemoveReference(com.wewebu.ow.server.ecm.OwObject oObject_p,
                                  int iContext_p)
                           throws Exception
Specified by:
canRemoveReference in interface com.wewebu.ow.server.ecm.OwObject
Throws:
Exception

add

public void add(com.wewebu.ow.server.ecm.OwObject oObject_p)
         throws Exception
Specified by:
add in interface com.wewebu.ow.server.ecm.OwObject
Throws:
Exception

canAdd

public boolean canAdd(com.wewebu.ow.server.ecm.OwObject oObject_p,
                      int iContext_p)
               throws Exception
Specified by:
canAdd in interface com.wewebu.ow.server.ecm.OwObject
Throws:
Exception

move

public void move(com.wewebu.ow.server.ecm.OwObject oObject_p,
                 com.wewebu.ow.server.ecm.OwObject oldParent_p)
          throws Exception
Specified by:
move in interface com.wewebu.ow.server.ecm.OwObject
Throws:
Exception

canMove

public boolean canMove(com.wewebu.ow.server.ecm.OwObject oObject_p,
                       com.wewebu.ow.server.ecm.OwObject oldParent_p,
                       int iContext_p)
                throws Exception
Specified by:
canMove in interface com.wewebu.ow.server.ecm.OwObject
Throws:
Exception

getSearchTemplate

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

getColumnInfoList

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

getResource

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

getPermissions

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

getClonedPermissions

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

canGetPermissions

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

canSetPermissions

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

setPermissions

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

getContentCollection

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

setContentCollection

public void setContentCollection(com.wewebu.ow.server.ecm.OwContentCollection content_p)
                          throws Exception
Specified by:
setContentCollection in interface com.wewebu.ow.server.ecm.OwObject
Throws:
Exception

canSetContent

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

canGetContent

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

refreshProperties

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

refreshProperties

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

getNativeObject

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

getPath

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

getResourceID

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

getInstance

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

getName

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

getID

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

getType

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

getDMSID

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

getPageCount

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

getMIMEType

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

getMIMEParameter

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

hasContent

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

getField

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

setField

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

getSafeFieldValue

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

getFields

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

getFieldProviderType

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

getFieldProviderSource

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

getFieldProviderName

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

getTarget

public com.wewebu.ow.server.ecm.OwObjectReference getTarget()
Specified by:
getTarget in interface com.wewebu.ow.server.ecm.OwObjectLink

getSource

public com.wewebu.ow.server.ecm.OwObjectReference getSource()
Specified by:
getSource in interface com.wewebu.ow.server.ecm.OwObjectLink

getRelation

public com.wewebu.ow.server.ecm.OwObjectLinkRelation getRelation(com.wewebu.ow.server.ecm.OwObject obj)
Specified by:
getRelation in interface com.wewebu.ow.server.ecm.OwObjectLink


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.