Class AMEntityType


  • public final class AMEntityType
    extends Object
    Deprecated.
    As of Sun Java System Access Manager 7.1.
    This class defines a supported managed object type by AM SDK It defines the name, type, service name of the object. A set of the supported types can be obtained by using the class AMStoreConnection:

     
            AMStoreConnection amsc = new AMStoreConnection(ssotoken); 
            Set supportedTypes = amsc.getSupportedTypes(); 
            Iterator it = supportedTypes.iterator(); 
            while (it.hasNext()) { 
                AMEntityType thisType = (AMEntityType) it.next(); 
                // Do stuff with AMEntityType 
            }
     
     
    • Constructor Detail

      • AMEntityType

        protected AMEntityType​(String name,
                               int type,
                               String serviceName,
                               String searchTemplate,
                               String creationTemplate,
                               String containerDN,
                               int containerType,
                               String nAttr,
                               String stAttr,
                               String oc)
        Deprecated.
        Parameters:
        name - Name of entity
        type - The integer type of entity
        serviceName - Name of service to be used to display the entity profile
        searchTemplate - Name of search template to be used to search for this entity
        creationTemplate - Name of creation template to be used
        containerDN - Relative Distinguished Name of the container in which this entity shoould be created.
        containerType - The integer type of the container.
        nAttr - Naming attribute of this entity
        stAttr - Status attribute of this entity, if any. Not all entities have status attributes.
        oc - Objectclass used to identify this entry.
    • Method Detail

      • toString

        public String toString()
        Deprecated.
        Returns a string representation of this Entity.
        Overrides:
        toString in class Object
        Returns:
        a string representation of this Entity.
      • getName

        public String getName()
        Deprecated.
        Returns the name of the entity
        Returns:
        Name
      • getType

        public int getType()
        Deprecated.
        Returns the integer type of the entity
        Returns:
        type
      • getServiceName

        public String getServiceName()
        Deprecated.
        Returns the service name to be used to display entity profile
        Returns:
        service Name
      • getServiceSchemaManager

        public ServiceSchemaManager getServiceSchemaManager​(SSOToken token)
                                                     throws AMException,
                                                            SSOException
        Deprecated.
        Returns the schema manager for the service defined to display this profile in the console. If the service is not defined then an exception is thrown.
        Parameters:
        token - Single sign on token of the user
        Returns:
        com.sun.identity.sm.ServiceSchemaManager
        Throws:
        AMException - If unable to obtain the service schema, or if schema is not defined.
        SSOException - if the single sign on token of user is invalid.
      • getNamingAttribute

        protected String getNamingAttribute()
        Deprecated.
        Returns the naming attribute
        Returns:
        value of naming attribute.
      • getObjectClass

        protected String getObjectClass()
        Deprecated.
        Returns the objectclass
        Returns:
        objectclass used to identify this entry.
      • getCreationTemplate

        protected String getCreationTemplate()
        Deprecated.
        Returns the creation template name
        Returns:
        name of creation template used
      • getSearchTemplate

        public String getSearchTemplate()
        Deprecated.
        Returns the search template name
        Returns:
        returns the name of the search template for this entity type
      • getContainerRDN

        protected String getContainerRDN()
        Deprecated.
        Returns the parent container RDN
        Returns:
        relative distinguished name of the container in which this entity shoould be created.
      • getContainerType

        protected int getContainerType()
        Deprecated.
        Returns the parent container type
        Returns:
        the integer type of the container.