Skip navigation links


org.identityconnectors.framework.common.objects
Class ConnectorObject

java.lang.Object
  extended by org.identityconnectors.framework.common.objects.ConnectorObject


public final class ConnectorObject
extends java.lang.Object

A ConnectorObject represents an object (e.g., an Account or a Group) on the target resource. Each ConnectorObject represents a resource object as a UID and a bag of attributes. The developer of a Connector will use a ConnectorObjectBuilder to construct instances of ConnectorObject.


Constructor Summary
ConnectorObject(ObjectClass objectClass, java.util.Set<? extends Attribute> set)
          Public only for serialization; please use ConnectorObjectBuilder.

 

Method Summary
 boolean equals(java.lang.Object obj)
           
 Attribute getAttributeByName(java.lang.String name)
          Get an attribute by if it exists else null.
 java.util.Set<Attribute> getAttributes()
          Get the set of attributes that represent this object.
 Name getName()
          Gets the Name of the object.
 ObjectClass getObjectClass()
          Gets the ObjectClass for this object.
 Uid getUid()
          Get the native identifier for this object.
 int hashCode()
           
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

 

Constructor Detail

ConnectorObject

public ConnectorObject(ObjectClass objectClass,
                       java.util.Set<? extends Attribute> set)
Public only for serialization; please use ConnectorObjectBuilder.
Throws:
java.lang.IllegalArgumentException - iff Name or Uid is missing from the set.

Method Detail

getAttributes

public java.util.Set<Attribute> getAttributes()
Get the set of attributes that represent this object. This includes the Uid and all OperationalAttributes.

getAttributeByName

public Attribute getAttributeByName(java.lang.String name)
Get an attribute by if it exists else null.

getUid

public Uid getUid()
Get the native identifier for this object.

getName

public Name getName()
Gets the Name of the object.

getObjectClass

public ObjectClass getObjectClass()
Gets the ObjectClass for this object.

equals

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

hashCode

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

toString

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

Skip navigation links


Copyright © 2012, Oracle and/or its affiliates. All rights reserved.