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
DMSID_SEPARATOR, DMSID_SEPARATOR_CHAR
Constructor and Description |
---|
OwCMISSimpleDMSID(String dmsPrefix_p,
String resourceID_p,
String cmisID_p) |
Modifier and Type | Method and Description |
---|---|
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() |
public String getCMISID()
OwCMISDMSID
getCMISID
in interface OwCMISDMSID
public String getDMSIDString()
DMS-prefix + "," + resourceID + "," + cmisObjectID
getDMSIDString
in interface OwCMISDMSID
public String getResourceID()
OwCMISDMSID
getResourceID
in interface OwCMISDMSID
public static String createDMSID(String dmsPrefix_p, String resourceID_p, String cmisID_p)
Create a DMSID which looks like:
DMS-prefix + "," + resourceID + "," + cmisObjectID
the cmisID_p will be escaped using the OwObjectIDCodeUtil.encode(String)
method.
dmsPrefix_p
- String prefix to be usedresourceID_p
- String resource ID (object store or repository)cmisID_p
- String object idCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.