|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.ecmimpl.OwAbstractCredentials
com.wewebu.ow.server.ecmimpl.cmis.OwCMISCredentials
public class OwCMISCredentials
Credentials implementation. Containing all references to the CMIS services,
which are also initialized in this class.Credentials implementation.
Containing all references to the CMIS services, which are also initialized
in this class.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Field Summary | |
---|---|
static String |
AUTH_LDAP
LDAP authentication, bypassing CMIS and connecting to the LDAP system of the CMIS repository |
static String |
AUTH_NONE
Basic authentication of CMIS, only user name and password |
static String |
CONF_NODE_WSDL_ACL
Configuration node name for ACL-Service URL |
static String |
CONF_NODE_WSDL_DISCOVERY
Configuration node name for DiscoveryService (search service) URL |
static String |
CONF_NODE_WSDL_MULTIFILING
Configuration node name for MultifilingService URL |
static String |
CONF_NODE_WSDL_NAVIGATION
Configuration node name for NavigationService URL |
static String |
CONF_NODE_WSDL_OBJECT
Configuration node name for ObjectService URL |
static String |
CONF_NODE_WSDL_POLICY
Configuration node name for PolicyService URL |
static String |
CONF_NODE_WSDL_RELATIONSHIP
Configuration node name for RelationshipService URL |
static String |
CONF_NODE_WSDL_REPOSITORY
Configuration node name for RepositoryService URL |
static String |
CONF_NODE_WSDL_VERSIONING
Configuration node name for VersioningService URL |
Constructor Summary | |
---|---|
OwCMISCredentials(com.wewebu.ow.server.util.OwXMLUtil configuration_p,
String username_p,
String password_p,
OwCMISSecurityHandlerInterface securityhandler_p,
com.wewebu.ow.server.mandator.OwMandator mandator_p)
create credentials |
Method Summary | |
---|---|
protected SOAPHandler<SOAPMessageContext> |
createContentHandler()
Create a handler which will be assigned as the content handler. |
protected OwCMISUserInfo |
createUserInfo(String userName_p)
(overridable) |
org.oasis_open.docs.ns.cmis.ws._200908.ACLServicePort |
getACLServicePort()
|
org.oasis_open.docs.ns.cmis.ws._200908.ACLServicePort |
getACLServicePort(URL wsdlLocation_p)
Get the ACL service port, for applying and requesting policies from objects. |
protected SOAPHandler<SOAPMessageContext> |
getContentHandler()
Get a SOAPHandler which will be add as first handler into the handler chain. |
org.oasis_open.docs.ns.cmis.ws._200908.DiscoveryServicePort |
getDiscoveryServicePort()
|
org.oasis_open.docs.ns.cmis.ws._200908.DiscoveryServicePort |
getDiscoveryServicePort(URL url_p)
Get the CMIS service which handles the searches against the CMIS back-end system. |
String |
getLoginName()
Deprecated. since 4.0.0.0 use OwAbstractCredentials.getAuthInfo(String) instead |
String |
getLoginPassword()
Deprecated. since 4.0.0.0 use OwAbstractCredentials.getAuthInfo(String) instead |
com.wewebu.ow.server.mandator.OwMandator |
getMandator()
|
org.oasis_open.docs.ns.cmis.ws._200908.MultiFilingServicePort |
getMultiFilingservicePort()
|
org.oasis_open.docs.ns.cmis.ws._200908.MultiFilingServicePort |
getMultiFilingservicePort(URL wsdlLocation_p)
Get the Service for multiple filing of documents, in different folders. |
org.oasis_open.docs.ns.cmis.ws._200908.NavigationServicePort |
getNavigationServicePort()
|
org.oasis_open.docs.ns.cmis.ws._200908.NavigationServicePort |
getNavigationServicePort(URL wsdlLocation_p)
Get the CMIS service which handles the browsing and/or traversing through the file structure of the CMIS back-end system. |
org.oasis_open.docs.ns.cmis.ws._200908.ObjectServicePort |
getObjectServicePort()
|
org.oasis_open.docs.ns.cmis.ws._200908.ObjectServicePort |
getObjectServicePort(URL wsdlLocation_p)
Get the CMIS object service, which handle create, copy and update objects, and also retrieving objects by ID or path. |
org.oasis_open.docs.ns.cmis.ws._200908.PolicyServicePort |
getPolicyServicePort()
|
org.oasis_open.docs.ns.cmis.ws._200908.PolicyServicePort |
getPolicyServicePort(URL wsdlLocation_p)
Get the policy service port, for applying and requesting policies from objects. |
org.oasis_open.docs.ns.cmis.ws._200908.RelationshipServicePort |
getRelationshipServicePort()
|
org.oasis_open.docs.ns.cmis.ws._200908.RelationshipServicePort |
getRelationshipServicePort(URL wsdlLocation_p)
Get CMIS relationship service port, for handling of document relationships. |
org.oasis_open.docs.ns.cmis.ws._200908.RepositoryServicePort |
getRepositoryServicePort()
|
org.oasis_open.docs.ns.cmis.ws._200908.RepositoryServicePort |
getRepositoryServicePort(URL wsdlLocation_p)
Get the CMIS repository service, which is used to retrieve additional Information about repositories, or existent object class definitions. |
OwCMISSecurityHandlerInterface |
getSecurityHandler()
Get the class which is used as WebService Security Handler |
String |
getSecurityToken(com.wewebu.ow.server.ecm.OwResource resource_p)
|
protected URL |
getServiceURL(String confNode_p)
Get the URL from configuration, and cache it for further request. |
OwCMISUserInfo |
getUserInfo()
|
org.oasis_open.docs.ns.cmis.ws._200908.VersioningServicePort |
getVersionServicePort()
|
org.oasis_open.docs.ns.cmis.ws._200908.VersioningServicePort |
getVersionServicePort(URL wsdlLocation_p)
Get the service port for handling versions functionality of CMIS repository. |
void |
invalidate()
|
boolean |
isContainerBasedAuthenticated()
|
protected void |
removeHandler(BindingProvider bp_p)
Remove all handler which were added with the current class to the given BindingProvider |
void |
setMandator(com.wewebu.ow.server.mandator.OwMandator madator_p)
|
Methods inherited from class com.wewebu.ow.server.ecmimpl.OwAbstractCredentials |
---|
getAuthInfo, setAuthInfo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONF_NODE_WSDL_REPOSITORY
public static final String CONF_NODE_WSDL_NAVIGATION
public static final String CONF_NODE_WSDL_OBJECT
public static final String CONF_NODE_WSDL_MULTIFILING
public static final String CONF_NODE_WSDL_DISCOVERY
public static final String CONF_NODE_WSDL_VERSIONING
public static final String CONF_NODE_WSDL_RELATIONSHIP
public static final String CONF_NODE_WSDL_POLICY
public static final String CONF_NODE_WSDL_ACL
public static final String AUTH_NONE
public static final String AUTH_LDAP
Constructor Detail |
---|
public OwCMISCredentials(com.wewebu.ow.server.util.OwXMLUtil configuration_p, String username_p, String password_p, OwCMISSecurityHandlerInterface securityhandler_p, com.wewebu.ow.server.mandator.OwMandator mandator_p) throws com.wewebu.ow.server.exceptions.OwException
username_p
- String log on namepassword_p
- String or nullsecurityhandler_p
- OwCMISSecurityHandlerInterfacemandator_p
- OwMandator
com.wewebu.ow.server.exceptions.OwException
Method Detail |
---|
public com.wewebu.ow.server.mandator.OwMandator getMandator()
public void setMandator(com.wewebu.ow.server.mandator.OwMandator madator_p)
public org.oasis_open.docs.ns.cmis.ws._200908.ObjectServicePort getObjectServicePort() throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public org.oasis_open.docs.ns.cmis.ws._200908.ObjectServicePort getObjectServicePort(URL wsdlLocation_p)
wsdlLocation_p
- URL to create the service port if not connected
protected URL getServiceURL(String confNode_p) throws com.wewebu.ow.server.exceptions.OwException
confNode_p
- String one of CONF_NODE_WSDL_...
com.wewebu.ow.server.exceptions.OwException
- if URL in configuration node is malformedpublic org.oasis_open.docs.ns.cmis.ws._200908.RepositoryServicePort getRepositoryServicePort() throws com.wewebu.ow.server.exceptions.OwConfigurationException
com.wewebu.ow.server.exceptions.OwConfigurationException
public org.oasis_open.docs.ns.cmis.ws._200908.RepositoryServicePort getRepositoryServicePort(URL wsdlLocation_p)
wsdlLocation_p
- URL of the WSDL to create service port
public org.oasis_open.docs.ns.cmis.ws._200908.NavigationServicePort getNavigationServicePort() throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public org.oasis_open.docs.ns.cmis.ws._200908.NavigationServicePort getNavigationServicePort(URL wsdlLocation_p)
wsdlLocation_p
- URL to create a service port if still not connected
public org.oasis_open.docs.ns.cmis.ws._200908.DiscoveryServicePort getDiscoveryServicePort() throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public org.oasis_open.docs.ns.cmis.ws._200908.DiscoveryServicePort getDiscoveryServicePort(URL url_p)
url_p
- URL to create a service port if not connected
public org.oasis_open.docs.ns.cmis.ws._200908.MultiFilingServicePort getMultiFilingservicePort() throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public org.oasis_open.docs.ns.cmis.ws._200908.MultiFilingServicePort getMultiFilingservicePort(URL wsdlLocation_p)
Before calling this method, the capability of the repository should be checked
wsdlLocation_p
- URL location of WSDL for MultiFilingService
public org.oasis_open.docs.ns.cmis.ws._200908.VersioningServicePort getVersionServicePort() throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public org.oasis_open.docs.ns.cmis.ws._200908.VersioningServicePort getVersionServicePort(URL wsdlLocation_p)
Before calling this method, the capability of the repository should be checked for versioning.
wsdlLocation_p
- URL location of WSDL for creation of service port if not connected
public org.oasis_open.docs.ns.cmis.ws._200908.RelationshipServicePort getRelationshipServicePort() throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public org.oasis_open.docs.ns.cmis.ws._200908.RelationshipServicePort getRelationshipServicePort(URL wsdlLocation_p)
The relationship capability should be checked before calling this method
wsdlLocation_p
-
public org.oasis_open.docs.ns.cmis.ws._200908.PolicyServicePort getPolicyServicePort() throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public org.oasis_open.docs.ns.cmis.ws._200908.PolicyServicePort getPolicyServicePort(URL wsdlLocation_p)
wsdlLocation_p
- URL location of WSDL for policy service
public org.oasis_open.docs.ns.cmis.ws._200908.ACLServicePort getACLServicePort() throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public org.oasis_open.docs.ns.cmis.ws._200908.ACLServicePort getACLServicePort(URL wsdlLocation_p)
wsdlLocation_p
- URL location of WSDL for the ACL service
public OwCMISSecurityHandlerInterface getSecurityHandler()
public String getSecurityToken(com.wewebu.ow.server.ecm.OwResource resource_p)
getSecurityToken
in interface com.wewebu.ow.server.ecm.OwCredentials
getSecurityToken
in class com.wewebu.ow.server.ecmimpl.OwAbstractCredentials
protected OwCMISUserInfo createUserInfo(String userName_p)
userName_p
-
OwCMISUserInfo
for the given userpublic OwCMISUserInfo getUserInfo() throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public void invalidate() throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public boolean isContainerBasedAuthenticated() throws com.wewebu.ow.server.exceptions.OwException
isContainerBasedAuthenticated
in interface com.wewebu.ow.server.ecm.OwCredentials
isContainerBasedAuthenticated
in class com.wewebu.ow.server.ecmimpl.OwAbstractCredentials
com.wewebu.ow.server.exceptions.OwException
protected void removeHandler(BindingProvider bp_p)
bp_p
- BindingProviderprotected SOAPHandler<SOAPMessageContext> getContentHandler()
The first handler should be responsible for the content handling
.
protected SOAPHandler<SOAPMessageContext> createContentHandler()
Per default it will create an instance of the OwCMISContentHandler
.
public String getLoginName()
OwAbstractCredentials.getAuthInfo(String)
instead
public String getLoginPassword()
OwAbstractCredentials.getAuthInfo(String)
instead
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |