com.wewebu.ow.server.plug.owdemo.owfax
Class OwAddressObject

java.lang.Object
  extended by com.wewebu.ow.server.plug.owdemo.owfax.OwAddressObject
All Implemented Interfaces:
com.wewebu.ow.server.ecm.OwObject, com.wewebu.ow.server.ecm.OwObjectReference, com.wewebu.ow.server.field.OwFieldProvider

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

Address Object.

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 OwDummyFileObject.OwDummyFileObjectClass m_classDescription
          the class description for the object JUST USE THE DUMMY Class
protected  com.wewebu.ow.server.ecm.OwPropertyCollection m_PropertyMap
          map with the properties
 
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
OwAddressObject(ResultSet resultset_p, com.wewebu.ow.server.ui.OwAppContext context_p)
          construct a address object from a JDBC resultset
 
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()
          check if object can change its class
 boolean canDelete(int iContext_p)
           
 boolean canFilterChilds()
          check if the FilterCriteria_p in getChilds is possible NOTE: The FilterCriteria_p parameter in getChilds is an additional filter to the internal SearchTemplate used in the getSearchTemplate(...) function The internal SearchTemplate used in the getSearchTemplate(...) is used for virtual folders, the FilterCriteria_p is used to refine the result of a node
 boolean canGetContent(int iContentType_p, int iContext_p)
           
 boolean canGetPermissions()
          check if permissions are accessible
 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()
          check if permissions can be set
 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)
          change the class of the object
 void delete()
           
 int getChildCount(int[] iObjectTypes_p, int iContext_p)
          get the number of children
 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)
          get the children of the object, does NOT cache the returned object For Compound Documents returns the list of contained documents For Folders returns the list of subfolders
 String getClassName()
           
 com.wewebu.ow.server.ecm.OwPermissionCollection getClonedPermissions()
          get the cloned permissions
 com.wewebu.ow.server.ecm.OwPropertyCollection getClonedProperties(Collection strPropertyNames_p)
           
 Collection getColumnInfoList()
           
 com.wewebu.ow.server.ecm.OwContentCollection getContentCollection()
           
 String getDMSID()
           
 com.wewebu.ow.server.field.OwField getField(String strFieldClassName_p)
          implementation of the OwFieldProvider interface get a field with the given field definition class name
 String getFieldProviderName()
          get a name that identifies the field provider, can be used to create IDs
 Object getFieldProviderSource()
          get the source object that originally provided the fields.
 int getFieldProviderType()
          get the type of field provider as defined with TYPE_...
 Collection getFields()
          get all the properties in the form
 Collection getFilterProperties(Collection propertynames_p)
          get a collection of OwFieldDefinition's for a given list of names
 String getID()
          get Object symbolic name of the object which is unique among its siblings used for path construction
 com.wewebu.ow.server.ecm.OwObject getInstance()
          get a instance from this reference
 boolean getLock(int iContext_p)
           
 String getLockUserID(int iContext_p)
          get the lock user of the object
 String getMIMEParameter()
           
 String getMIMEType()
           
 boolean getMyLock(int iContext_p)
          get the lock state of the object for the CURRENTLY logged on user
 String getName()
           
 Object getNativeObject()
          get the native object from the ECM system WARNING: The returned object is Opaque.
 com.wewebu.ow.server.ecm.OwObjectClass getObjectClass()
           
 int getPageCount()
           
 com.wewebu.ow.server.ecm.OwObjectCollection getParents()
           
 String getPath()
          get the path to the object, which can be used in OwNetwork.getObjectFromPath to recreate the object The path is build with the name property.
 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.OwResource getResource()
           
 String getResourceID()
          get the ID / name identifying the resource the object belongs to
 Object getSafeFieldValue(String sName_p, Object defaultvalue_p)
          retrieve the value of a Field
 com.wewebu.ow.server.field.OwSearchTemplate getSearchTemplate()
           
 int getType()
           
 com.wewebu.ow.server.ecm.OwVersion getVersion()
           
 com.wewebu.ow.server.ecm.OwVersionSeries getVersionSeries()
           
 boolean hasChilds(int[] iObjectTypes_p, int iContext_p)
          check if object has children
 boolean hasContent(int iContext_p)
          check if the object contains a content, which can be retrieved using getContentCollection
 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)
          refresh the property cache
 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)
          modify a Field value, but does not save the value right away
 boolean setLock(boolean fLock_p)
           
 void setPermissions(com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p)
          set the permissions object
 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

