Class Resource

    • Constructor Detail

      • Resource

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

        public Resource​(CreationTemplate template,
                        AttrSet attrSet)
                 throws UMSException
        Construct Resource object without session. Unlike constructor with session, this one simply creates a Resource object in memory. Call the save() method to save the object to data store.
        Parameters:
        template - template to the Resource
        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
      • 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