|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.ow.server.ecmimpl.cmis.alfresco.OwCMISALBasicAspectRetriever
public class OwCMISALBasicAspectRetriever
Mandatory Aspects Retrieve with Basic HTTP Authentication.
Password and user name will be base64 encoded and provided
in a HTTP Authorization header value.
Implementation is based on the Alfresco Rest-API
http://<server>/alfresco/service/api/classes/
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 |
|---|
| Fields inherited from interface com.wewebu.ow.server.ecmimpl.cmis.alfresco.OwCMISALAspectRetriever |
|---|
PREFIX_ASPECT, RETRIEVER_CLASS, RETRIEVER_URL |
| Constructor Summary | |
|---|---|
OwCMISALBasicAspectRetriever()
|
|
| Method Summary | |
|---|---|
protected String |
createAuthValue(OwCMISNetwork network)
Create the Value for the HTTP "Authorization" header, which will be attached during retrieve REST-call. |
protected String |
getRequestTypeId(OwCMISNetwork network,
String classId)
Transform the class Id into a representation which can be used for the service call. |
protected URL |
getURL(OwCMISNetwork network,
String classId)
Read connection URL from network configuration, if not available use RepositoryService WSDL definition and extract location depending on that setting. |
protected List<String> |
processInputStream(InputStream stream,
OwCMISNetwork network)
Process input stream and retrieve only the id's which are defined as "defaultAspects" |
List<String> |
retrieveAspectIds(OwCMISNetwork network,
OwCMISObjectClass clazz)
Will return a list of Id's which must not conform with the Alfresco CMIS Id representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OwCMISALBasicAspectRetriever()
| Method Detail |
|---|
public List<String> retrieveAspectIds(OwCMISNetwork network,
OwCMISObjectClass clazz)
throws IOException,
com.wewebu.ow.server.exceptions.OwException
OwCMISALAspectRetriever
retrieveAspectIds in interface OwCMISALAspectRetrievernetwork - OwCMISNetwork to get configurationclazz - OwCMISObjectClass for which the list of mandatory aspect Id's should be retrieved.
IOException - If could not communicate with server (could not create connection)
com.wewebu.ow.server.exceptions.OwException - if could not retrieve configuration from network instance
protected URL getURL(OwCMISNetwork network,
String classId)
throws MalformedURLException,
com.wewebu.ow.server.exceptions.OwException
network - OwCMISNetwork to read configurationclassId - String representing the OwObjectClass.getClassName() Id
MalformedURLException - if URL could not be created/constructed
com.wewebu.ow.server.exceptions.OwException - problem retrieving configuration from network
protected String getRequestTypeId(OwCMISNetwork network,
String classId)
network - OwCMISNetworkclassId - String
protected String createAuthValue(OwCMISNetwork network)
throws com.wewebu.ow.server.exceptions.OwException
network - OwCMISNetwork
com.wewebu.ow.server.exceptions.OwException - if could not retrieve the credentials
protected List<String> processInputStream(InputStream stream,
OwCMISNetwork network)
throws IOException,
com.wewebu.ow.server.exceptions.OwException
stream - InputStream from service callnetwork - OwCMISNetwork instance for localization or other information
IOException - in case of error while reading input stream
com.wewebu.ow.server.exceptions.OwException - if parsing of service answer was not successful/ could not proceed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||