com.wewebu.ow.server.ecmimpl.cmis
Class OwCMISSimpleDMSID

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.cmis.OwCMISSimpleDMSID
All Implemented Interfaces:
OwCMISDMSID

public class OwCMISSimpleDMSID
extends Object
implements OwCMISDMSID

OwCMISSimpleDMSID. This class simple creates from the given strings a semicolon separated DMSID representation, starting always with the DMS-prefix.

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.OwCMISDMSID
DMSID_SEPARATOR, DMSID_SEPARATOR_CHAR
 
Constructor Summary
OwCMISSimpleDMSID(String dmsPrefix_p, String resourceID_p, String cmisID_p)
           
 
Method Summary
static String createDMSID(String dmsPrefix_p, String resourceID_p, String cmisID_p)
          Static method which is used for creation of DMSID without an instance of OwCMISSimpleDMSID.
 String getCMISID()
          Returning the native CMIS ID of the object.
 String getDMSIDString()
          This method concatenate the given String using semicolon ";" as separator, DMSID syntax is:
 OwCMISObject getObject(OwCMISNetwork network_p)
          Return an OwCMISObject depending on the given DMSID information.
 String getResourceID()
          Returning the resource (repository) ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwCMISSimpleDMSID

public OwCMISSimpleDMSID(String dmsPrefix_p,
                         String resourceID_p,
                         String cmisID_p)
Method Detail

getCMISID

public String getCMISID()
Description copied from interface: OwCMISDMSID
Returning the native CMIS ID of the object.

Specified by:
getCMISID in interface OwCMISDMSID
Returns:
String representing the native ID.

getDMSIDString

public String getDMSIDString()
This method concatenate the given String using semicolon ";" as separator, DMSID syntax is:

DMS-prefix + "," + resourceID + "," + cmisObjectID

Specified by:
getDMSIDString in interface OwCMISDMSID
Returns:
String representing DMSID

getObject

public OwCMISObject getObject(OwCMISNetwork network_p)
                       throws com.wewebu.ow.server.exceptions.OwException
Description copied from interface: OwCMISDMSID
Return an OwCMISObject depending on the given DMSID information.

Specified by:
getObject in interface OwCMISDMSID
Parameters:
network_p - OwCMISNetwork to use for retrieval
Returns:
OwCMISObject
Throws:
com.wewebu.ow.server.exceptions.OwException - if any problems occur during retrieval

getResourceID

public String getResourceID()
Description copied from interface: OwCMISDMSID
Returning the resource (repository) ID.

Specified by:
getResourceID in interface OwCMISDMSID
Returns:
String representing resource ID.

createDMSID

public static String createDMSID(String dmsPrefix_p,
                                 String resourceID_p,
                                 String cmisID_p)
Static method which is used for creation of DMSID without an instance of OwCMISSimpleDMSID.

Create a DMSID which looks like:
DMS-prefix + "," + resourceID + "," + cmisObjectID
the cmisID_p will be escaped using the OwObjectIDCodeUtil.encode(String) method.

Parameters:
dmsPrefix_p - String prefix to be used
resourceID_p - String resource ID (object store or repository)
cmisID_p - String object id
Returns:
String representing a DMSID
Since:
3.1.0.0


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.