m_classDescription

public static final OwDummyFileObject.OwDummyFileObjectClass m_classDescription
the class description for the object JUST USE THE DUMMY Class


m_PropertyMap

protected com.wewebu.ow.server.ecm.OwPropertyCollection m_PropertyMap
map with the properties

Constructor Detail

OwAddressObject

public OwAddressObject(ResultSet resultset_p,
                       com.wewebu.ow.server.ui.OwAppContext context_p)
                throws Exception
construct a address object from a JDBC resultset

Throws:
Exception
Method Detail

getMIMEType

public String getMIMEType()
                   throws Exception
Specified by:
getMIMEType 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()
get Object symbolic name of the object which is unique among its siblings used for path construction

Specified by:
getID in interface com.wewebu.ow.server.ecm.OwObjectReference
Returns:
the symbolic name of the object which is unique among its siblings

getObjectClass

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

getClassName

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

getClonedProperties

public com.wewebu.ow.server.ecm.OwPropertyCollection getClonedProperties(Collection strPropertyNames_p)
                                                                  throws Exception
Specified by:
getClonedProperties 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

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

getType

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

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

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

canDelete

public boolean canDelete(int iContext_p)
                  throws Exception
Specified by:
canDelete 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

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

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

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

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

canSetProperties

public boolean canSetProperties(int iContext_p)
                         throws Exception
Specified by:
canSetProperties 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

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
get the children of the object, does NOT cache the returned object For Compound Documents returns the list of contained documents For Folders returns the list of subfolders

Specified by:
getChilds in interface com.wewebu.ow.server.ecm.OwObject
Parameters:
iObjectTypes_p - the requested object types (folder or document)
propertyNames_p - properties to fetch from DMS system along with the children, can be null.
sort_p - OwSort Sortcriteria list to sort return list
iMaxSize_p - int maximum number of objects to retrieve
iVersionSelection_p - int Selects the versions as defined in OwSearchTemplate.VERSION_SELECT_...
filterCriteria_p - optional OwSearchNode to filter the children, can be null NOTE: This parameter is an additional filter to the internal SearchTemplate used in the getSearchTemplate(...) function The internal SearchTemplate used in the getSearchTemplate(...) is used for virtual folders, the FilterCriteria_p is used to refine the result of a node
Returns:
list of child objects, or null
Throws:
Exception

canFilterChilds

public boolean canFilterChilds()
                        throws Exception
check if the FilterCriteria_p in getChilds is possible NOTE: The FilterCriteria_p parameter in getChilds is an additional filter to the internal SearchTemplate used in the getSearchTemplate(...) function The internal SearchTemplate used in the getSearchTemplate(...) is used for virtual folders, the FilterCriteria_p is used to refine the result of a node

Specified by:
canFilterChilds in interface com.wewebu.ow.server.ecm.OwObject
Returns:
true = filter children with FilterCriteria_p is possible, false = filter is not possible / ignored
Throws:
Exception

getFilterProperties

public Collection getFilterProperties(Collection propertynames_p)
                               throws Exception
get a collection of OwFieldDefinition's for a given list of names

Specified by:
getFilterProperties in interface com.wewebu.ow.server.ecm.OwObject
Parameters:
propertynames_p - Collection of property names the client wants to use as filter properties or null to retrieve all possible filter properties
Returns:
Collection of OwFieldDefinition's that can actually be filtered, may be a subset of propertynames_p, or null if no filter properties are allowed
Throws:
Exception

