public class Identity extends Object
| Constructor and Description |
|---|
Identity()
Creates a new empty identity.
|
Identity(List<Reference> context,
String assetType,
String assetName)
Creates a new identity based on the identity characteristics provided.
|
Identity(List<Reference> context,
String assetType,
String assetName,
String rid)
Creates a new identity based on the identity characteristics provided.
|
| Modifier and Type | Method and Description |
|---|---|
Identity |
getParentIdentity()
Returns the Identity of the parent that contains the entity identified by this Identity.
|
String |
getRid()
Returns the Repository ID (RID) of this identity (if available), or null.
|
boolean |
sameas(Identity identity)
Returns true iff this identity is equivalent to the provided identity.
|
String |
toString() |
public Identity()
public Identity(List<Reference> context, String assetType, String assetName)
context - the populated '_context' array from an assetassetType - the type of the assetassetName - the name of the assetpublic Identity(List<Reference> context, String assetType, String assetName, String rid)
context - the populated '_context' array from an assetassetType - the type of the assetassetName - the name of the assetrid - the Repository ID (RID) of the assetpublic boolean sameas(Identity identity)
identity - the identity to compare againstpublic Identity getParentIdentity()
public String getRid()
Copyright © 2018–2019 ODPi. All rights reserved.