public class DocumentId extends Object implements Serializable
Constructor and Description |
---|
DocumentId(String objectId,
String ddcName)
Creates a new DocumentId.
|
DocumentId(String objectId,
String revisionId,
String ddcName)
Creates a new DocumentId.
|
DocumentId(String objectId,
String revisionId,
String ddcName,
int elementId)
Creates a new DocumentId.
|
Modifier and Type | Method and Description |
---|---|
static List<String> |
convertToObjectIdList(Collection<DocumentId> list)
Converts to a list of object id's.
|
static List<String> |
convertToRevisionIdList(Collection<DocumentId> list)
/**Converts to a list of revision id's.
|
boolean |
equals(Object obj)
Returns true if the IDs identify the same document.
|
static DocumentId |
fromString(String idAsString)
Creates a new DocumentId based on the specified string.
|
String |
getDdcName() |
int |
getElementId() |
String |
getObjectId() |
String |
getRevisionId() |
int |
hashCode()
Generates a hash code for the ID.
|
boolean |
isAttachment() |
void |
setAttachment(boolean isAttachment) |
String |
toString()
Returns a string representing this DocumentId.
|
public DocumentId(String objectId, String ddcName)
objectId
- object ID of the document. This corresponds with the SysRowId.ddcName
- ddc namepublic DocumentId(String objectId, String revisionId, String ddcName)
objectId
- object ID of the document. This corresponds with the SysRowId.revisionId
- revision ID of the document. This corresponds with the HDOC.ddcName
- ddc namepublic DocumentId(String objectId, String revisionId, String ddcName, int elementId)
objectId
- object ID of the document. This corresponds with the SysRowId.revisionId
- revision ID of the document. This corresponds with the HDOC.ddcName
- ddc nameelementId
- element ID. Used only for structured documents to identify the page.public int getElementId()
public String getObjectId()
public String getRevisionId()
public String getDdcName()
public static final List<String> convertToObjectIdList(Collection<DocumentId> list)
list
- Inputpublic static final List<String> convertToRevisionIdList(Collection<DocumentId> list)
list
- Inputpublic boolean equals(Object obj)
equals
in class Object
obj
- other idObject.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object.toString()
public static DocumentId fromString(String idAsString)
idAsString
- string representation of the IDtoString()
public boolean isAttachment()
public void setAttachment(boolean isAttachment)
isAttachment
- set to true if this ID identifies an attachment of a workflow taskCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.