com.evolveum.midpoint.common.refinery
Class ResourceShadowDiscriminator

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

public class ResourceShadowDiscriminator
extends Object
implements 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(String resourceOid, String intent)
           
ResourceShadowDiscriminator(String resourceOid, String intent, boolean thombstone)
           
 
Method Summary
 boolean equals(Object obj)
           
static boolean equalsAccountType(String a, String b)
           
 boolean equivalent(Object obj)
           
 String getIntent()
           
 String getResourceOid()
           
 int hashCode()
           
 boolean isThombstone()
          Thumbstone flag is true: the account no longer exists.
 void setIntent(String intent)
           
 void setResourceOid(String resourceOid)
           
 void setThombstone(boolean thombstone)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceShadowDiscriminator

public ResourceShadowDiscriminator(String resourceOid,
                                   String intent)

ResourceShadowDiscriminator

public ResourceShadowDiscriminator(String resourceOid,
                                   String intent,
                                   boolean thombstone)

ResourceShadowDiscriminator

public ResourceShadowDiscriminator(ResourceShadowDiscriminatorType accRefType)
Method Detail

getResourceOid

public String getResourceOid()

setResourceOid

public void setResourceOid(String resourceOid)

getIntent

public String getIntent()

setIntent

public void setIntent(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 String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

equivalent

public boolean equivalent(Object obj)

equalsAccountType

public static boolean equalsAccountType(String a,
                                        String b)


Copyright © 2013 evolveum. All Rights Reserved.