Package com.evolveum.midpoint.schema
Class ResourceShadowDiscriminator
- java.lang.Object
-
- com.evolveum.midpoint.schema.ResourceShadowDiscriminator
-
- All Implemented Interfaces:
DebugDumpable
,HumanReadableDescribable
,Serializable
public class ResourceShadowDiscriminator extends Object implements Serializable, DebugDumpable, HumanReadableDescribable
Aggregate bean containing resource OID, intent and tombstone flag. 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. TODO: split to two objects: 1: ResourceShadowCoordinates which will stay in common 2: ResourceShadowDiscriminator (subclass) which will go to model. This will contains tombstone and order.- Author:
- Radovan Semancik
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description ResourceShadowDiscriminator(ShadowDiscriminatorType accRefType)
ResourceShadowDiscriminator(ShadowDiscriminatorType accRefType, String defaultResourceOid, ShadowKindType defaultKind)
ResourceShadowDiscriminator(String resourceOid)
ResourceShadowDiscriminator(String resourceOid, ShadowKindType kind, String intent, String tag, boolean tombstone)
ResourceShadowDiscriminator(String resourceOid, QName objectClass)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
-
-
-
Constructor Detail
-
ResourceShadowDiscriminator
public ResourceShadowDiscriminator(String resourceOid, ShadowKindType kind, String intent, String tag, boolean tombstone)
-
ResourceShadowDiscriminator
public ResourceShadowDiscriminator(ShadowDiscriminatorType accRefType)
-
ResourceShadowDiscriminator
public ResourceShadowDiscriminator(ShadowDiscriminatorType accRefType, String defaultResourceOid, ShadowKindType defaultKind)
-
ResourceShadowDiscriminator
public ResourceShadowDiscriminator(String resourceOid)
-
-
Method Detail
-
getResourceOid
public String getResourceOid()
-
setResourceOid
public void setResourceOid(String resourceOid)
-
getKind
public ShadowKindType getKind()
-
setKind
public void setKind(ShadowKindType kind)
-
getIntent
public String getIntent()
-
setIntent
public void setIntent(String intent)
-
getTag
public String getTag()
-
setTag
public void setTag(String tag)
-
getObjectClass
public QName getObjectClass()
-
setObjectClass
public void setObjectClass(QName objectClass)
-
getOrder
public int getOrder()
-
setOrder
public void setOrder(int order)
-
isTombstone
public boolean isTombstone()
Tombstone flag is true: the account no longer exists. The data we have are the latest metadata we were able to get. The projection will be marked as tombstone if we discover that the associated resource object is gone. Or the shadow is gone and we can no longer associate the resource object. In any way the tombstoned projection is marked for removal. It will be eventually unlinked and the shadow will be deleted. The shadow may stay around in the "dead" state for some time for reporting purposes.
-
setTombstone
public void setTombstone(boolean tombstone)
-
isWildcard
public boolean isWildcard()
-
toResourceShadowDiscriminatorType
public ShadowDiscriminatorType toResourceShadowDiscriminatorType()
-
fromResourceShadowDiscriminatorType
public static ResourceShadowDiscriminator fromResourceShadowDiscriminatorType(ShadowDiscriminatorType resourceShadowDiscriminatorType, boolean provideDefaultIntent)
-
equivalent
public boolean equivalent(Object obj)
Similar to equals but ignores the order.
-
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
-
-