Package com.evolveum.midpoint.schema
Class ResourceShadowCoordinates
- java.lang.Object
-
- com.evolveum.midpoint.schema.ResourceShadowCoordinates
-
- All Implemented Interfaces:
DebugDumpable
,HumanReadableDescribable
,ShortDumpable
,Serializable
,Cloneable
- Direct Known Subclasses:
ResourceShadowDiscriminator
public class ResourceShadowCoordinates extends Object implements Serializable, DebugDumpable, ShortDumpable, HumanReadableDescribable, Cloneable
Aggregate bean containing resource OID, kind, intent, object class and tag flags. It uniquely identifies an shadow projection (usually account) for a specific user regardless whether it has OID, does not have OID yet, it exists of was deleted. This is used mostly as a key in hashes and for searches.- Author:
- Radovan Semancik
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
intent
protected ShadowKindType
kind
protected QName
objectClass
protected String
resourceOid
protected String
tag
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description ResourceShadowCoordinates(@NotNull ResourceShadowCoordinates prototype)
ResourceShadowCoordinates(ShadowDiscriminatorType accRefType)
ResourceShadowCoordinates(ShadowDiscriminatorType accRefType, String defaultResourceOid, ShadowKindType defaultKind)
ResourceShadowCoordinates(String resourceOid)
ResourceShadowCoordinates(String resourceOid, @NotNull ResourceObjectDefinition definition, @Nullable String tag)
ResourceShadowCoordinates(String resourceOid, ShadowKindType kind, String intent, String tag)
ResourceShadowCoordinates(String resourceOid, ShadowKindType kind, String intent, QName objectClass)
ResourceShadowCoordinates(String resourceOid, QName objectClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceShadowCoordinates
clone()
ResourceShadowCoordinates
cloneBasic()
Copies everything except for object class name and order.String
debugDump(int indent)
boolean
equals(Object o)
static boolean
equalsIntent(String a, String b)
boolean
equivalent(Object obj)
Similar to equals but ignores the order.String
getIntent()
ShadowKindType
getKind()
QName
getObjectClass()
String
getResourceOid()
String
getTag()
int
hashCode()
boolean
isWildcard()
void
setObjectClass(QName objectClass)
void
shortDump(StringBuilder sb)
Show the content of the object intended for diagnostics.String
toHumanReadableDescription()
String
toHumanReadableDescription(boolean writeOid)
String
toString()
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
-
-
-
Field Detail
-
resourceOid
protected final String resourceOid
-
kind
protected final ShadowKindType kind
-
intent
protected final String intent
-
tag
protected final String tag
-
objectClass
protected QName objectClass
-
-
Constructor Detail
-
ResourceShadowCoordinates
public ResourceShadowCoordinates(String resourceOid, @NotNull @NotNull ResourceObjectDefinition definition, @Nullable @Nullable String tag)
-
ResourceShadowCoordinates
public ResourceShadowCoordinates(String resourceOid, ShadowKindType kind, String intent, String tag)
-
ResourceShadowCoordinates
public ResourceShadowCoordinates(@NotNull @NotNull ResourceShadowCoordinates prototype)
-
ResourceShadowCoordinates
public ResourceShadowCoordinates(ShadowDiscriminatorType accRefType)
-
ResourceShadowCoordinates
public ResourceShadowCoordinates(ShadowDiscriminatorType accRefType, String defaultResourceOid, ShadowKindType defaultKind)
-
ResourceShadowCoordinates
public ResourceShadowCoordinates(String resourceOid)
-
ResourceShadowCoordinates
public ResourceShadowCoordinates(String resourceOid, ShadowKindType kind, String intent, QName objectClass)
-
-
Method Detail
-
getResourceOid
public String getResourceOid()
-
getKind
public ShadowKindType getKind()
-
getIntent
public String getIntent()
-
getTag
public String getTag()
-
getObjectClass
public QName getObjectClass()
-
setObjectClass
public void setObjectClass(QName objectClass)
-
isWildcard
public boolean isWildcard()
-
equivalent
public boolean equivalent(Object obj)
Similar to equals but ignores the order.
-
shortDump
public void shortDump(StringBuilder sb)
Description copied from interface:ShortDumpable
Show the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.- Specified by:
shortDump
in interfaceShortDumpable
- Parameters:
sb
- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-
toHumanReadableDescription
public String toHumanReadableDescription()
- Specified by:
toHumanReadableDescription
in interfaceHumanReadableDescribable
-
toHumanReadableDescription
public String toHumanReadableDescription(boolean writeOid)
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
clone
public ResourceShadowCoordinates clone()
-
cloneBasic
public ResourceShadowCoordinates cloneBasic()
Copies everything except for object class name and order.
-
-