CA Identity Manager
Java SDK r12.5 SP 8

 

com.netegrity.llsdk6.imsapi.abstractinterface
Interface NamedObject

All Known Subinterfaces:
AccessRole, AccessTask, Account, AdminRole, AdminTask, AssignableObject, Container, Endpoint, EndpointCapability, EndpointGroup, ExploreAndCorrelateDef, Grantor, Group, ManagedObject, Namespace, Organization, PasswordPolicy, ProvisioningNonManagedObject, ProvisioningPolicy, ProvisioningPolicy, ProvisioningRole, Role, Task, User

public interface NamedObject

Retrieves the unique and human-readable names of a managed object.

Since:
IdentityMinder 5.6

Method Summary
 boolean equals(java.lang.Object other)
          Determines whether this object is equal to the one passed in as the parameter.
 java.lang.String getFriendlyName()
          Retrieves the managed object's friendly name.
 java.lang.String getUniqueName()
          Retrieves the managed object's unique identifier.
 int hashCode()
          Internal use only.
 java.lang.String toString()
          Retrieves the name of the managed object in the format objectType + friendlyName.
 

Method Detail

getUniqueName

java.lang.String getUniqueName()
Retrieves the managed object's unique identifier. For example, with a User object, the User DN is returned.

Returns:
The unique identifier of the object.

getFriendlyName

java.lang.String getFriendlyName()
Retrieves the managed object's friendly name.

What this method returns depends on the type of the object. For example, with a User object, the User ID is returned. For Task and Role objects, the displayed name is returned.

Returns:
The friendly name of this managed object.
Throws:
AttributeNotPresentException - This NamedObject was created without a friendly name attribute--for example, if it is a user for which User.PROPERTY_FRIENDLY_NAME was not passed as part of the attribute request enumeration.

toString

java.lang.String toString()
Retrieves the name of the managed object in the format objectType + friendlyName.

Overrides:
toString in class java.lang.Object
Returns:
String The formatted name of the object.

equals

boolean equals(java.lang.Object other)
Determines whether this object is equal to the one passed in as the parameter. The two objects are equal if their unique names are equal.

Overrides:
equals in class java.lang.Object
Returns:
true if the objects are equal, or false otherwise.

hashCode

int hashCode()
Internal use only.

Overrides:
hashCode in class java.lang.Object

CA Identity Manager
Java SDK r12.5 SP 8

06/13/2011

© 2011 CA Technologies, Inc. All rights reserved.