getColumnInfoList

public Collection getColumnInfoList()
                             throws Exception
Specified by:
getColumnInfoList 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

getDMSID

public String getDMSID()
                throws Exception
Specified by:
getDMSID in interface com.wewebu.ow.server.ecm.OwObjectReference
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
get the lock state of the object for the CURRENTLY logged on user

Specified by:
getMyLock in interface com.wewebu.ow.server.ecm.OwObject
Parameters:
iContext_p - OwStatusContextDefinitions
Returns:
the lock state of the object
Throws:
Exception

getLockUserID

public String getLockUserID(int iContext_p)
                     throws Exception
get the lock user of the object

Specified by:
getLockUserID in interface com.wewebu.ow.server.ecm.OwObject
Parameters:
iContext_p - as defined by OwStatusContextDefinitions
Returns:
the User ID of the user who locked the item, or null if it is not locked
Throws:
Exception

getMIMEParameter

public String getMIMEParameter()
                        throws Exception
Specified by:
getMIMEParameter 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

getParents

public com.wewebu.ow.server.ecm.OwObjectCollection getParents()
                                                       throws Exception
Specified by:
getParents 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
get the cloned permissions

Specified by:
getClonedPermissions in interface com.wewebu.ow.server.ecm.OwObject
Returns:
OwPermissionCollection clone of the object
Throws:
Exception

canGetPermissions

public boolean canGetPermissions()
                          throws Exception
check if permissions are accessible

Specified by:
canGetPermissions in interface com.wewebu.ow.server.ecm.OwObject
Returns:
true = permissions can be retrieved
Throws:
Exception

canSetPermissions

public boolean canSetPermissions()
                          throws Exception
check if permissions can be set

Specified by:
canSetPermissions in interface com.wewebu.ow.server.ecm.OwObject
Returns:
true = permissions can be set
Throws:
Exception

setPermissions

public void setPermissions(com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p)
                    throws Exception
set the permissions object

Specified by:
setPermissions in interface com.wewebu.ow.server.ecm.OwObject
Parameters:
permissions_p - OwPermissionCollection to set
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

getSearchTemplate

public com.wewebu.ow.server.field.OwSearchTemplate getSearchTemplate()
                                                              throws Exception
Specified by:
getSearchTemplate 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

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

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

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
refresh the property cache

Specified by:
refreshProperties in interface com.wewebu.ow.server.ecm.OwObject
Parameters:
props_p - Collection of property names to update
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

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

setLock

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

getNativeObject

public Object getNativeObject()
                       throws Exception
get the native object from the ECM system WARNING: The returned object is Opaque. Using the native object makes the client dependent on the ECM System

Specified by:
getNativeObject in interface com.wewebu.ow.server.ecm.OwObject
Returns:
no native object available
Throws:
Exception

getField

public com.wewebu.ow.server.field.OwField getField(String strFieldClassName_p)
                                            throws Exception,
                                                   com.wewebu.ow.server.exceptions.OwObjectNotFoundException
implementation of the OwFieldProvider interface get a field with the given field definition class name

Specified by:
getField in interface com.wewebu.ow.server.field.OwFieldProvider
Parameters:
strFieldClassName_p - String class name of requested fields
Returns:
OwField or throws OwObjectNotFoundException
Throws:
Exception
com.wewebu.ow.server.exceptions.OwObjectNotFoundException

getFieldProviderSource

public Object getFieldProviderSource()
get the source object that originally provided the fields. e.g. the fieldprovider might be a template pattern implementation like a view, where the original provider would still be an OwObject

Specified by:
getFieldProviderSource in interface com.wewebu.ow.server.field.OwFieldProvider
Returns:
Object the original source object where the fields have been taken, can be a this pointer

getFieldProviderType

public int getFieldProviderType()
get the type of field provider as defined with TYPE_...

Specified by:
getFieldProviderType in interface com.wewebu.ow.server.field.OwFieldProvider

hasContent

