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

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.opencmis.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.opencmis.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.
 boolean equals(Object obj)
           
 String getCMISID()
          Returning the native CMIS ID of the object.
 String getDMSIDString()
          This method concatenate the given String using comma "," as separator, DMSID syntax is:
 String getResourceID()
          Returning the resource (repository) ID.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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 comma "," as separator, DMSID syntax is:

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

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

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.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

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


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.