Class User

    • Constructor Detail

      • User

        protected User()
                throws UMSException
        No args constructor; used to construct the right object as entries are read from persistent storage.
        Throws:
        UMSException
      • User

        public User​(CreationTemplate template,
                    AttrSet attrSet)
             throws UMSException
        Construct User object without session. Unlike constructor with session, this one simply creates a User object in memory. Call the save() method to save the object to data store.
        Parameters:
        template - template to the User
        attrSet - attribute/value set
        Throws:
        UMSException
    • Method Detail

      • getAttributes

        public AttrSet getAttributes​(SearchTemplate template)
                              throws UMSException
        Return attribute set according to a supplied search template. The search template is used as attribute retrieval guidelines.
        Parameters:
        template - Search template
        Returns:
        attribute set with attribute names defined in the template
        Throws:
        UMSException
      • getGroups

        public String[] getGroups()
                           throws UMSException
        Return groups that the user is a member of. If the user is not a member of a group as indicated in the "memberof" attribute in the user entry, null is returned for this method.
        Returns:
        String representation of guid for the group(s) that the user is a member of; null if the user is not recorded as a member of any group.
        Throws:
        UMSException
      • getAccessRight

        public AccessRightObject getAccessRight​(Guid guid)
                                         throws UMSException,
                                                ACIParseException
        Get the access rights associated with the user; this will return an aggregation of all the attribute access rights granted by each of the user's roles. The aggregation will only include from the 'guid' parameter on up the DIT.
        Parameters:
        guid - The starting location of the role (rights) aggregation.
        Returns:
        AccessRightObject associated with the user
        Throws:
        UMSException
        ACIParseException