public boolean hasContent(int iContext_p)
                   throws Exception
check if the object contains a content, which can be retrieved using getContentCollection

Specified by:
hasContent in interface com.wewebu.ow.server.ecm.OwObjectReference
Parameters:
iContext_p - as defined by OwStatusContextDefinitions
Returns:
boolean true = object contains content, false = object has no content
Throws:
Exception

hasChilds

public boolean hasChilds(int[] iObjectTypes_p,
                         int iContext_p)
                  throws Exception
check if object has children

Specified by:
hasChilds in interface com.wewebu.ow.server.ecm.OwObject
Parameters:
iContext_p - OwStatusContextDefinitions
Returns:
true, object has children
Throws:
Exception

getPath

public String getPath()
               throws Exception
get the path to the object, which can be used in OwNetwork.getObjectFromPath to recreate the object The path is build with the name property. Unlike the symbol name and the dmsid, the path is not necessarily unique, but provids a readable information of the objects location.

Specified by:
getPath in interface com.wewebu.ow.server.ecm.OwObject
Throws:
Exception

getChildCount

public int getChildCount(int[] iObjectTypes_p,
                         int iContext_p)
                  throws Exception
get the number of children

Specified by:
getChildCount in interface com.wewebu.ow.server.ecm.OwObject
Parameters:
iObjectTypes_p - the requested object type (folder or document)
iContext_p - OwStatusContextDefinitions
Returns:
int number of children or throws OwStatusContextException
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
change the class of the object

Specified by:
changeClass in interface com.wewebu.ow.server.ecm.OwObject
Parameters:
strNewClassName_p - new class name as String
properties_p - OwPropertyCollection (optional, can be null to set previous properties)
permissions_p - OwPermissionCollection (optional, can be null to set previous permissions)
Throws:
Exception

canChangeClass

public boolean canChangeClass()
                       throws Exception
check if object can change its class

Specified by:
canChangeClass in interface com.wewebu.ow.server.ecm.OwObject
Throws:
Exception

getFieldProviderName

public String getFieldProviderName()
get a name that identifies the field provider, can be used to create IDs

Specified by:
getFieldProviderName in interface com.wewebu.ow.server.field.OwFieldProvider
Returns:
String unique ID / Name of fieldprovider

setField

public void setField(String sName_p,
                     Object value_p)
              throws Exception,
                     com.wewebu.ow.server.exceptions.OwObjectNotFoundException
modify a Field value, but does not save the value right away

Specified by:
setField in interface com.wewebu.ow.server.field.OwFieldProvider
Parameters:
sName_p -
value_p -
Throws:
Exception
com.wewebu.ow.server.exceptions.OwObjectNotFoundException

getSafeFieldValue

public Object getSafeFieldValue(String sName_p,
                                Object defaultvalue_p)
retrieve the value of a Field

Specified by:
getSafeFieldValue in interface com.wewebu.ow.server.field.OwFieldProvider
Parameters:
sName_p -
defaultvalue_p -
Returns:
Object the value of the Field of defaultvalue_p

getFields

public Collection getFields()
                     throws Exception
get all the properties in the form

Specified by:
getFields in interface com.wewebu.ow.server.field.OwFieldProvider
Returns:
Collection of OwField
Throws:
Exception

getInstance

public com.wewebu.ow.server.ecm.OwObject getInstance()
                                              throws Exception
get a instance from this reference

Specified by:
getInstance in interface com.wewebu.ow.server.ecm.OwObjectReference
Returns:
OwObject or throws OwObjectNotFoundException
Throws:
Exception, - OwObjectNotFoundException
Exception

getResourceID

public String getResourceID()
                     throws Exception
get the ID / name identifying the resource the object belongs to

Specified by:
getResourceID in interface com.wewebu.ow.server.ecm.OwObjectReference
Returns:
String ID of resource or throws OwObjectNotFoundException
Throws:
Exception, - OwObjectNotFoundException
Exception
See Also:
OwResource

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


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.