public class OwDummyNetwork extends Object implements com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
Base Class for the network access. Covers access to all objects in the DMS system.
Covers access to the authentication provider as well.
Custom implementation for Workdesk testing purpose only. Used as a dummy DMS System.
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
Modifier and Type | Field and Description |
---|---|
static String |
DMS_PREFIX
DMS prefix to identify this adapter
|
static String |
EL_OWAPPLICATIONOBJECTBASEDIR |
protected com.wewebu.ow.server.ecm.OwAttributeBagsSupport |
m_bagsSupport
attribute bag support
|
protected static HashMap |
m_jndiPropertyNames |
protected static HashMap |
m_ObjectClassesMap
map containing the Object class descriptions of the DMS Adapter
|
protected String |
m_preferencesFolder
preferences folder - can be configured in
owbootstrap.xml file |
static String |
OBJECT_CATEGORY_PREFERENCES
object category for the preferences, which can be user or application defined, like usersettings, recent file list...
|
static String |
VIRTUAL_FOLDER_PREFIX
prefix for DMSID to identify virtual folders
|
APPLICATION_OBJECT_TYPE_ATTRIBUTE_BAG, APPLICATION_OBJECT_TYPE_ATTRIBUTE_BAG_ITERATOR, APPLICATION_OBJECT_TYPE_ATTRIBUTE_BAG_WRITABLE, APPLICATION_OBJECT_TYPE_ENTRY_TEMPLATE, APPLICATION_OBJECT_TYPE_ENUM_COLLECTION, APPLICATION_OBJECT_TYPE_INVERTED_ATTRIBUTE_BAG, APPLICATION_OBJECT_TYPE_PREFERENCES, APPLICATION_OBJECT_TYPE_SEARCHTEMPLATE, APPLICATION_OBJECT_TYPE_USER_START, APPLICATION_OBJECT_TYPE_VIRTUAL_FOLDER, APPLICATION_OBJECT_TYPE_XML_DOCUMENT, CAN_DO_FUNCTIONCODE_ACL_TO_MODIFY_ANNOTATION, CAN_DO_FUNCTIONCODE_CREATE_ANNOTATION, CAN_DO_FUNCTIONCODE_DELETE_ANNOTATION, CAN_DO_FUNCTIONCODE_EDIT_ANNOTATION, CAN_DO_FUNCTIONCODE_PRINT, CAN_DO_FUNCTIONCODE_SAVE_CONTENT_TO_DISK, CAN_DO_FUNCTIONCODE_USER_START
Constructor and Description |
---|
OwDummyNetwork() |
Modifier and Type | Method and Description |
---|---|
protected void |
attributeBagSupportSetup()
Return Attributebag support to be used.
|
boolean |
canBatch() |
boolean |
canCreateNewObject(com.wewebu.ow.server.ecm.OwResource resource_p,
com.wewebu.ow.server.ecm.OwObject parent_p,
int iContext_p)
check, if adaptor can create a new object
|
boolean |
canCreateObjectCopy(com.wewebu.ow.server.ecm.OwObject parent_p,
int[] childTypes_p,
int iContext_p)
creates a cloned object with new properties on the DMS system
|
boolean |
canDo(com.wewebu.ow.server.ecm.OwObject obj_p,
int iFunctionCode_p,
int iContext_p)
check if a extended function like print can be performed on the given object
compared to the OwRoleManager.isAllowed function the canDo function works on objects and is more faster due to the iContext parameter
|
boolean |
canEditAccessRights(com.wewebu.ow.server.ecm.OwObject object_p)
check if access rights can be edited on the Object.
|
boolean |
canPageSearch() |
boolean |
canRefreshStaticClassdescriptions()
check if reload of all the static class description data is supported / necessary.
|
boolean |
canUserSelect()
check if the user select module is supported i.e.
|
void |
closeBatch(com.wewebu.ow.server.ecm.OwBatch batch_p) |
String |
createNewObject(boolean fPromote_p,
Object mode_p,
com.wewebu.ow.server.ecm.OwResource resource_p,
String strObjectClassName_p,
com.wewebu.ow.server.ecm.OwPropertyCollection properties_p,
com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p,
com.wewebu.ow.server.ecm.OwContentCollection content_p,
com.wewebu.ow.server.ecm.OwObject parent_p,
String strMimeType_p,
String strMimeParameter_p)
creates a new object on the ECM System using the given parameters
has additional promote and checkin mode parameters for versionable objects
|
String |
createNewObject(boolean fPromote_p,
Object mode_p,
com.wewebu.ow.server.ecm.OwResource resource_p,
String strObjectClassName_p,
com.wewebu.ow.server.ecm.OwPropertyCollection properties_p,
com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p,
com.wewebu.ow.server.ecm.OwContentCollection content_p,
com.wewebu.ow.server.ecm.OwObject parent_p,
String strMimeType_p,
String strMimeParameter_p,
boolean fKeepCheckedOut_p)
Creates a new object on the ECM System using the given parameters.
Has additional promote and checkin mode parameters for versionable objects and the extra parameter fKeepCheckedOut_p to control whether the new objects are checked in automatically or not. |
String |
createNewObject(com.wewebu.ow.server.ecm.OwResource resource_p,
String strObjectClassName_p,
com.wewebu.ow.server.ecm.OwPropertyCollection properties_p,
com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p,
com.wewebu.ow.server.ecm.OwContentCollection content_p,
com.wewebu.ow.server.ecm.OwObject parent_p,
String strMimeType_p,
String strMimeParameter_p)
creates a new object on the ECM System using the given parameters
|
String |
createObjectCopy(com.wewebu.ow.server.ecm.OwObject obj_p,
com.wewebu.ow.server.ecm.OwPropertyCollection properties_p,
com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p,
com.wewebu.ow.server.ecm.OwObject parent_p,
int[] childTypes_p)
creates a cloned object with new properties on the ECM system
copies the content as well
|
com.wewebu.ow.server.ecm.OwObjectSkeleton |
createObjectSkeleton(com.wewebu.ow.server.ecm.OwObjectClass objectclass_p,
com.wewebu.ow.server.ecm.OwResource resource_p) |
protected com.wewebu.ow.server.ecm.OwObject |
createVirtualFolder(Node xmlVirtualFolderDescriptionNode_p,
String strName_p,
String strDmsIDPart_p)
(overridable) create a virtual folder object from the given XML description
|
void |
doLogin(String strUserName_p,
String strPassword_p)
perform logon process authenticate user
|
com.wewebu.ow.server.collections.OwIterable<com.wewebu.ow.server.ecm.OwObject> |
doSearch(com.wewebu.ow.server.field.OwSearchNode searchClause,
com.wewebu.ow.server.collections.OwLoadContext loadContext) |
com.wewebu.ow.server.ecm.OwObjectCollection |
doSearch(com.wewebu.ow.server.field.OwSearchNode searchNode_p,
com.wewebu.ow.server.field.OwSort sortCriteria_p,
Collection propertyNames_p,
int iMaxSize_p,
int iVersionSelection_p)
performs a search on the network and returns a result list, if more than iMaxSize_p objects are found then doSearch returns the first iMaxSize_p Objects
|
Object |
getApplicationObject(int iTyp_p,
String strName_p,
boolean fForceUserSpecificObject_p,
boolean fCreateIfNotExist_p)
get a Objects for the application to work, like search templates, preferences...
|
Object |
getApplicationObject(int iTyp_p,
String strName_p,
Object param_p,
boolean fForceUserSpecificObject_p,
boolean fCreateIfNotExist_p)
get a Objects for the application to work, like search templates, preferences...
|
String |
getApplicationObjectBaseDir(String defaultLocation_p) |
Collection |
getApplicationObjects(int iTyp_p,
String strName_p,
boolean fForceUserSpecificObject_p)
get a list of Objects for the application to work, like search templates, preferences...
|
String |
getArchiveBaseDir()
get the base directory of the dummy archive
|
com.wewebu.ow.server.util.OwXMLUtil |
getConfigNode()
get the network configuration node
|
com.wewebu.ow.server.ecm.OwNetworkContext |
getContext()
return context reference
|
com.wewebu.ow.server.ecm.OwCredentials |
getCredentials()
get the credentials of the logged in user
|
String |
getDMSPrefix()
get a prefix which is used to distinguish the DMSID of objects from the repository
|
com.wewebu.ow.server.ecm.ui.OwUIAccessRightsModul |
getEditAccessRightsSubModul(com.wewebu.ow.server.ecm.OwObject object_p)
get an instance of the edit access rights UI submodule for editing document access rights
Access rights are very specific to the DMS System and can not be handled generically
|
com.wewebu.ow.server.event.OwEventManager |
getEventManager()
get the history manager instance
|
com.wewebu.ow.server.field.OwFieldDefinition |
getFieldDefinition(String strFieldDefinitionName_p,
String strResourceName_p)
implementation of OwFieldDefinitionProvider: get a field definition for the given name and resource
|
Object |
getInterface(String strInterfaceName_p,
Object oObject_p)
get an additional interface, e.g.
|
Locale |
getLocale()
get current locale
|
com.wewebu.ow.server.ecm.ui.OwUILoginModul |
getLoginSubModul()
get an instance of the login UI submodule for user authentication
Login is very specific to the DMS System and can not be handled generically
|
com.wewebu.ow.server.ecm.OwObjectClass |
getObjectClass(String strClassName_p,
com.wewebu.ow.server.ecm.OwResource resource_p)
get a Object class description of the available object class descriptions
|
protected HashMap |
getObjectClassMap()
create static HashMap of the object class descriptions
|
Map |
getObjectClassNames(int[] iTypes_p,
boolean fExcludeHiddenAndNonInstantiable_p,
boolean fRootOnly_p,
com.wewebu.ow.server.ecm.OwResource resource_p)
get a list of the available object class descriptions names
|
com.wewebu.ow.server.ecm.OwObject |
getObjectFromDMSID(String strDMSID_p,
boolean fRefresh_p)
reconstructs an Object from DMS Id, see OwObject.getDMSID for details.
|
com.wewebu.ow.server.ecm.OwObject |
getObjectFromPath(String strPath_p,
boolean fRefresh_p)
get object from given path
|
com.wewebu.ow.server.ecm.OwResource |
getResource(String strID_p)
get the resource with the specified key
|
Iterator |
getResourceIDs()
get a Iterator of available resource IDs
|
String |
getRoleDisplayName(String strRoleName_p)
get the display name for a role name
|
com.wewebu.ow.server.role.OwRoleManager |
getRoleManager() |
com.wewebu.ow.server.ecm.OwPropertyClass |
getUnsafePropertyClass(String strClassName_p,
com.wewebu.ow.server.ecm.OwResource resource_p)
get a property class description of the available object class descriptions
NOTE: This function gets the next available property class for the given name.
|
com.wewebu.ow.server.ecm.OwUserInfo |
getUserFromID(String strID_p)
get the user information form a User ID
NOTE: The length of the user ID MUST NOT EXCEED 32 Characters
|
com.wewebu.ow.server.ecm.ui.OwUIUserSelectModul |
getUserSelectSubModul(String strID_p,
int[] types_p)
get an instance of the user select UI submodule for selecting a user or group
User selection is very specific to the DMS System and can not be handled generically
|
Collection |
getWildCardDefinitions(String strFieldDefinitionName_p,
String strResourceName_p,
int iOp_p)
get a collection of wild card definitions that are allowed for the given field, resource and search operator
|
boolean |
hasInterface(String strInterfaceName_p)
check if an additional interface is available, e.g.
|
void |
init(com.wewebu.ow.server.ecm.OwNetworkContext context_p,
com.wewebu.ow.server.util.OwXMLUtil networkSettings_p)
initialize the network adaptor
|
void |
loginDefault(String strUser_p,
String strPassword_p)
log on to the network with default configuration
NOTE: The behavior of the function depends on the configuration of the ECM adapter.
|
void |
logout()
log off and reset credentials
|
com.wewebu.ow.server.ecm.OwBatch |
openBatch() |
void |
refreshStaticClassdescriptions()
force the network adapter to reload all the static class description data.
|
void |
releaseResources()
releases all resources that have been used during this session
|
void |
setEventManager(com.wewebu.ow.server.event.OwEventManager eventManager_p)
set the rolemanager to use
|
void |
setRoleManager(com.wewebu.ow.server.role.OwRoleManager roleManager_p)
set the rolemanager to use
|
public static final String DMS_PREFIX
public static final String VIRTUAL_FOLDER_PREFIX
public static final String OBJECT_CATEGORY_PREFERENCES
public static final String EL_OWAPPLICATIONOBJECTBASEDIR
protected String m_preferencesFolder
owbootstrap.xml
fileprotected static final HashMap m_ObjectClassesMap
protected static final HashMap m_jndiPropertyNames
protected com.wewebu.ow.server.ecm.OwAttributeBagsSupport m_bagsSupport
public com.wewebu.ow.server.util.OwXMLUtil getConfigNode()
public Locale getLocale()
getLocale
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
public com.wewebu.ow.server.ecm.OwNetworkContext getContext()
getContext
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
protected HashMap getObjectClassMap() throws Exception
Exception
public Object getInterface(String strInterfaceName_p, Object oObject_p) throws Exception
getInterface
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
strInterfaceName_p
- Name of the interfaceoObject_p
- optional object to be wrappedException
public boolean hasInterface(String strInterfaceName_p)
hasInterface
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
strInterfaceName_p
- Name of the interfacepublic void init(com.wewebu.ow.server.ecm.OwNetworkContext context_p, com.wewebu.ow.server.util.OwXMLUtil networkSettings_p) throws Exception
init
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
context_p
- Application ContextnetworkSettings_p
- Settings DOM Node wrapped by OwXMLUtilException
public void setRoleManager(com.wewebu.ow.server.role.OwRoleManager roleManager_p)
setRoleManager
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
roleManager_p
- OwRoleManagerpublic void setEventManager(com.wewebu.ow.server.event.OwEventManager eventManager_p)
setEventManager
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
eventManager_p
- OwHistoryManager to write history to, only if ECM system does not write its own historypublic com.wewebu.ow.server.event.OwEventManager getEventManager()
getEventManager
in interface com.wewebu.ow.server.ecm.OwRepository<com.wewebu.ow.server.ecm.OwObject>
public void refreshStaticClassdescriptions() throws Exception
refreshStaticClassdescriptions
in interface com.wewebu.ow.server.ecm.OwRepository<com.wewebu.ow.server.ecm.OwObject>
Exception
public boolean canRefreshStaticClassdescriptions() throws Exception
canRefreshStaticClassdescriptions
in interface com.wewebu.ow.server.ecm.OwRepository<com.wewebu.ow.server.ecm.OwObject>
Exception
public com.wewebu.ow.server.ecm.OwCredentials getCredentials() throws Exception
getCredentials
in interface com.wewebu.ow.server.ecm.OwAuthenticationProvider
Exception
public com.wewebu.ow.server.ecm.OwUserInfo getUserFromID(String strID_p) throws Exception
getUserFromID
in interface com.wewebu.ow.server.ecm.OwAuthenticationProvider
strID_p
- the ID of the searched userException
public String getRoleDisplayName(String strRoleName_p) throws Exception
getRoleDisplayName
in interface com.wewebu.ow.server.ecm.OwAuthenticationProvider
strRoleName_p
- to retrieve the display name forException
public void doLogin(String strUserName_p, String strPassword_p) throws Exception
strUserName_p
- strPassword_p
- Exception
public com.wewebu.ow.server.ecm.ui.OwUILoginModul getLoginSubModul() throws Exception
getLoginSubModul
in interface com.wewebu.ow.server.ecm.OwAuthenticationProvider
Exception
public void logout() throws Exception
logout
in interface com.wewebu.ow.server.ecm.OwAuthenticationProvider
Exception
public void loginDefault(String strUser_p, String strPassword_p) throws Exception
loginDefault
in interface com.wewebu.ow.server.ecm.OwAuthenticationProvider
strUser_p
- String user name or name of function user or null to use a default login if availablestrPassword_p
- String the password for the user or null if not requiredException
public com.wewebu.ow.server.ecm.ui.OwUIAccessRightsModul getEditAccessRightsSubModul(com.wewebu.ow.server.ecm.OwObject object_p) throws Exception
getEditAccessRightsSubModul
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
object_p
- OwObject to edit the access rightsException
public boolean canEditAccessRights(com.wewebu.ow.server.ecm.OwObject object_p) throws Exception
canEditAccessRights
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
object_p
- OwObject to edit access rights forException
public com.wewebu.ow.server.ecm.ui.OwUIUserSelectModul getUserSelectSubModul(String strID_p, int[] types_p) throws Exception
getUserSelectSubModul
in interface com.wewebu.ow.server.ecm.OwAuthenticationProvider
strID_p
- the ID of the currently set user or null if no user is selectedtypes_p
- array of type identifiers as defined in OwUIUserSelectModulException
public boolean canUserSelect() throws Exception
canUserSelect
in interface com.wewebu.ow.server.ecm.OwAuthenticationProvider
Exception
public Collection getApplicationObjects(int iTyp_p, String strName_p, boolean fForceUserSpecificObject_p) throws Exception
getApplicationObjects
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
iTyp_p
- type as defined in OwNetwork.APPLICATION_OBJECT_TYPE_...strName_p
- Name of the object to retrieve e.g. "userprefs"fForceUserSpecificObject_p
- if true, the object must be specific to the logged in user, otherwise the ECM Adapter determines if it is common to a site or specific to a group or a user.Exception
protected com.wewebu.ow.server.ecm.OwObject createVirtualFolder(Node xmlVirtualFolderDescriptionNode_p, String strName_p, String strDmsIDPart_p) throws Exception
public Object getApplicationObject(int iTyp_p, String strName_p, boolean fForceUserSpecificObject_p, boolean fCreateIfNotExist_p) throws Exception
getApplicationObject
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
iTyp_p
- type as defined in OwNetwork.APPLICATION_OBJECT_TYPE_...strName_p
- Name of the object to retrieve e.g. "userprefs"fForceUserSpecificObject_p
- if true, the object must be specific to the logged in user, otherwise the ECM Adapter determines if it is common to a site or specific to a group or a user.fCreateIfNotExist_p
- boolean true = create if not existException
public Object getApplicationObject(int iTyp_p, String strName_p, Object param_p, boolean fForceUserSpecificObject_p, boolean fCreateIfNotExist_p) throws Exception
getApplicationObject
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
iTyp_p
- type as defined in OwNetwork.APPLICATION_OBJECT_TYPE_...strName_p
- Name of the object to retrieve e.g. "userprefs"param_p
- optional Object, can be nullfForceUserSpecificObject_p
- if true, the object must be specific to the logged in user, otherwise the ECM Adapter determines if it is common to a site or specific to a group or a user.fCreateIfNotExist_p
- boolean true = create if not existException
public String getApplicationObjectBaseDir(String defaultLocation_p)
defaultLocation_p
- public com.wewebu.ow.server.ecm.OwObject getObjectFromDMSID(String strDMSID_p, boolean fRefresh_p) throws Exception
getObjectFromDMSID
in interface com.wewebu.ow.server.ecm.OwRepository<com.wewebu.ow.server.ecm.OwObject>
strDMSID_p
- DMSID for the requested objectfRefresh_p
- true = force refresh of object from DMS System, false = may use cached objectException
public String getArchiveBaseDir()
public com.wewebu.ow.server.ecm.OwObjectCollection doSearch(com.wewebu.ow.server.field.OwSearchNode searchNode_p, com.wewebu.ow.server.field.OwSort sortCriteria_p, Collection propertyNames_p, int iMaxSize_p, int iVersionSelection_p) throws Exception
doSearch
in interface com.wewebu.ow.server.ecm.OwRepository<com.wewebu.ow.server.ecm.OwObject>
searchNode_p
- list of search criteriasortCriteria_p
- optional list of sort criteriapropertyNames_p
- a optional list of properties to retrieve with the documents, can be nulliMaxSize_p
- int value to specify the maximum size of the OwObjectCollectioniVersionSelection_p
- int Selects the versions as defined in OwSearchTemplate.VERSION_SELECT_... or 0 to use default versionException
public String createNewObject(com.wewebu.ow.server.ecm.OwResource resource_p, String strObjectClassName_p, com.wewebu.ow.server.ecm.OwPropertyCollection properties_p, com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p, com.wewebu.ow.server.ecm.OwContentCollection content_p, com.wewebu.ow.server.ecm.OwObject parent_p, String strMimeType_p, String strMimeParameter_p) throws Exception
createNewObject
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
strObjectClassName_p
- requested class name of the new objectproperties_p
- OwPropertyCollection with new properties to set, or null to use defaultspermissions_p
- OwPermissionCollection ECM specific permissions or null to use defaultscontent_p
- OwContentCollection the new content to set, null to create an empty objectparent_p
- OwObject the parent object to use as a container, e.g. a folder or a ECM root, can be null if no parent is requiredException
public String createNewObject(boolean fPromote_p, Object mode_p, com.wewebu.ow.server.ecm.OwResource resource_p, String strObjectClassName_p, com.wewebu.ow.server.ecm.OwPropertyCollection properties_p, com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p, com.wewebu.ow.server.ecm.OwContentCollection content_p, com.wewebu.ow.server.ecm.OwObject parent_p, String strMimeType_p, String strMimeParameter_p) throws Exception
createNewObject
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
fPromote_p
- boolean true = create a released version right awaymode_p
- Object checkin mode for objects, see getCheckinModes, or null to use defaultresource_p
- OwResource to add tostrObjectClassName_p
- requested class name of the new objectproperties_p
- OwPropertyCollection with new properties to set, or null to use defaultspermissions_p
- OwPermissionCollection ECM specific permissions or null to use defaultscontent_p
- OwContentCollection the new content to set, null to create an empty objectparent_p
- OwObject the parent object to use as a container, e.g. a folder or a ECM root, can be null if no parent is requiredstrMimeType_p
- String MIME Types of the new object contentstrMimeParameter_p
- extra info to the MIME typeException
public String createNewObject(boolean fPromote_p, Object mode_p, com.wewebu.ow.server.ecm.OwResource resource_p, String strObjectClassName_p, com.wewebu.ow.server.ecm.OwPropertyCollection properties_p, com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p, com.wewebu.ow.server.ecm.OwContentCollection content_p, com.wewebu.ow.server.ecm.OwObject parent_p, String strMimeType_p, String strMimeParameter_p, boolean fKeepCheckedOut_p) throws Exception
createNewObject
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
fPromote_p
- boolean true = create a released version right awaymode_p
- Object checkin mode for objects, see getCheckinModes, or null to use defaultresource_p
- OwResource to add tostrObjectClassName_p
- requested class name of the new objectproperties_p
- OwPropertyCollection with new properties to set, or null to use defaultspermissions_p
- OwPermissionCollection ECM specific permissions or null to use defaultscontent_p
- OwContentCollection the new content to set, null to create an empty objectparent_p
- OwObject the parent object to use as a container, e.g. a folder or a ECM root, can be null if no parent is requiredstrMimeType_p
- String MIME type of the new object contentstrMimeParameter_p
- extra info to the MIME typefKeepCheckedOut_p
- true = create a new object that is checked outException
public boolean canCreateNewObject(com.wewebu.ow.server.ecm.OwResource resource_p, com.wewebu.ow.server.ecm.OwObject parent_p, int iContext_p) throws Exception
canCreateNewObject
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
parent_p
- OwObject the parent object to use as a container, e.g. a folder or a ECM root, can be null if no parent is requiredException
public String createObjectCopy(com.wewebu.ow.server.ecm.OwObject obj_p, com.wewebu.ow.server.ecm.OwPropertyCollection properties_p, com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p, com.wewebu.ow.server.ecm.OwObject parent_p, int[] childTypes_p) throws Exception
createObjectCopy
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
obj_p
- OwObject to create a copy ofproperties_p
- OwPropertyCollection of OwProperties to set, or null to keep propertiespermissions_p
- OwPermissionCollection of OwPermissions to set, or null to keep permissionsparent_p
- OwObject the parent object to use as a container, e.g. a folder or a ECM root, can be null if no parent is requiredchildTypes_p
- int types of the child objects to copy with the object, can be null if no children should be copiedException
public boolean canCreateObjectCopy(com.wewebu.ow.server.ecm.OwObject parent_p, int[] childTypes_p, int iContext_p) throws Exception
canCreateObjectCopy
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
parent_p
- OwObject the parent object to use as a container, e.g. a folder or a ECM root, can be null if no parent is requiredchildTypes_p
- int types of the child objects to copy with the object, can be null if no children should be copiedException
public com.wewebu.ow.server.ecm.OwObjectClass getObjectClass(String strClassName_p, com.wewebu.ow.server.ecm.OwResource resource_p) throws Exception
getObjectClass
in interface com.wewebu.ow.server.ecm.OwRepository<com.wewebu.ow.server.ecm.OwObject>
strClassName_p
- Name of classresource_p
- OwResource to retrieve the objects from, or null to use the default resourceException
public Map getObjectClassNames(int[] iTypes_p, boolean fExcludeHiddenAndNonInstantiable_p, boolean fRootOnly_p, com.wewebu.ow.server.ecm.OwResource resource_p) throws Exception
getObjectClassNames
in interface com.wewebu.ow.server.ecm.OwRepository<com.wewebu.ow.server.ecm.OwObject>
iTypes_p
- int Object type as defined in OwObjectfExcludeHiddenAndNonInstantiable_p
- boolean true = exclude all hidden and non instantiable class descriptionsfRootOnly_p
- true = gets only the root classes if we deal with a class tree, false = gets all classesresource_p
- OwResource to retrieve the objects from, or null to use the default resourceException
public com.wewebu.ow.server.ecm.OwPropertyClass getUnsafePropertyClass(String strClassName_p, com.wewebu.ow.server.ecm.OwResource resource_p) throws Exception
strClassName_p
- Name of classresource_p
- OwResource to retrieve the objects from, or null to use the default resourceException
public com.wewebu.ow.server.ecm.OwResource getResource(String strID_p) throws Exception
getResource
in interface com.wewebu.ow.server.ecm.OwRepository<com.wewebu.ow.server.ecm.OwObject>
strID_p
- String resource ID, if strID_p is null, returns the default resourceException
public Iterator getResourceIDs() throws Exception
getResourceIDs
in interface com.wewebu.ow.server.ecm.OwRepository<com.wewebu.ow.server.ecm.OwObject>
Exception
public com.wewebu.ow.server.ecm.OwObject getObjectFromPath(String strPath_p, boolean fRefresh_p) throws Exception
getObjectFromPath
in interface com.wewebu.ow.server.ecm.OwRepository<com.wewebu.ow.server.ecm.OwObject>
strPath_p
- path to the object starting with "/..."fRefresh_p
- true = force refresh of object from ECM System, false = may use cached objectException
public boolean canDo(com.wewebu.ow.server.ecm.OwObject obj_p, int iFunctionCode_p, int iContext_p) throws Exception
canDo
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
obj_p
- OwObjet where function should be performed, or null if function does not require a objectiContext_p
- as defined by OwStatusContextDefinitions
iFunctionCode_p
- int code of requested function as defined in OwExtendedFunctionsException
public com.wewebu.ow.server.field.OwFieldDefinition getFieldDefinition(String strFieldDefinitionName_p, String strResourceName_p) throws Exception, com.wewebu.ow.server.exceptions.OwObjectNotFoundException
getFieldDefinition
in interface com.wewebu.ow.server.field.OwFieldDefinitionProvider
strFieldDefinitionName_p
- Name of the field definition classstrResourceName_p
- optional name of the resource if there are several different resources for field definitions, can be nullException
com.wewebu.ow.server.exceptions.OwObjectNotFoundException
public String getDMSPrefix()
getDMSPrefix
in interface com.wewebu.ow.server.ecm.OwRepository<com.wewebu.ow.server.ecm.OwObject>
public void releaseResources() throws Exception
releaseResources
in interface com.wewebu.ow.server.ecm.OwRepository<com.wewebu.ow.server.ecm.OwObject>
Exception
protected void attributeBagSupportSetup()
public Collection getWildCardDefinitions(String strFieldDefinitionName_p, String strResourceName_p, int iOp_p) throws Exception
getWildCardDefinitions
in interface com.wewebu.ow.server.field.OwFieldDefinitionProvider
strFieldDefinitionName_p
- Name of the field definition classstrResourceName_p
- optional name of the resource if there are several different resources for field definitions, can be nulliOp_p
- search operator as defined in OwSearchOperator CRIT_OP_...Exception
public boolean canBatch()
canBatch
in interface com.wewebu.ow.server.ecm.OwRepository<com.wewebu.ow.server.ecm.OwObject>
public void closeBatch(com.wewebu.ow.server.ecm.OwBatch batch_p) throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
closeBatch
in interface com.wewebu.ow.server.ecm.OwRepository<com.wewebu.ow.server.ecm.OwObject>
com.wewebu.ow.server.exceptions.OwInvalidOperationException
public com.wewebu.ow.server.ecm.OwBatch openBatch() throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
openBatch
in interface com.wewebu.ow.server.ecm.OwRepository<com.wewebu.ow.server.ecm.OwObject>
com.wewebu.ow.server.exceptions.OwInvalidOperationException
public com.wewebu.ow.server.ecm.OwObjectSkeleton createObjectSkeleton(com.wewebu.ow.server.ecm.OwObjectClass objectclass_p, com.wewebu.ow.server.ecm.OwResource resource_p) throws Exception
createObjectSkeleton
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
Exception
public com.wewebu.ow.server.role.OwRoleManager getRoleManager()
getRoleManager
in interface com.wewebu.ow.server.ecm.OwNetwork<com.wewebu.ow.server.ecm.OwObject>
public com.wewebu.ow.server.collections.OwIterable<com.wewebu.ow.server.ecm.OwObject> doSearch(com.wewebu.ow.server.field.OwSearchNode searchClause, com.wewebu.ow.server.collections.OwLoadContext loadContext) throws com.wewebu.ow.server.exceptions.OwException
doSearch
in interface com.wewebu.ow.server.ecm.OwRepository<com.wewebu.ow.server.ecm.OwObject>
com.wewebu.ow.server.exceptions.OwException
public boolean canPageSearch()
canPageSearch
in interface com.wewebu.ow.server.ecm.OwRepository<com.wewebu.ow.server.ecm.OwObject>
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.