com.ibm.itim.dataservices.model.pim
Class SAMembership

java.lang.Object
  extended by com.ibm.itim.dataservices.model.pim.SAMembership
All Implemented Interfaces:
java.io.Serializable

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

This class represents the people memberships of the policy. The members could be defined as one of the following:

  • People belonging to an organizational role
  • All people
  • Since:
    6.0
    See Also:
    Serialized Form

    Nested Class Summary
    static class SAMembership.Type
              Membership type values
     
    Field Summary
    static long ID_NOT_ASSIGNED
              Constant indicating the membership ID is not assigned yet, which means the membership does not exsit in the repository.
     
    Constructor Summary
    SAMembership(SAMembership.Type membershipType, java.lang.String membershipName)
              The default constructor.
     
    Method Summary
     boolean equals(SAMembership pm)
              Compares the Membership object passed in with itself.
     long getId()
              Return the entitlement unique identifier.
     java.lang.String getMembershipName()
              Returns the value of the membershipName property.
     SAMembership.Type getMembershipType()
              Returns the value of the membershipType property.
     int hashCode()
              Returns a hash value that can be used in hash tables.
     void setMembershipName(java.lang.String name)
              Sets the value of the membershipName property.
     void setMembershipType(SAMembership.Type type)
              Sets the value of the membershipType property.
     java.lang.String toString()
              Returns a string representation of this object.
     
    Methods inherited from class java.lang.Object
    equals, getClass, notify, notifyAll, wait, wait, wait
     

    Field Detail

    ID_NOT_ASSIGNED

    public static final long ID_NOT_ASSIGNED
    Constant indicating the membership ID is not assigned yet, which means the membership does not exsit in the repository.

    See Also:
    Constant Field Values
    Constructor Detail

    SAMembership

    public SAMembership(SAMembership.Type membershipType,
                        java.lang.String membershipName)
    The default constructor.

    Parameters:
    membershipType - The membership type which could be one of the 2 type constants defined in this class.
    membershipName - Stores the role DN if the type is TYPE_ORGANIZATIONAL_ROLE; Stores the wildcard character "*" if the type is TYPE_ALL_PERSONS
    Method Detail

    getMembershipType

    public SAMembership.Type getMembershipType()
    Returns the value of the membershipType property.

    Returns:
    the current value of the membershipType property.

    setMembershipType

    public void setMembershipType(SAMembership.Type type)
    Sets the value of the membershipType property.

    Parameters:
    types - the new value of the membershipType property

    setMembershipName

    public void setMembershipName(java.lang.String name)
    Sets the value of the membershipName property.

    Parameters:
    name - the new value of the membershipName property

    getMembershipName

    public java.lang.String getMembershipName()
    Returns the value of the membershipName property.

    Returns:
    the current value of the membershipName property.

    equals

    public boolean equals(SAMembership pm)
    Compares the Membership object passed in with itself.

    Parameters:
    pm - The Membership object to be compared
    Returns:
    true if the given object is the same as self, false otherwise

    hashCode

    public int hashCode()
    Returns a hash value that can be used in hash tables.

    Overrides:
    hashCode in class java.lang.Object
    Returns:
    Hash value for the distinguished name.

    toString

    public java.lang.String toString()
    Returns a string representation of this object.

    Overrides:
    toString in class java.lang.Object
    Returns:
    String representing a textual description of this object.

    getId

    public long getId()
    Return the entitlement unique identifier.

    Returns:
    the entitlement id.


    IBM Security Identity Manager 6.0.0
    © Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.