com.evolveum.midpoint.common.refinery
Class ResourceShadowDiscriminator

java.lang.Object
  extended by com.evolveum.midpoint.common.refinery.ResourceShadowDiscriminator
All Implemented Interfaces:
java.io.Serializable

public class ResourceShadowDiscriminator
extends java.lang.Object
implements java.io.Serializable

Aggregate bean containing resource OID, intent and thombstone 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.

Author:
Radovan Semancik
See Also:
Serialized Form

Constructor Summary
ResourceShadowDiscriminator(ResourceShadowDiscriminatorType accRefType)
           
ResourceShadowDiscriminator(java.lang.String resourceOid, java.lang.String intent)
           
ResourceShadowDiscriminator(java.lang.String resourceOid, java.lang.String intent, boolean thombstone)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static boolean equalsAccountType(java.lang.String a, java.lang.String b)
           
 boolean equivalent(java.lang.Object obj)
           
 java.lang.String getIntent()
           
 java.lang.String getResourceOid()
           
 int hashCode()
           
 boolean isThombstone()
          Thumbstone flag is true: the account no longer exists.
 void setIntent(java.lang.String intent)
           
 void setResourceOid(java.lang.String resourceOid)
           
 void setThombstone(boolean thombstone)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceShadowDiscriminator

public ResourceShadowDiscriminator(java.lang.String resourceOid,
                                   java.lang.String intent)

ResourceShadowDiscriminator

public ResourceShadowDiscriminator(java.lang.String resourceOid,
                                   java.lang.String intent,
                                   boolean thombstone)

ResourceShadowDiscriminator

public ResourceShadowDiscriminator(ResourceShadowDiscriminatorType accRefType)
Method Detail

getResourceOid

public java.lang.String getResourceOid()

setResourceOid

public void setResourceOid(java.lang.String resourceOid)

getIntent

public java.lang.String getIntent()

setIntent

public void setIntent(java.lang.String intent)

isThombstone

public boolean isThombstone()
Thumbstone flag is true: the account no longer exists. The data we have are the latest metadata we were able to get.


setThombstone

public void setThombstone(boolean thombstone)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

equivalent

public boolean equivalent(java.lang.Object obj)

equalsAccountType

public static boolean equalsAccountType(java.lang.String a,
                                        java.lang.String b)


Copyright © 2012 evolveum. All Rights Reserved.