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 Stringintentprotected ShadowKindTypekindprotected QNameobjectClassprotected StringresourceOidprotected Stringtag-
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 ResourceShadowCoordinatesclone()ResourceShadowCoordinatescloneBasic()Copies everything except for object class name and order.StringdebugDump(int indent)booleanequals(Object o)static booleanequalsIntent(String a, String b)booleanequivalent(Object obj)Similar to equals but ignores the order.StringgetIntent()ShadowKindTypegetKind()QNamegetObjectClass()StringgetResourceOid()StringgetTag()inthashCode()booleanisWildcard()voidsetObjectClass(QName objectClass)voidshortDump(StringBuilder sb)Show the content of the object intended for diagnostics.StringtoHumanReadableDescription()StringtoHumanReadableDescription(boolean writeOid)StringtoString()-
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:ShortDumpableShow 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:
shortDumpin 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:
toHumanReadableDescriptionin interfaceHumanReadableDescribable
-
toHumanReadableDescription
public String toHumanReadableDescription(boolean writeOid)
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDumpin interfaceDebugDumpable
-
clone
public ResourceShadowCoordinates clone()
-
cloneBasic
public ResourceShadowCoordinates cloneBasic()
Copies everything except for object class name and order.
-
-