|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AuthorizationAdmin
This is the basic interface that has to be implemented for persistence data store. It provides the necessary API for performing Administrative functions on the Authorization data. The Access Control Policy includes users, groups, authorizedViews and operations. This interface provides the necessary APIs to add, modify and delete access control data.
Here is some sample code showing how the AuthorizationAdmin might be used:
// Accessing AuthorizationAdmin via RMI
try
{
authAdmin = (AuthorizationAdmin) Naming. lookup ("//[NMSServer]/NmsAuthAdminAPI");
System.out.println ( "Successfully got the handle for AuthorizationAdmin");
}
catch (Exception remoteException)
{
System.out.println ( "Error in getting the handle for AuthorizationAdmin");
}
boolean result = authAdmin.createUser(userName,groupName,password);
// Accessing AuthorizationAdmin from the same JVM
authAdmin = (AuthorizationAdmin) NmsUtil.getAPI ("NmsAuthAdminAPI");
boolean result = authAdmin.createUser(userName,groupName,password);
// Accessing AuthorizationAdmin via RMIAccessAPI in the NMS RMI secure mode
try
{
RMIAccessAPI rmiApi = (RMIAccessAPI) Naming.lookup ("//[NMSServer]/RMIAccessAPI");
authAdmin = (AuthorizationAdmin) rmiApi.getAPI ( userName , password , "NmsAuthAdminAPI" );
boolean result = authAdmin.createUser(userName,groupName,password);
}
catch (Exception remoteException)
{
System.out.println ( "Error in getting the handle for AuthorizationAdmin");
}
The Access Control Policy includes users, groups,
authorizedViews and operations.
| user | An "User" represents the user configured for using an application. |
| group | A "Group" represents a role or a set of users assigned to perform specific set of tasks. |
| authorizedView | An "AuthorizedView" represents a subset of objects or instances. This is specified as a properties list which contains the property name and property value.The properties associated with the view will contain the access control information (or the match criteria). When an Object needs to be authorized,that objects properties are matched with those specified in the views.Access control for a group is applied by associating groups to views. |
| operation | An "Operation" is a task or a function that needs to be authorized. The authorization permission is specified by associating an Authorized View to Operations. |
| Method Summary | |
|---|---|
void |
addOperation(java.lang.String operationName,
java.lang.String parentOperationName)
Method to add an operation in the OperationsTree Hierarchy. |
void |
assignOperationToView(java.lang.String operationName,
AuthorizedViewObject authViewObj)
This method is used to associate an operation with an authorizedView. |
void |
assignOperationToView(java.lang.String operationName,
AuthorizedViewObject authViewObj,
boolean ifExclude)
This method is used to associate an operation with an authorizedView. |
void |
assignOperationToView(java.lang.String operationName,
java.lang.String authorizedViewName)
This method is used to associate an operation with an authorizedView. |
void |
assignOperationToView(java.lang.String operationName,
java.lang.String authorizedViewName,
boolean ifExclude)
This method is used to associate an operation with an authorizedView. |
void |
assignOperationToView(java.util.Vector operationNameVec,
AuthorizedViewObject authViewObj)
This method is used to associate a Vector of operationNames with an authorizedView. |
void |
assignOperationToView(java.util.Vector operationNameVec,
AuthorizedViewObject authViewObj,
boolean ifExclude)
This method is used to associate a Vector of operationNames with an authorizedView. |
void |
assignOperationToView(java.util.Vector operationNameVec,
java.lang.String authorizedViewName)
This method is used to associate a Vector of operationNames with an authorizedView. |
void |
assignOperationToView(java.util.Vector operationNameVec,
java.lang.String authorizedViewName,
boolean ifExclude)
This method is used to associate a Vector of operationNames with an authorizedView. |
void |
assignOperationToViewAndGroup(java.lang.String groupName,
java.lang.String authorizedViewName,
java.lang.String operationName)
This method is used to associate an operation with an AuthorizedView and assign the AuthorizedView to a Group. |
void |
assignOperationToViewAndGroup(java.lang.String groupName,
java.lang.String authorizedViewName,
java.lang.String operationName,
boolean ifExclude)
This method is used to associate an operation with an AuthorizedView and assign the AuthorizedView to a Group. |
boolean |
assignUserToGroup(java.lang.String userName,
java.lang.String groupName)
This method is used to associate an user with a group. |
boolean |
assignUserToGroup(java.lang.String userName,
java.lang.String groupName,
java.lang.String ownerName)
This method is used to associate an user with a group and owner. |
boolean |
assignUserToGroup(java.lang.String userName,
java.util.Vector groupNames)
This method is used to associate a user to the groups specified as a vector. |
void |
assignUserToGroup(java.util.Vector vecOfUserName,
java.lang.String groupName)
This method is used to associate list of users to a group specified. |
void |
assignViewToGroup(java.lang.String groupName,
AuthorizedViewObject authViewObj)
This method is used to associate an AuthorizedView to a group. |
void |
assignViewToGroup(java.lang.String groupName,
java.lang.String viewName)
This method is used to associate a AuthorizedView to a group. |
void |
assignViewToGroup(java.lang.String groupName,
java.lang.String viewName,
java.lang.String ownerName)
This method is used to associate a AuthorizedView to a group and owner. |
void |
assignViewToGroup(java.util.Vector groupNameVec,
java.lang.String viewName)
This method is used to associate an AuthorizedView with a number of groups. |
boolean |
changePassword(java.lang.String userName,
java.lang.String new_pass)
Method to change password without taking old_passowrd as an argument. |
boolean |
changePassword(java.lang.String userName,
java.lang.String old_pass,
java.lang.String new_pass)
Method to Change the PassWord for an User. |
void |
createAuthorizedView(AuthorizedViewObject authViewObj)
This method creates an AuthorizedView by taking AuthorizedViewObject as a parameter. |
void |
createAuthorizedView(java.util.Vector authViewObjVec)
This method creates an AuthorizedView by taking a vector of AuthorizedViewObject as a parameter. |
boolean |
createUser(java.lang.String userName,
java.lang.String groupName)
Method to create a new user and assign the same to a group. |
boolean |
createUser(java.lang.String userName,
java.lang.String groupName,
java.lang.String passwd)
Method to create a new user and assign to a group. |
boolean |
createUserForOwner(java.lang.String userName,
java.lang.String groupName,
java.lang.String ownerName)
Method to create a new user and assign the same to a group. |
boolean |
createUserForOwner(java.lang.String userName,
java.lang.String groupName,
java.lang.String passwd,
java.lang.String ownerName)
Method to create a new user and assign to a group. |
boolean |
deRegisterFromAllUpdates(AuthObserver obs)
To unregister from getting notifications,from the AuthorizationAdminAPI's. |
boolean |
deRegisterFromOperationUpdates(AuthObserver obs)
To unregister from getting operations notifications,from the AuthorizationAdminAPI's. |
boolean |
deRegisterFromUserUpdates(AuthObserver obs)
To unregister for the users notifications only from AuthorizationAdminAPI's, about database changes. |
java.util.Hashtable |
getAllAttributes(java.lang.String userName)
To get all attributes for the user. |
java.util.Vector |
getAllGroupNames(java.lang.String userName)
This method can be used to get a list of group names to which the user belongs. |
java.util.Vector |
getAllGroups()
This method is used to get All the groupnames available. |
java.util.Vector |
getAllOperations()
Method to get All operations as Vector of OperationObject. |
java.util.HashSet |
getAllUserNames()
This method is used to get all the user names available in the database as a part of authorizationData. |
java.util.Vector |
getAllViewNames(java.lang.String groupName)
Method to get all the AuthorizedViewNames associated for the specified group. |
java.lang.String |
getDescriptiveName(java.lang.String userName)
Method to get the Descriptive Name of an user's account. |
java.util.Hashtable |
getOperationsForView(java.lang.String viewName)
Method to get the exact operations assigned for a particular view. |
java.util.Hashtable |
getOperationsForViewInHash(java.lang.String viewName)
Method to get operations for the particular view. |
int |
getPasswordAge(java.lang.String userName)
Method to get the user's remaining password age. |
int |
getUserExpirationTime(java.lang.String userName)
Method to get the expiration time of the user. |
java.util.Vector |
getUsers(java.lang.String groupName)
Method to get all the users under the groupName. |
void |
init(java.lang.Object obj)
This Method is used for initialization, if any. |
boolean |
isUserNamePresent(java.lang.String userName)
This method verifies, if the userName is present. |
boolean |
isUserNamePresent(java.lang.String userName,
java.lang.String groupName)
This method verifies, if the userName is present. |
boolean |
registerForAllUpdates(AuthObserver obs)
To register for the notifications from AuthorizationAdminAPI's,about database changes. |
boolean |
registerForOperationUpdates(AuthObserver ob)
To register for the operations notifications only from AuthorizationAdminAPI about database changes. |
boolean |
registerForUserUpdates(AuthObserver ob)
To register for the users notifications only from AuthorizationAdminAPI's, about database changes. |
void |
removeAuthorizedView(AuthorizedViewObject authViewObj)
Removes an AuthorizedView by taking AuthorizedViewObject as a parameter. |
void |
removeOperation(java.lang.String operationName)
Method to remove an operation in the OperationsTree Hierarchy. |
void |
removeOperation(java.lang.String operationName,
java.lang.String parentOperationName)
Method to remove an operation in the OperationsTree Hierarchy. |
void |
removeOperation(java.util.Vector vecOfOperations)
Method to remove a Vector of operations in the OperationsTree Hierarchy. |
void |
removeOperationFromView(java.lang.String operationName,
java.lang.String authorizedViewName)
This method is used to disassociate an operation from the authorizedView. |
void |
removeOperationsFromView(java.util.Vector operationNameVector,
java.lang.String authorizedViewName)
This method is used to disassociate a Vector of operations from the specified authorizedView. |
void |
removeOwnerFromGroup(java.lang.String ownerName)
Method to remove all the user,group those have association with a particular user. |
void |
removeOwnerFromGroup(java.lang.String ownerName,
java.lang.String userName,
java.lang.String groupName)
Method to remove owner for a user who belogs to a particular group. |
void |
removeOwnerFromUser(java.lang.String ownerName)
Deprecated. as of WebNMS 5 |
void |
removeOwnerFromUser(java.lang.String ownerName,
java.lang.String userName)
Method to remove owner who has a particular user. |
void |
removeOwnerFromView(java.lang.String ownerName)
Deprecated. as of WebNMS 5 |
void |
removeOwnerFromView(java.lang.String ownerName,
java.lang.String viewName,
java.lang.String groupName)
Method to remove views,groups for a particular owner. |
boolean |
removeUser(java.lang.String userName)
Method to Remove the user from userPasswordTable. |
boolean |
removeUser(java.lang.String userName,
boolean removeTraces)
Method to remove the user from the database with all his dependencies. |
boolean |
removeUserFromGroup(java.lang.String userName,
java.lang.String groupName)
Method to Remove an user from a group. |
boolean |
removeUserFromGroup(java.lang.String userName,
java.util.Vector vecOfgroupName)
Method to Remove an user from a Vector of groups. |
void |
removeUserFromGroup(java.util.Vector vecOfUserName,
java.lang.String groupName)
Method to remove list of users, given as a Vector from a given group. |
void |
removeViewFromGroup(java.lang.String groupName,
AuthorizedViewObject authViewObj)
This method removes(disassociates) an AuthorizedView from a group. |
void |
removeViewFromGroup(java.lang.String groupName,
java.lang.String authorizedViewName)
This method removes(disassociates) an AuthorizedView from a group. |
void |
setDescriptiveName(java.lang.String userName,
java.lang.String descName)
Method to set the Descriptive Name for an user's account. |
void |
setPasswordAge(java.lang.String userName,
int passwdAgeInDays)
Method to set the user's password expiry time. |
void |
setUserExpirationTime(java.lang.String userName,
int noOfDays)
Method to set the expiration time for the users' account. |
void |
setUserStatus(java.lang.String userName,
java.lang.String status)
Method to update the user's status. |
void |
updateXML()
Method to update the securityDBData.xml file with the latest security data from database. |
| Method Detail |
|---|
void init(java.lang.Object obj)
throws java.rmi.RemoteException,
AuthorizationException
obj - Object used for initialization.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception.
boolean registerForAllUpdates(AuthObserver obs)
throws java.rmi.RemoteException
obs - The AuthObserver interface implementor object to which
notifications have to be sent.
java.rmi.RemoteException - In case of RMI.com.adventnet.security.authorization.AuthObserver.
boolean deRegisterFromAllUpdates(AuthObserver obs)
throws java.rmi.RemoteException
registerForAllUpdates(AuthObserver)
method.
obs - The AuthObserver interface implementor object which was
previously registered with the AuthorizationAdminAPI.
java.rmi.RemoteException - In case of RMI.AuthObserver,
registerForAllUpdates(AuthObserver)
boolean registerForUserUpdates(AuthObserver ob)
throws java.rmi.RemoteException
obs - The AuthObserver interface implementor object to which
notifications have to be sent.
java.rmi.RemoteException - In case of RMI.com.adventnet.security.authorization.AuthObserver.
boolean deRegisterFromUserUpdates(AuthObserver obs)
throws java.rmi.RemoteException
registerForUserUpdates(AuthObserver)
method.
obs - The AuthObserver interface implementor object which was
previously registered with the AuthorizationAdminAPI.
java.rmi.RemoteException - In case of RMI.AuthObserver,
registerForUserUpdates(AuthObserver)
boolean registerForOperationUpdates(AuthObserver ob)
throws java.rmi.RemoteException
obs - The AuthObserver interface implementor object to which
notifications have to be sent.
java.rmi.RemoteException - In case of RMI.com.adventnet.security.authorization.AuthObserver.
boolean deRegisterFromOperationUpdates(AuthObserver obs)
throws java.rmi.RemoteException
registerForOperationUpdates(AuthObserver)
method.
obs - The AuthObserver interface implementor object which was
previously registered with the AuthorizationAdminAPI.
java.rmi.RemoteException - In case of RMI.AuthObserver,
registerForOperationUpdates(AuthObserver)
boolean isUserNamePresent(java.lang.String userName)
throws java.rmi.RemoteException,
AuthorizationException
userName - The userName, to be used to verify, if it is present.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
boolean isUserNamePresent(java.lang.String userName,
java.lang.String groupName)
throws java.rmi.RemoteException,
AuthorizationException
userName - The userName to be used to verify if it is present.groupName - The groupName to be used to search for the userName.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
boolean createUser(java.lang.String userName,
java.lang.String groupName)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user to be created.groupName - The name of the group to which the user should
belong.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
boolean createUserForOwner(java.lang.String userName,
java.lang.String groupName,
java.lang.String ownerName)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user to be created.groupName - The name of the group to which the user should
belong.ownerName - The name of the owner.
Note: OwnerName should not be used in WebNMS,as it is not supported and if used/set
may result in undesirable results.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
boolean removeUser(java.lang.String userName)
throws java.rmi.RemoteException,
AuthorizationException
userName - the name of the user to be removed from
UserPasswordTable.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
boolean removeUserFromGroup(java.lang.String userName,
java.lang.String groupName)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user to be removed from the group.groupName - The name of the group from which the user needs
to be removed.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
boolean removeUserFromGroup(java.lang.String userName,
java.util.Vector vecOfgroupName)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user to be removed from groups.vecOfgroupName - The Vector of groupnames from which the user needs
to be removed.
java.rmi.RemoteException - In case of RMI
AuthorizationException - In case of any exceptions
or errors during database operation.
void removeUserFromGroup(java.util.Vector vecOfUserName,
java.lang.String groupName)
throws java.rmi.RemoteException,
AuthorizationException
vecOfUserName - Vector of group names.groupName - Group name.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of null parameter,
any exception or error during database operation.
void assignUserToGroup(java.util.Vector vecOfUserName,
java.lang.String groupName)
throws java.rmi.RemoteException,
AuthorizationException
vecOfUserName - The set of User Names, as a Vector need to associate with a GroupgroupName - The name of a group to which each user is supposed to be associated.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of null parameter,
any exception or error during database operation.
boolean changePassword(java.lang.String userName,
java.lang.String old_pass,
java.lang.String new_pass)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user who wants to change the Password.old_pass - The Old password for the user.new_pass - The New password for the user.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
boolean changePassword(java.lang.String userName,
java.lang.String new_pass)
throws java.rmi.RemoteException,
AuthorizationException
userName - Name of the user.new_pass - New Password for the user.
java.rmi.RemoteException - RemoteException In case of RMI.
AuthorizationException - AuthorizationException In case of null parameter,
any exception or error during database operation.
boolean assignUserToGroup(java.lang.String userName,
java.lang.String groupName)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user that is to be assoicated.groupName - The name of the group to which the user is
supposed to be associated.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
boolean assignUserToGroup(java.lang.String userName,
java.lang.String groupName,
java.lang.String ownerName)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user that is to be assoicated.groupName - The name of the group to which the user is
supposed to be associated.ownerName - The name of the owner.
Note: OwnerName should not be used in WebNMS,as it is not supported and if used/set
may result in undesirable results.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
boolean assignUserToGroup(java.lang.String userName,
java.util.Vector groupNames)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user that is to be assoicated.groupNames - The names of the group to which the user is
supposed to be associated. The group names are specified as a
vector.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void createAuthorizedView(AuthorizedViewObject authViewObj)
throws java.rmi.RemoteException,
AuthorizationException
authViewObj - The AuthorizedViewObject for creating authorizedView.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void createAuthorizedView(java.util.Vector authViewObjVec)
throws java.rmi.RemoteException,
AuthorizationException
authViewObjVec - A vector of AuthorizedViewObject for
creating authorizedView.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void removeAuthorizedView(AuthorizedViewObject authViewObj)
throws java.rmi.RemoteException,
AuthorizationException
authViewObj - The AuthorizedViewObject for creating authorizedView.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void assignViewToGroup(java.lang.String groupName,
java.lang.String viewName)
throws java.rmi.RemoteException,
AuthorizationException
groupName - the name of the group to which the view is to
be associated.viewName - The authorized view that is to be associated
to the group.
java.rmi.RemoteException - In case of RMI
AuthorizationException - In case of any exceptions
or errors during database operation.
void assignViewToGroup(java.lang.String groupName,
java.lang.String viewName,
java.lang.String ownerName)
throws java.rmi.RemoteException,
AuthorizationException
groupName - The name of the group to which the view is to
be associated.viewName - The authorized view that is to be associated
to the group.ownerName - The name of the owner.
Note: OwnerName should not be used in WebNMS,as it is not supported and if used/set
may result in undesirable results.
java.rmi.RemoteException - In case of RMI
AuthorizationException - In case of any exceptions
or errors during database operation.
void assignViewToGroup(java.lang.String groupName,
AuthorizedViewObject authViewObj)
throws java.rmi.RemoteException,
AuthorizationException
groupName - The name of the group to which the view is to
be associated.authViewObj - the AuthorizedViewObject that contains the
authorized viewName that is to be associated with the group.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void assignViewToGroup(java.util.Vector groupNameVec,
java.lang.String viewName)
throws java.rmi.RemoteException,
AuthorizationException
groupNameVec - A vector of groupNames to which the view is to
be associated.viewName - The authorized view that is to be associated
with the group.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void removeViewFromGroup(java.lang.String groupName,
java.lang.String authorizedViewName)
throws java.rmi.RemoteException,
AuthorizationException
groupName - The name of the group from which the AuthorizedView
is to be disassociated.authorizedViewName - The authorizedViewName that is to be
disassociated.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void removeViewFromGroup(java.lang.String groupName,
AuthorizedViewObject authViewObj)
throws java.rmi.RemoteException,
AuthorizationException
groupName - the name of the group from which the AuthorizedView
is to be disassociated.authViewObj - the AuthorizedViewObject containing the
AuthorizedViewName that is to be disassoicated
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void addOperation(java.lang.String operationName,
java.lang.String parentOperationName)
throws java.rmi.RemoteException,
AuthorizationException
operationName - The name of the operation that is to be
added into the operationsTree hierarchy.parentOperationName - The name of the parent operation under
which the operation, identified by operationName is to added
in the operationsTree hierarchy.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void removeOperation(java.lang.String operationName,
java.lang.String parentOperationName)
throws java.rmi.RemoteException,
AuthorizationException
operationName - The name of the operation that is to be
deleted from the operationsTree hierarchy.parentOperationName - The name of the parent operation under
which the operation, identified by operationName is to deleted
in the operationsTree hierarchy.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void removeOperation(java.lang.String operationName)
throws java.rmi.RemoteException,
AuthorizationException
operationName - The name of the operation that is to be
deleted from the operationsTree hierarchy.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void removeOperation(java.util.Vector vecOfOperations)
throws java.rmi.RemoteException,
AuthorizationException
vecOfOperations - The Vector of operations that is to be
deleted from the operationsTree hierarchy.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void assignOperationToView(java.lang.String operationName,
java.lang.String authorizedViewName)
throws java.rmi.RemoteException,
AuthorizationException
operationName - the name of the operation that is to be
associated with the AuthorizedView.authorizedViewName - the name of the AuthorizedView to which
the operation is to be associated.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void assignOperationToView(java.lang.String operationName,
java.lang.String authorizedViewName,
boolean ifExclude)
throws java.rmi.RemoteException,
AuthorizationException
operationName - the name of the operation that is to be
associated with the AuthorizedView.authorizedViewName - the name of the AuthorizedView to which
the operation is to be associated.ifExclude - If set to true, then the operation associated
with the AuthorizedView is disallowed.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void assignOperationToView(java.util.Vector operationNameVec,
java.lang.String authorizedViewName)
throws java.rmi.RemoteException,
AuthorizationException
operationNameVec - A vector of operation names (specified
as String) that is to be assoicated with the AuthorizedView.authorizedViewName - The name of the AuthorizedView to which
the operation is to be associated.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void assignOperationToView(java.util.Vector operationNameVec,
java.lang.String authorizedViewName,
boolean ifExclude)
throws java.rmi.RemoteException,
AuthorizationException
operationNameVec - A vector of operation names (specified
as String) that is to be assoicated with the AuthorizedView.authorizedViewName - The name of the AuthorizedView to which
the operation is to be associated.ifExclude - If set to true, then the operation associated
with the AuthorizedView is disallowed.
java.rmi.RemoteException - In case of RMI
AuthorizationException - In case of any exceptions
or errors during database operation.
void assignOperationToView(java.lang.String operationName,
AuthorizedViewObject authViewObj)
throws java.rmi.RemoteException,
AuthorizationException
operationName - The name of the operation that is to be
associated with the AuthorizedView.authViewObj - AuthorizedViewObjct (which contains the
AuthorizedViewName) to which the operation is to be associated.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void assignOperationToView(java.lang.String operationName,
AuthorizedViewObject authViewObj,
boolean ifExclude)
throws java.rmi.RemoteException,
AuthorizationException
operationName - The name of the operation that is to be
associated with the AuthorizedView.authViewObj - AuthorizedViewObject (which contains the
AuthorizedViewName) to which the operation is to be associated.ifExclude - If set to true, then the operation associated
with the AuthorizedView is disallowed.
java.rmi.RemoteException - In case of RMI
AuthorizationException - In case of any exception
or error during database operation.
void assignOperationToView(java.util.Vector operationNameVec,
AuthorizedViewObject authViewObj)
throws java.rmi.RemoteException,
AuthorizationException
operationNameVec - A vector of operation names (specified
as String) that is to be assoicated with the AuthorizedView in the
AuthorizedViewObject.authViewObj - AuthorizedViewObject (which contains the
AuthorizedViewName) to which the Vector of operations is to be
associated.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void assignOperationToView(java.util.Vector operationNameVec,
AuthorizedViewObject authViewObj,
boolean ifExclude)
throws java.rmi.RemoteException,
AuthorizationException
operationNameVec - A vector of operation names (specified
as String) that is to be assoicated with the AuthorizedView in the
AuthorizedViewObject.authViewObj - AuthorizedViewObject (which contains the
AuthorizedViewName) to which the Vector of operations is to be
associated.ifExclude - If set to true, then the operations associated
with the AuthorizedView is disallowed.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void assignOperationToViewAndGroup(java.lang.String groupName,
java.lang.String authorizedViewName,
java.lang.String operationName)
throws java.rmi.RemoteException,
AuthorizationException
groupName - The groupName to which the authorizedview is to
be assigned. If the groupName is not present, it is created.authorizedViewName - The name of the AuthorizedView that is
to be assoictaed with the group.operationName - The name of the operation that is to be associated
with the AuthorizedView.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void assignOperationToViewAndGroup(java.lang.String groupName,
java.lang.String authorizedViewName,
java.lang.String operationName,
boolean ifExclude)
throws java.rmi.RemoteException,
AuthorizationException
groupName - The groupName to which the authorizedview is to
be assigned. If the groupName is not present, it is created.authorizedViewName - The name of the AuthorizedView that is
to be associated with the group.operationName - The name of the operation that is to be associated
with the AuthorizedView.ifExclude - If set to true, then the operation associated
with the AuthorizedView is disallowed.
java.rmi.RemoteException - In case of RMI
AuthorizationException - In case of any exceptions
or errors during database operation.
void removeOperationFromView(java.lang.String operationName,
java.lang.String authorizedViewName)
throws java.rmi.RemoteException,
AuthorizationException
operationName - the name of the operation that needs to be
disassoicated.authorizedViewName - the name of the authorized view from which the operation needs to be disassociated.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void removeOperationsFromView(java.util.Vector operationNameVector,
java.lang.String authorizedViewName)
throws java.rmi.RemoteException,
AuthorizationException
operationNameVector - Vector of operations that needs to be
disassoicated.authorizedViewName - the name of the authorized view from which
the Vector of operation needs to be disassociated.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any Exception
or error during database operation.
java.util.HashSet getAllUserNames()
throws java.rmi.RemoteException,
AuthorizationException
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
java.util.Vector getAllGroups()
throws java.rmi.RemoteException,
AuthorizationException
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
java.util.Vector getAllGroupNames(java.lang.String userName)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user for which the groupnames
are required.
AuthorizationException - If there is any exception or
error during database operation
java.rmi.RemoteException - In case of RMI.
boolean createUser(java.lang.String userName,
java.lang.String groupName,
java.lang.String passwd)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user to be created.groupName - The name of the group to which the user should
belong.passwd - The password of the user to be created.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
boolean createUserForOwner(java.lang.String userName,
java.lang.String groupName,
java.lang.String passwd,
java.lang.String ownerName)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user to be created.groupName - The name of the group to which the user should
belong.passwd - The password of the user to be created.ownerName - The name of the owner.
Note: OwnerName should not be used in WebNMS,as it is not supported and if used/set
may result in undesirable results.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
java.util.Vector getUsers(java.lang.String groupName)
throws java.rmi.RemoteException,
AuthorizationException
groupName - the name of the group to which the users needed.
AuthorizationException - In case of any exception
or error during database operation.
java.rmi.RemoteException - In case of RMI.
java.util.Vector getAllViewNames(java.lang.String groupName)
throws java.rmi.RemoteException,
AuthorizationException
groupName - The groupName for which all the associated
authorized views are to be returned.
java.rmi.RemoteException - In case of RMI
AuthorizationException - In case of any exceptions
or errors during database operation.
void removeOwnerFromGroup(java.lang.String ownerName,
java.lang.String userName,
java.lang.String groupName)
throws java.rmi.RemoteException,
AuthorizationException
ownerName - The name of the owner.
Note: OwnerName should not be used in WebNMS,as it is not supported and if used/set
may result in undesirable results.userName - The name of the user.groupName - The name of the group to which the user belongs.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exceptions
or errors during database operation.
void removeOwnerFromGroup(java.lang.String ownerName)
throws java.rmi.RemoteException,
AuthorizationException
ownerName - The name of the owner who get removed.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exceptions
or errors during database operation.
void removeOwnerFromView(java.lang.String ownerName,
java.lang.String viewName,
java.lang.String groupName)
throws java.rmi.RemoteException,
AuthorizationException
ownerName - The name of the owner.
Note: OwnerName should not be used in WebNMS,as it is not supported and if used/set
may result in undesirable results.viewName - The name of the AuthorizedViewName.groupName - The name of the group which is assigned to that owner.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exceptions
or errors during database operation.
void removeOwnerFromView(java.lang.String ownerName)
throws java.rmi.RemoteException,
AuthorizationException
ownerName - The name of the owner who get removed.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exceptions
or errors during database operation.
void removeOwnerFromUser(java.lang.String ownerName,
java.lang.String userName)
throws java.rmi.RemoteException,
AuthorizationException
ownerName - The name of the owner.
Note: OwnerName should not be used in WebNMS,as it is not supported and if used/set
may result in undesirable results.userName - The name of the user.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exceptions
or errors during database operation.
void removeOwnerFromUser(java.lang.String ownerName)
throws java.rmi.RemoteException,
AuthorizationException
ownerName - The name of the owner.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exceptions
or errors during database operation.
boolean removeUser(java.lang.String userName,
boolean removeTraces)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user to be removed.removeTraces - true for removing group and views also.
java.rmi.RemoteException - RemoteException In case of RMI.
AuthorizationException - AuthorizationException In case of null parameter,
any exception or error during database operation.
java.util.Vector getAllOperations()
throws java.rmi.RemoteException,
AuthorizationException
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of null parameter,
any exception or error during database operation.
java.util.Hashtable getOperationsForViewInHash(java.lang.String viewName)
throws java.rmi.RemoteException,
AuthorizationException
viewName - The name of the authorizedView for which the operations
are going to be get.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of null parameter,
any exception or error during database operation.
java.util.Hashtable getOperationsForView(java.lang.String viewName)
throws java.rmi.RemoteException,
AuthorizationException
java.rmi.RemoteException - In case of RMI
AuthorizationException - in case of null parameter,
any Exception or Error during database operation.
void setUserStatus(java.lang.String userName,
java.lang.String status)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user.status - The status of the user that has to be stored in the
data storage.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void setPasswordAge(java.lang.String userName,
int passwdAgeInDays)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user.passwdAgeInDays - The expiry time of the user's password in days.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
int getPasswordAge(java.lang.String userName)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
java.util.Hashtable getAllAttributes(java.lang.String userName)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user.
java.rmi.RemoteException - In case of RMI.
AuthorizationException - In case of any exception
or error during database operation.
void setUserExpirationTime(java.lang.String userName,
int noOfDays)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user.noOfDays - The days in number to expire users' account.
AuthorizationException - In case of any exception or
error during database operation.
java.rmi.RemoteException - In case of RMI.
int getUserExpirationTime(java.lang.String userName)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user.
AuthorizationException - In case
of any exception or errors during database operation.
java.rmi.RemoteException - In case of RMI.
void updateXML()
throws java.rmi.RemoteException,
AuthorizationException
java.rmi.RemoteException - in case of RMI.
AuthorizationException - in case of any exception
or errors during database operation.
void setDescriptiveName(java.lang.String userName,
java.lang.String descName)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user.descName - Full Name of the user
AuthorizationException - In case of any exception or
error during database operation.
java.rmi.RemoteException - In case of RMI.
java.lang.String getDescriptiveName(java.lang.String userName)
throws java.rmi.RemoteException,
AuthorizationException
userName - The name of the user.
AuthorizationException - In case of any exception or
error during database operation.
java.rmi.RemoteException - In case of RMI.
|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||