com.novell.admin.rbs
Class RBSAssociatedObject

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

public class RBSAssociatedObject
extends RBSObject
implements java.io.Serializable

Class the represents a User, Group, O or OU (anything that can have a rbsRole assigned to it.)


Fields inherited from class com.novell.admin.rbs.RBSObject
ns, nsObj, oe
 
Constructor Summary
RBSAssociatedObject(NSObject obj)
          Constructor.
RBSAssociatedObject(ObjectEntry objectEntry)
          Modeling Constructor.
 
Method Summary
 void addDirectRoleAssociations(RBSAssociation[] assc)
          Adds to the directly associated roles for this object.
 void addOwnedRoles(RBSRole[] roles)
          Adds Roles to this objects Owned Roles.
 void deleteDirectRoleAssociations(RBSAssociation[] assc)
          Deletes assocations from this object.
 void deleteOwnedRoles(RBSRole[] roles)
          Deletes roles from the Owned Roles for the object.
 RBSAssociation[] getAllRoleAssociations()
          Gets all Roles associated to this object; This includes Roles directly associated and roles that are inherited either from groups or containers.
 RBSAssociation[] getDirectRoleAssociations()
          Gets all Roles direclty associated to this object;
 RBSRole[] getOwnedRoles()
          Gets the owned roles of this object.
 void modifyDirectRoleAssociations(RBSAssociation[] assc)
          Modifies an existing assocation of the object; this only modifies the Role object's start, stop, and scope.
 void setDirectRoleAssociations(RBSAssociation[] roles)
          Sets the directly associated roles for this object.
 void setOwnedRoles(RBSRole[] roles)
          Sets the Owned Roles for the object.
 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

RBSAssociatedObject

public RBSAssociatedObject(ObjectEntry objectEntry)
Modeling Constructor.
Parameters:
objectEntry - The ObjectEntry

RBSAssociatedObject

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

getOwnedRoles

public RBSRole[] getOwnedRoles()
                        throws SPIException
Gets the owned roles of this object.
Returns:
An RBSRole[] of all the owned roles of this object.
Throws:
SPIException -  

setOwnedRoles

public void setOwnedRoles(RBSRole[] roles)
                   throws RBSException,
                          SPIException,
                          SnapinVetoException,
                          ComponentCreationException,
                          NamespaceException
Sets the Owned Roles for the object.
Parameters:
roles - The RBSRole[] representing the owned roles for this object.
Throws:
SPIException -  
SnapinVetoException -  
NamespaceException -  
ComponentCreationException -  

addOwnedRoles

public void addOwnedRoles(RBSRole[] roles)
                   throws RBSException,
                          SPIException,
                          SnapinVetoException,
                          ComponentCreationException,
                          NamespaceException
Adds Roles to this objects Owned Roles.
Parameters:
roles - The RBSRole[] representing the owned roles to add.
Throws:
SPIException -  
SnapinVetoException -  
NamespaceException -  
ComponentCreationException -  

deleteOwnedRoles

public void deleteOwnedRoles(RBSRole[] roles)
                      throws RBSException,
                             SPIException,
                             SnapinVetoException,
                             ComponentCreationException,
                             NamespaceException
Deletes roles from the Owned Roles for the object.
Parameters:
roles - The RBSRole[] representing the owned roles to delete.
Throws:
SPIException -  
SnapinVetoException -  
NamespaceException -  
ComponentCreationException -  

getAllRoleAssociations

public RBSAssociation[] getAllRoleAssociations()
                                        throws SPIException,
                                               RBSException
Gets all Roles associated to this object; This includes Roles directly associated and roles that are inherited either from groups or containers.
Returns:
An array of RBSAssociation objects
Throws:
SPIException -  
com.novell.admin.ndssnapins.rbs.RBSException -  

getDirectRoleAssociations

public RBSAssociation[] getDirectRoleAssociations()
                                           throws SPIException,
                                                  RBSException
Gets all Roles direclty associated to this object;
Returns:
An array of RBSAssociation objects
Throws:
SPIException -  
com.novell.admin.ndssnapins.rbs.RBSException -  

setDirectRoleAssociations

public void setDirectRoleAssociations(RBSAssociation[] roles)
                               throws RBSException,
                                      SPIException,
                                      SnapinVetoException,
                                      NamespaceException,
                                      ComponentCreationException
Sets the directly associated roles for this object.
Parameters:
roles - An array of RBSAssociation objects
Throws:
SPIException -  
com.novell.admin.ndssnapins.rbs.RBSException -  
SnapinVetoException -  
NamespaceException -  

addDirectRoleAssociations

public void addDirectRoleAssociations(RBSAssociation[] assc)
                               throws SPIException,
                                      NamespaceException,
                                      ComponentCreationException
Adds to the directly associated roles for this object.
Parameters:
roles - An array of RBSAssociation objects
Throws:
SPIException -  
NamespaceException -  

deleteDirectRoleAssociations

public void deleteDirectRoleAssociations(RBSAssociation[] assc)
                                  throws SPIException,
                                         NamespaceException,
                                         ComponentCreationException,
                                         RBSException
Deletes assocations from this object.
Parameters:
roles - An array of RBSAssociation objects
Throws:
SPIException -  
NamespaceException -  

modifyDirectRoleAssociations

public void modifyDirectRoleAssociations(RBSAssociation[] assc)
                                  throws SPIException,
                                         NamespaceException
Modifies an existing assocation of the object; this only modifies the Role object's start, stop, and scope.
Parameters:
roles - An array of RBSAssociation objects
Throws:
SPIException -  
NamespaceException -  

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.