public class XInfoImpl extends java.lang.Object implements XInfo
ExternalReferenceType
.
When an application persists one of those object types, by calling a Manager's persist() method, persist() returns the object updated with its externally available identifiers. Those identifiers are an:
In most use cases of an XPair, SDK methods accept an XPair containing either an xid or xref
(as well as both). The method getState(XInfo)
returns the enum XInfoImpl.XInfoState
to revealing the state of an
XPair
Modifier and Type | Class and Description |
---|---|
static class |
XInfoImpl.XInfoState |
Modifier | Constructor and Description |
---|---|
protected |
XInfoImpl(ExternalReferenceType type) |
protected |
XInfoImpl(ExternalReferenceType type,
int xid) |
protected |
XInfoImpl(ExternalReferenceType type,
int xid,
java.lang.String xref) |
protected |
XInfoImpl(ExternalReferenceType type,
java.lang.String xref) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asXinfoString() |
void |
clearXinfo()
Sets this object's xid to 0 and xref to null.
|
boolean |
equals(java.lang.Object obj)
Returns whether two XInfos are equal based solely on the object's xref UUID.
|
PrincipalType |
getPrincipalType() |
static XInfoImpl.XInfoState |
getState(XInfo xinfo) |
ExternalReferenceType |
getType() |
int |
getXid() |
XInfo |
getXinfo()
Returns a new
XInfoImpl instance containing the values returned from calling
XInfo.getXid() and XInfo.getXref() on the implementing class. |
java.lang.String |
getXref() |
int |
hashCode()
Returns an External Reference's hash code based solely on the object's xref UUID.
|
void |
setXid(int xid)
Sets the xid value for this object.
|
void |
setXidOverride(int xid)
Replaces the xid value for this object.
|
void |
setXinfo(XInfo xinfo) |
void |
setXref(java.lang.String xref) |
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String indent) |
protected XInfoImpl(ExternalReferenceType type)
protected XInfoImpl(ExternalReferenceType type, int xid)
protected XInfoImpl(ExternalReferenceType type, java.lang.String xref)
protected XInfoImpl(ExternalReferenceType type, int xid, java.lang.String xref)
public void setXid(int xid)
XInfo
Note: This method is intended for internal use by CAS only. Other than Unit Tests, it is unlikely
that an application or service would need to call setXid(int xid)
. If you think you do need
to call this method, speak to an experienced SDK developer
public void setXidOverride(int xid) throws java.lang.IllegalAccessError
XInfo
Note: This method is for internal use by CAS only. It should never be called by an application or service. If you think you do need to call this method, speak to an experienced SDK developer
setXidOverride
in interface XInfo
xid
- New External Reference id value.java.lang.IllegalAccessError
- if the current object does not already have an xid
value.
That is to say: If a call to XInfo.getXid()
returns a non-zero value.public XInfo getXinfo()
XInfo
XInfoImpl
instance containing the values returned from calling
XInfo.getXid()
and XInfo.getXref()
on the implementing class.public void clearXinfo()
XInfo
clearXinfo
in interface XInfo
public static XInfoImpl.XInfoState getState(XInfo xinfo)
public java.lang.String toString()
public int hashCode()
XInfo
public boolean equals(java.lang.Object obj)
XInfo
public java.lang.String asXinfoString()
asXinfoString
in interface XInfo
public java.lang.String toString(java.lang.String indent)
public ExternalReferenceType getType()
public PrincipalType getPrincipalType()
getPrincipalType
in interface XInfo