com.wewebu.ow.server.ecmimpl.opencmis.conf
Class OwCMISNetworkCfg

java.lang.Object
  extended by com.wewebu.ow.server.util.OwNetworkConfiguration
      extended by com.wewebu.ow.server.ecmimpl.opencmis.conf.OwCMISNetworkCfg

public class OwCMISNetworkCfg
extends com.wewebu.ow.server.util.OwNetworkConfiguration

Helper to wrap the CMIS specific owbootstrap.xml configuration.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com


Field Summary
static String AT_CLASS_NAME
           
static String AT_ENTRY_KEY
          Name of entry key-attribute
static String EL_ADAPTER_SESSION_CONF
          Node for extended the adapter session configuration configuration
static String EL_ATOM_PUB
          Configuration node for AtomPub binding
static String EL_AUTH_INTERCEPTOR
          (optional) configuration node for AuthInterceptor definition
static String EL_CONF_NONSERIALIZED_ID
          Configuration node to define Properties of type Id, which should be handled as String
static String EL_DEFAULT_REPOSITORY
          Mandatory Element to define the default object store/repository for Network
static String EL_DEFAULTVERSIONHANDLING
           
static String EL_ID_DMSID_CONVERTER_CLASS
           
static String EL_OPEN_CMIS_CONF
          Node for extended OpenCmis configuration
static String EL_OPEN_CMIS_ENTRY
          Sub node of OpenCMIS configuration
static String EL_PROPERTY_ORDER
           
static String EL_WSDL_ACL
          Configuration node name for ACL-Service URL
static String EL_WSDL_DISCOVERY
          Configuration node name for DiscoveryService (search service) URL
static String EL_WSDL_MULTIFILING
          Configuration node name for MultifilingService URL
static String EL_WSDL_NAVIGATION
          Configuration node name for NavigationService URL
static String EL_WSDL_OBJECT
          Configuration node name for ObjectService URL
static String EL_WSDL_POLICY
          Configuration node name for PolicyService URL
static String EL_WSDL_RELATIONSHIP
          Configuration node name for RelationshipService URL
static String EL_WSDL_REPOSITORY
          Configuration node name for RepositoryService URL
static String EL_WSDL_VERSIONING
          Configuration node name for VersioningService URL
 
Fields inherited from class com.wewebu.ow.server.util.OwNetworkConfiguration
EL_AUTHENTICATION, EL_CREATION_INITIAL_VALUES, EL_OBJECT_CLASS, EL_OWAPPLICATIONOBJECTBASEDIR, EL_PREFERREDPROPERTYTYPE, EL_PROPERTY, EL_VIRTUALFOLDERSCONTAINER
 
Constructor Summary
OwCMISNetworkCfg(com.wewebu.ow.server.util.OwXMLUtil config_p)
           
 
Method Summary
protected  Map<String,String> addConfigurationProperties(String listNodeName, String itemName, String keyAttributeName, Map<String,String> map)
          Adds key value configuration information to the given map.
 OwCMISAuthenticationInterceptor getAuthenticationInterceptor()
          Get configured authentication intercepter, if any was defined.
 Map<String,String> getBindingConfig()
          (overridable) Get a binding handler class.
 com.wewebu.ow.server.util.OwXMLUtil getBpmNode()
           
 String getDefaultRepository()
          Return a String which is defined in <DefaultObjectStore> and represents an id or name of a repository object.
 Map<String,String> getDefaultVersionHandling()
           
 String getDefaultVersionHandling(String context_p)
           
 OwCMISDMSIDDecoder getDMSIDDecoder()
           
 OwCMISValueConverter<String,String> getIdDMSIDConverter(String resourceID_p)
           
 Collection<String> getNonSerializedPropertyIds()
          Return a collection of property Id (non-qualified), which should be not serialized and values should be treated as String.
 List<String> getPreferedPropertyOrder()
          get a list of property names which represents the preferred order (sequence) of the properties
 OwCMISPreferredPropertyTypeCfg getPreferredPropertyTypeCfg()
           
 com.wewebu.ow.server.ecm.OwManagedSemiVirtualRecordConfiguration getSemiVirtualConfiguration()
          Returns a class which provides a handler for semi-virtual configuration.
 Map<String,String> getSessionParametersConfig()
          (overridable) Map of session parameters string values.
 boolean isPreservedVersion()
          Is network configured to preserve version information of object.
