Class EntityObjectImpl

    • Constructor Detail

      • EntityObjectImpl

        public EntityObjectImpl()
    • Method Detail

      • createEntity

        public Set createEntity​(String ssotoken,
                                String entityName,
                                String entityType,
                                String entityLocation,
                                Map attributes)
                         throws EntityException,
                                SSOException
        Creates entities.
        Specified by:
        createEntity in interface EntityObjectIF
        Parameters:
        ssotoken - String representing user's SSO Token.
        entityName - Name of this entity.eg.cn=websphereAgent
        entityType - Type of entity being created. eg. Agent The types supported by SDK are configured in the list of Managed Objects in the DAI service.
        entityLocation - Location of the entity creation.eg.www.abc.com
        attributes - Map to represent Attribute-Value Pairs
        Returns:
        Returns a set of Entity DNs created.
        Throws:
        EntityException - if there is an internal error in the AM Store
        SSOException - if the sign on is no longer valid
      • deleteEntity

        public void deleteEntity​(String ssoToken,
                                 String entityName,
                                 String entityType,
                                 String entityLocation)
                          throws EntityException,
                                 SSOException
        Deletes entities.
        Specified by:
        deleteEntity in interface EntityObjectIF
        Parameters:
        ssoToken - User's Single Sign On Token.
        entityName - Name of this entity. example cn=websphereAgent.
        entityType - Type of entity being created. eg. Agent The types supported by SDK are configured in the list of Managed Objects in the DAI service.
        entityLocation - Location of the entity creation. example www.abc.com.
        Throws:
        EntityException - if there is an internal error in the AM Store.
        SSOException - if the sign on is no longer valid.
      • getEntity

        public Map getEntity​(String ssoToken,
                             String entityName,
                             String entityType,
                             String entityLocation)
                      throws EntityException,
                             SSOException,
                             RemoteException
        Returns the entity object for each entity given the entityType and entityName(s) in that particular organization.
        Specified by:
        getEntity in interface EntityObjectIF
        Parameters:
        ssoToken - User's Single Sign On Token.
        entityName - Name of this entity. example cn=websphereAgent.
        entityType - Type of entity being created. eg. Agent The types supported by SDK are configured in the list of Managed Objects in the DAI service.
        entityLocation - Location of the entity creation. example www.abc.com.
        Returns:
        Set of Entity objects.
        Throws:
        EntityException - if there is an internal error in the AM Store.
        SSOException - if the sign on is no longer valid.
        RemoteException
      • getEntityNames

        public Set getEntityNames​(String ssoToken,
                                  String entityType,
                                  String entityLocation,
                                  String entityFilter)
                           throws EntityException,
                                  SSOException,
                                  RemoteException
        Returns a set of Entity Names given the Entity Type for that particular organization.
        Specified by:
        getEntityNames in interface EntityObjectIF
        Parameters:
        ssoToken - User's Single Sign On Token.
        entityType - Type of entity being created. eg. Agent The types supported by SDK are configured in the list of Managed Objects in the DAI service.
        entityLocation - Location of the entity creation. example www.abc.com.
        entityFilter -
        Returns:
        Set of Entity Names.
        Throws:
        EntityException - if there is an internal error in the AM Store.
        SSOException - if the sign on is no longer valid.
        RemoteException
      • modifyEntity

        public void modifyEntity​(String ssoToken,
                                 String entityName,
                                 String entityType,
                                 String entityLocation,
                                 Map attributes)
                          throws EntityException,
                                 SSOException,
                                 RemoteException
        Sets or replaces attribute values with the new values supplied and Stores the changes to directory server.
        Specified by:
        modifyEntity in interface EntityObjectIF
        Parameters:
        ssoToken - User's Single Sign Token.
        entityName - Name of this entity. example cn=websphereAgent
        entityType - Type of entity being created. eg. Agent The types supported by SDK are configured in the list of Managed Objects in the DAI service.
        entityLocation - Location of the entity creation. example www.abc.com.
        Throws:
        EntityException - if there is an internal error in the AM Store.
        SSOException - if the sign on is no longer valid.
        RemoteException
      • checkInitialization

        protected static void checkInitialization()
                                           throws SSOException
        Method to get the token manager handle.
        Throws:
        SSOException