com.novell.admin.rbs
Class RBSRole

java.lang.Object
  |
  +--com.novell.admin.rbs.RBSObject
        |
        +--com.novell.admin.rbs.RBSRole
All Implemented Interfaces:
java.io.Serializable

public class RBSRole
extends RBSObject

Class that represents a rbsRole object


Fields inherited from class com.novell.admin.rbs.RBSObject
ns, nsObj, oe
 
Constructor Summary
RBSRole(NSObject obj)
          Constructor.
RBSRole(ObjectEntry objectOE)
          Constructor.
 
Method Summary
 void addContent(RBSObject[] content)
          Adds tasks to the role.
 void addMembers(RBSAssociation[] assc)
          Adds the given members to the role.
 void addOwners(ObjectEntry[] owners)
          Adds the given objects as owners to the role.
 boolean contains(RBSObject task)
          Checks to see if this Role has the given Task
 void deleteContent(RBSObject[] content)
          Deletes the given tasks from the role.
 void deleteMembers(RBSAssociation[] assc)
          Deletes the given members from the role.
 void deleteOwners(ObjectEntry[] owners)
          Delete the given owner objects from the role.
 RBSObject[] getContent()
          Returns an array of rbsTask and rbsJob objects in the Role.
 RBSAssociation[] getMembers()
          Returns the members of the role
 ObjectEntry[] getOwners()
          Returns the owners of the role
 void modifyMembers(RBSAssociation[] assc)
          Modifys the scope, start and stop times of the association.
 void setContent(RBSObject[] content)
          Sets the tasks for the role.
 void setMembers(RBSAssociation[] members)
          Sets the given objects as members of the role.
 void setOwners(ObjectEntry[] owners)
          Sets the given objects as owners to the role.
 void update()
          OverWrites the base class update
 
Methods inherited from class com.novell.admin.rbs.RBSObject
getDescription, getObjectEntry, setDescription, setNSObject, verifyNSObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RBSRole

public RBSRole(ObjectEntry objectOE)
Constructor.
Parameters:
objectOE - ObjectEntry representing a rbsRole

RBSRole

public RBSRole(NSObject obj)
Constructor.
Parameters:
obj - NSObject
Method Detail

getOwners

public ObjectEntry[] getOwners()
                        throws SPIException
Returns the owners of the role
Returns:
The ObjectEntry[] representing the owners of the role.
Throws:
SPIException -  

setOwners

public void setOwners(ObjectEntry[] owners)
               throws NamespaceException,
                      SPIException,
                      SnapinVetoException,
                      ComponentCreationException
Sets the given objects as owners to the role.
Parameters:
owners - The ObjectEntry[] representing the owners of the role.
Throws:
SPIException -  
SnapinVetoException -  
NamespaceException -  
ComponentCreationException -  

addOwners

public void addOwners(ObjectEntry[] owners)
               throws NamespaceException,
                      SPIException,
                      SnapinVetoException,
                      ComponentCreationException
Adds the given objects as owners to the role.
Parameters:
owners - The ObjectEntry[] representing the owners of the role.
Throws:
SPIException -  
SnapinVetoException -  
NamespaceException -  
ComponentCreationException -  

deleteOwners

public void deleteOwners(ObjectEntry[] owners)
                  throws SPIException,
                         NamespaceException,
                         ComponentCreationException
Delete the given owner objects from the role.
Parameters:
owners - The ObjectEntry[] representing the owners of the role.
Throws:
SPIException -  
NamespaceException -  
ComponentCreationException -  

getContent

public RBSObject[] getContent()
                       throws SPIException
Returns an array of rbsTask and rbsJob objects in the Role. The order is Jobs first, then tasks
Returns:
The RBSObject[] representing the content of the role
Throws:
SPIException -  

setContent

public void setContent(RBSObject[] content)
                throws SPIException,
                       SnapinVetoException,
                       NamespaceException,
                       ComponentCreationException,
                       RBSException
Sets the tasks for the role.
Parameters:
tasks - The RBSObject[] representing the tasks of the role.
Throws:
SPIException -  
SnapinVetoException -  
NamespaceException -  
ComponentCreationException -  

addContent

public void addContent(RBSObject[] content)
                throws SPIException,
                       SnapinVetoException,
                       NamespaceException,
                       ComponentCreationException,
                       RBSException
Adds tasks to the role.
Parameters:
tasks - The RBSObject[] representing the tasks to add.
Throws:
SPIException -  
SnapinVetoException -  
NamespaceException -  
ComponentCreationException -  

deleteContent

public void deleteContent(RBSObject[] content)
                   throws SPIException,
                          NamespaceException,
                          SnapinVetoException,
                          ComponentCreationException,
                          RBSException
Deletes the given tasks from the role.
Parameters:
tasks - The RBSObject[] representing the tasks to delete.
Throws:
SPIException -  
NamespaceException -  
ComponentCreationException -  
SnapinVetoException -  

getMembers

public RBSAssociation[] getMembers()
                            throws SPIException,
                                   RBSException
Returns the members of the role
Returns:
The RBSAssociation[] representing the members of the role.
Throws:
SPIException -  

setMembers

public void setMembers(RBSAssociation[] members)
                throws SPIException,
                       RBSException,
                       SnapinVetoException,
                       NamespaceException,
                       ComponentCreationException
Sets the given objects as members of the role.
Parameters:
members - The ObjectEntry[] representing the members of the role.
Throws:
SPIException -  
SnapinVetoException -  
NamespaceException -  
ComponentCreationException -  
RBSException -  

addMembers

public void addMembers(RBSAssociation[] assc)
                throws SPIException,
                       NamespaceException,
                       ComponentCreationException
Adds the given members to the role.
Parameters:
members - The ObjectEntry[] representing the members of the role.
Throws:
SPIException -  
NamespaceException -  
ComponentCreationException -  

deleteMembers

public void deleteMembers(RBSAssociation[] assc)
                   throws SPIException,
                          NamespaceException,
                          ComponentCreationException,
                          RBSException
Deletes the given members from the role.
Parameters:
members - The ObjectEntry[] representing the members of the role.
Throws:
SPIException -  
SnapinVetoException -  
ComponentCreationException -  
RBSException -  

modifyMembers

public void modifyMembers(RBSAssociation[] assc)
                   throws SPIException,
                          NamespaceException
Modifys the scope, start and stop times of the association.
Parameters:
members - The ObjectEntry[] representing the members of the role.
Throws:
SPIException -  
ComponentCreationException -  

contains

public boolean contains(RBSObject task)
                 throws SPIException
Checks to see if this Role has the given Task
Parameters:
task - The RBSObject for the task.
Returns:
true if task found, false otherwise
Throws:
SPIException -  

update

public void update()
            throws SPIException,
                   SnapinVetoException
OverWrites the base class update
Throws:
SPIException -  
SnapinVetoException -  
Overrides:
update in class RBSObject


API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
ConsoleOne is a registered trademark of Novell Inc.
Generated December 9 2003 1727.