protected  Map<String,String> setAdditionalConnectionInformation(Map<String,String> map)
          Handling of additional configuration of OpenCMIS.
 
Methods inherited from class com.wewebu.ow.server.util.OwNetworkConfiguration
getApplicationObjectBaseDir, getAuthenticationConfiguration, getConfigNode, getCreationInitialValuesConfig, getVirtualFoldersContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EL_ATOM_PUB

public static final String EL_ATOM_PUB
Configuration node for AtomPub binding

See Also:
Constant Field Values

EL_WSDL_REPOSITORY

public static final String EL_WSDL_REPOSITORY
Configuration node name for RepositoryService URL

See Also:
Constant Field Values

EL_WSDL_NAVIGATION

public static final String EL_WSDL_NAVIGATION
Configuration node name for NavigationService URL

See Also:
Constant Field Values

EL_WSDL_OBJECT

public static final String EL_WSDL_OBJECT
Configuration node name for ObjectService URL

See Also:
Constant Field Values

EL_WSDL_MULTIFILING

public static final String EL_WSDL_MULTIFILING
Configuration node name for MultifilingService URL

See Also:
Constant Field Values

EL_WSDL_DISCOVERY

public static final String EL_WSDL_DISCOVERY
Configuration node name for DiscoveryService (search service) URL

See Also:
Constant Field Values

EL_WSDL_VERSIONING

public static final String EL_WSDL_VERSIONING
Configuration node name for VersioningService URL

See Also:
Constant Field Values

EL_WSDL_RELATIONSHIP

public static final String EL_WSDL_RELATIONSHIP
Configuration node name for RelationshipService URL

See Also:
Constant Field Values

EL_WSDL_POLICY

public static final String EL_WSDL_POLICY
Configuration node name for PolicyService URL

See Also:
Constant Field Values

EL_WSDL_ACL

public static final String EL_WSDL_ACL
Configuration node name for ACL-Service URL

See Also:
Constant Field Values

EL_DEFAULTVERSIONHANDLING

public static final String EL_DEFAULTVERSIONHANDLING
See Also:
Constant Field Values

EL_PROPERTY_ORDER

public static final String EL_PROPERTY_ORDER
See Also:
Constant Field Values

EL_ID_DMSID_CONVERTER_CLASS

public static final String EL_ID_DMSID_CONVERTER_CLASS
See Also:
Constant Field Values

EL_DEFAULT_REPOSITORY

public static final String EL_DEFAULT_REPOSITORY
Mandatory Element to define the default object store/repository for Network

See Also:
Constant Field Values

EL_AUTH_INTERCEPTOR

public static final String EL_AUTH_INTERCEPTOR
(optional) configuration node for AuthInterceptor definition

See Also:
Constant Field Values

AT_CLASS_NAME

public static final String AT_CLASS_NAME
See Also:
Constant Field Values

EL_ADAPTER_SESSION_CONF

public static final String EL_ADAPTER_SESSION_CONF
Node for extended the adapter session configuration configuration

See Also:
Constant Field Values

EL_OPEN_CMIS_CONF

public static final String EL_OPEN_CMIS_CONF
Node for extended OpenCmis configuration

See Also:
Constant Field Values

EL_OPEN_CMIS_ENTRY

public static final String EL_OPEN_CMIS_ENTRY
Sub node of OpenCMIS configuration

See Also:
Constant Field Values

AT_ENTRY_KEY

public static final String AT_ENTRY_KEY
Name of entry key-attribute

See Also:
Constant Field Values

EL_CONF_NONSERIALIZED_ID

public static final String EL_CONF_NONSERIALIZED_ID
Configuration node to define Properties of type Id, which should be handled as String

See Also:
Constant Field Values
Constructor Detail

OwCMISNetworkCfg

public OwCMISNetworkCfg(com.wewebu.ow.server.util.OwXMLUtil config_p)
Method Detail

getDefaultVersionHandling

public Map<String,String> getDefaultVersionHandling()
Returns:
a Map of String context names mapped to version handling modes (see CMIS bootstrap documentation)

