Class OrganizationalUnit

  • All Implemented Interfaces:
    ISearch, IUMSConstants, Serializable

    public class OrganizationalUnit
    extends PersistentObject
    Representation of organizational unit. Such as
       ou=people,o=vortex.com 
       ou=groups,o=vortex.com
     
    They are persistent objects and can be used as a container. For example,
     
     orgUnit = (OrganizationalUnit)UMSSession.getObject( ctx, id ); orgUnit.add(
     User1 );
     
     
    See Also:
    Serialized Form
    • Constructor Detail

      • OrganizationalUnit

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

        public OrganizationalUnit​(CreationTemplate template,
                                  AttrSet attrSet)
                           throws UMSException
        Constructs a Organizational unit object without a session. Unlike constructor with session, this one simply creates OrganizationalUnit object in memory. Call save() to save the object to persistent storage.
        Parameters:
        template - template for the OrganizationalUnit, containing required and optional attributes, and possibly default values
        attrSet - attribute/value set
        Throws:
        UMSException
    • Method Detail

      • getName

        public String getName()
                       throws UMSException
        Return name of the organizational unit
        Returns:
        name of the organizational unit
        Throws:
        UMSException