Class Organization

  • All Implemented Interfaces:
    ISearch, IUMSConstants, Serializable

    public class Organization
    extends PersistentObject
    Represents an organization object. An organization can have child organizations and groups, or other child objects.
      o=vortex.com  (site)
           o=hp     (organization)
               uid=jdoe
               
           o=sun    (organization)
               ou=buyerclub  
                   uid=joe    
     
    See Also:
    Serialized Form
    • Constructor Detail

      • Organization

        protected Organization()
                        throws UMSException
        No args constructor, used to contruct the right object as entries are read from persistent storage
        Throws:
        UMSException
      • Organization

        public Organization​(CreationTemplate template,
                            AttrSet attrSet)
                     throws UMSException
        Constructs Organization object without session. Unlike the constructor with session, this one simply creates Organization object in memory. Call the save() method to save the object to persistent storage.
        Parameters:
        template - template for the organization
        attrSet - attribute/value set
        Throws:
        UMSException
    • Method Detail

      • getPeopleContainerGuids

        public Collection getPeopleContainerGuids()
                                           throws UMSException
        Gets all People Containers under the organization.
        Returns:
        guids identifying People Containers under the organization
        Throws:
        UMSException - Failure
      • addPeopleContainerRule

        public void addPeopleContainerRule​(Guid guid,
                                           String filter)
                                    throws UMSException
        Adds rule for determining which People Container the user is supposed to be in.
        Parameters:
        filter - filter representation of the rule. Accepts filter string with the following format:

         
         <filter> ::= <and> | <item> <and> ::= '(' '&'
                    <itemlist> ')' <itemlist> ::= <item> | <item>
                    <itemlist> <item> ::= '(' <attr> '=' <value>
                    ')'
         
         
        guid - guid of the People Container to which the rule is applied.
        Throws:
        UMSException - Failure
      • removePeopleContainerRule

        public void removePeopleContainerRule​(Guid guid,
                                              String filter)
                                       throws UMSException
        Removes the rule applying to the given People Container guid with the given filter string.
        Parameters:
        filter - filter string of the rule to be removed
        guid - guid of which the rule applies to
        Throws:
        UMSException - Failure
      • setDefaultPeopleContainer

        public void setDefaultPeopleContainer​(Guid guid)
                                       throws UMSException
        Sets the default People Container for user entries under the organization.
        Parameters:
        guid - guid of the default People Container
        Throws:
        UMSException - Failure