getDefaultVersionHandling

public String getDefaultVersionHandling(String context_p)
Parameters:
context_p -
Returns:
a String version handling mode for the given context

isPreservedVersion

public boolean isPreservedVersion()
Is network configured to preserve version information of object.

Returns:
true if version handling set to "preserve"

getBpmNode

public com.wewebu.ow.server.util.OwXMLUtil getBpmNode()
                                               throws com.wewebu.ow.server.exceptions.OwConfigurationException
Throws:
com.wewebu.ow.server.exceptions.OwConfigurationException

getPreferredPropertyTypeCfg

public OwCMISPreferredPropertyTypeCfg getPreferredPropertyTypeCfg()

getPreferedPropertyOrder

public List<String> getPreferedPropertyOrder()
                                      throws com.wewebu.ow.server.exceptions.OwException
get a list of property names which represents the preferred order (sequence) of the properties

Returns:
a List of property names
Throws:
com.wewebu.ow.server.exceptions.OwException

getDMSIDDecoder

public OwCMISDMSIDDecoder getDMSIDDecoder()

getSessionParametersConfig

public Map<String,String> getSessionParametersConfig()
                                              throws com.wewebu.ow.server.exceptions.OwConfigurationException
(overridable) Map of session parameters string values.

Returns:
Map of strings
Throws:
com.wewebu.ow.server.exceptions.OwConfigurationException
See Also:
OwCMISSessionParameter

getBindingConfig

public Map<String,String> getBindingConfig()
                                    throws com.wewebu.ow.server.exceptions.OwConfigurationException
(overridable) Get a binding handler class.

Can be extended to use other binding handler.

Returns:
Map of strings
Throws:
com.wewebu.ow.server.exceptions.OwConfigurationException

setAdditionalConnectionInformation

protected Map<String,String> setAdditionalConnectionInformation(Map<String,String> map)
Handling of additional configuration of OpenCMIS.

Parameters:
map - Map where to put additional configuration
Returns:
map with extended configuration (if such configuration exist)

addConfigurationProperties

protected Map<String,String> addConfigurationProperties(String listNodeName,
                                                        String itemName,
                                                        String keyAttributeName,
                                                        Map<String,String> map)
Adds key value configuration information to the given map. The key value pairs are retrieved from a list with the given name and item name.

Parameters:
map - Map where to put additional configuration
Returns:
map with extended configuration (if such configuration exist)
See Also:
OwXMLUtil.getSafeUtilList(String, String)

getDefaultRepository

public String getDefaultRepository()
Return a String which is defined in <DefaultObjectStore> and represents an id or name of a repository object.

Returns:
String name or id of Repository, or null if configuration was not found/defined

getSemiVirtualConfiguration

public com.wewebu.ow.server.ecm.OwManagedSemiVirtualRecordConfiguration getSemiVirtualConfiguration()
                                                                                             throws com.wewebu.ow.server.exceptions.OwConfigurationException
Returns a class which provides a handler for semi-virtual configuration.

Returns:
OwManagedSemiVirtualRecordConfiguration
Throws:
com.wewebu.ow.server.exceptions.OwConfigurationException

getAuthenticationInterceptor

public OwCMISAuthenticationInterceptor getAuthenticationInterceptor()
                                                             throws com.wewebu.ow.server.exceptions.OwException
Get configured authentication intercepter, if any was defined. Can return null if definition is not available.

Returns:
OwCMISAuthenticationInterceptor (can return null)
Throws:
com.wewebu.ow.server.exceptions.OwException

getIdDMSIDConverter

public OwCMISValueConverter<String,String> getIdDMSIDConverter(String resourceID_p)
                                                        throws com.wewebu.ow.server.exceptions.OwException
Throws:
com.wewebu.ow.server.exceptions.OwException

getNonSerializedPropertyIds

public Collection<String> getNonSerializedPropertyIds()
                                               throws com.wewebu.ow.server.exceptions.OwException
Return a collection of property Id (non-qualified), which should be not serialized and values should be treated as String.

If nothing is configured a default set of property Id's is returned, which should not be deserialized.

Returns:
Collection of property Id's
Throws:
com.wewebu.ow.server.exceptions.OwException - if cannot access the configuration


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.