|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SecurityStore
SecurityStore interface needs to be implemented for any class thats wants to provide implementation for the ArcGISSecurityStore. If your custom SecurityStore implementation needs certain connection parameters during runtime, you can inherit the ConnectParams class.
| Method Summary | |
|---|---|
void |
addRole(ArcGISSecurityRole role)
Add a role to the security store. |
void |
addRolesToUser(java.lang.String userName,
java.lang.String[] roleList)
Assign a list of roles to a particular user. |
void |
addUser(ArcGISSecurityUser user)
Add a user to the security store. |
void |
addUsersToRole(java.lang.String roleName,
java.lang.String[] userList)
Assign a role to a bunch of users. |
void |
close()
Closes the connection to the security store. |
void |
deleteRole(java.lang.String roleName)
Delete a role from the security store. |
void |
deleteRolesFromUser(java.lang.String userName,
java.lang.String[] roleList)
Delete a bunch of roles from a user. |
void |
deleteUser(java.lang.String userName)
Delete a user from the security store. |
void |
deleteUsersFromRole(java.lang.String roleName,
java.lang.String[] userList)
Delete a particular role from a bunch of users. |
java.lang.String |
forgotUserPassword(java.lang.String userName,
java.lang.String secretQuest,
java.lang.String secretAns)
Reset the user password if the answer to the secret question matches the one present in the security store. |
java.util.List<ArcGISSecurityRole> |
getAllRoles()
Return list of all the roles present in the security store. |
java.util.List<ArcGISSecurityUser> |
getAllUsers()
Return list of all the users present in the security store. |
ArcGISSecurityRole |
getRole(java.lang.String roleName)
Return information regarding a particular role from the security store. |
java.util.List<ArcGISSecurityRole> |
getRolesForUser(java.lang.String userName)
Return a list of roles that are assigned to a particular user. |
ArcGISSecurityUser |
getUser(java.lang.String userName)
Return information regarding a particular user from the security store. |
java.lang.String |
getUserSecretQuestion(java.lang.String userName)
Return the secret question for the particular user. |
java.util.List<ArcGISSecurityUser> |
getUsersForRole(java.lang.String roleName)
Return list of user who are assigned a particular role. |
void |
init(java.util.Map<java.lang.String,java.lang.String> paramsMap)
Initialize the SecurityStore implementation. |
boolean |
isReadOnly()
This method returns true if the datastore is ready only. |
void |
modifyRole(ArcGISSecurityRole role)
Modify the information for a role in the security store. |
void |
modifyUser(ArcGISSecurityUser user)
Modify the information for a user in the security store. |
void |
reinitialize()
Reinitialize the connection to data stores. |
boolean |
testConnection(java.util.Map<java.lang.String,java.lang.String> paramsMap)
Test the connection to the data store |
boolean |
validateUser(java.lang.String userName,
java.lang.String userPassword)
Check the user credentials with the information available in the security store. |
| Method Detail |
|---|
void init(java.util.Map<java.lang.String,java.lang.String> paramsMap)
throws ArcGISSecurityException
paramsMap - - connection parameters in a HashMap for the security data store
ArcGISSecurityException - - if connection cannot be initialized
void reinitialize()
throws ArcGISSecurityException
ArcGISSecurityException - - if connection cannot be initialized
boolean testConnection(java.util.Map<java.lang.String,java.lang.String> paramsMap)
throws ArcGISSecurityException
paramsMap - - connection parameters in a map for the security data store
ArcGISSecurityException - - if there is an error while connecting
to the security data storeboolean isReadOnly()
void close()
void addUser(ArcGISSecurityUser user)
throws ArcGISSecurityException
user - - reference to ArcGISSecurityUser object that contains
user information.
ArcGISSecurityException - - if user cannot be added
void deleteUser(java.lang.String userName)
throws ArcGISSecurityException
userName - - String identifier that uniquely identifies a user.
ArcGISSecurityException - - if the user cannot be deleted from the store.
void modifyUser(ArcGISSecurityUser user)
throws ArcGISSecurityException
user - - reference to ArcGISSecurityUser object thats contains
modified user information.
ArcGISSecurityException
ArcGISSecurityUser getUser(java.lang.String userName)
throws ArcGISSecurityException
userName - - String representing the unique identifier for a user.
ArcGISSecurityException - - if user information cannot be retrieved.
java.util.List<ArcGISSecurityUser> getAllUsers()
throws ArcGISSecurityException
ArcGISSecurityException - - if there is an error accessing user information
java.lang.String forgotUserPassword(java.lang.String userName,
java.lang.String secretQuest,
java.lang.String secretAns)
throws ArcGISSecurityException
userName - - String identifier that uniquely identifies a particular usersecretQuest - - String representing the secret question set for the usersecretAns - - String representing the answer to the secret question
ArcGISSecurityException - - if password cannot be reset
java.lang.String getUserSecretQuestion(java.lang.String userName)
throws ArcGISSecurityException
userName - - String identifier that uniquely identifies a particular user
ArcGISSecurityException - - if user information cannot be retrieved
void addRole(ArcGISSecurityRole role)
throws ArcGISSecurityException
role - - reference to the ArcGISSecurityRole object that contains the role
information.
ArcGISSecurityException - - if a new role cannot be added
void deleteRole(java.lang.String roleName)
throws ArcGISSecurityException
roleName - - String identifier that uniquely identifies a particular role
ArcGISSecurityException - - if a role cannot be deleted
void modifyRole(ArcGISSecurityRole role)
throws ArcGISSecurityException
role - - reference to the ArcGISSecurityRole object that contains the
modified role information.
ArcGISSecurityException - - if role information cannot be modified.
ArcGISSecurityRole getRole(java.lang.String roleName)
throws ArcGISSecurityException
roleName - - String representing the unique identifier for a role.
ArcGISSecurityException - - if role information cannot be retrieved.
java.util.List<ArcGISSecurityRole> getAllRoles()
throws ArcGISSecurityException
ArcGISSecurityException - - if there is an error accessing role information
void addUsersToRole(java.lang.String roleName,
java.lang.String[] userList)
throws ArcGISSecurityException
roleName - - String representing the particular role that is to be assigned.userList - - Array of strings containing the name of the user to whom this
role is to be assigned
ArcGISSecurityException - - if this role cannot be assigned to the users.
void addRolesToUser(java.lang.String userName,
java.lang.String[] roleList)
throws ArcGISSecurityException
userName - - String representing the particular role to whom these roles
are to be assigned.roleList - - Array of strings containing the name of the roles that are
to be assigned to the user.
ArcGISSecurityException - - if roles cannot be added to the user
void deleteUsersFromRole(java.lang.String roleName,
java.lang.String[] userList)
throws ArcGISSecurityException
roleName - - String representing the particular role thats is to be
deleted.userList - - Array of strings containing the name of the users from whom this role
is to be deleted.
ArcGISSecurityException - - if the role cannot be deleted from the list of users
void deleteRolesFromUser(java.lang.String userName,
java.lang.String[] roleList)
throws ArcGISSecurityException
userName - - String representing the particular user from whom the roles
are to be deleted.roleList - - Array of strings containing name of the roles that are to be
deleted from this user.
ArcGISSecurityException - - if roles cannot be deleted from the user
java.util.List<ArcGISSecurityUser> getUsersForRole(java.lang.String roleName)
throws ArcGISSecurityException
roleName - - String representing the role that is assigned to the
users.
ArcGISSecurityException - - if user list cannot be retrieved.
java.util.List<ArcGISSecurityRole> getRolesForUser(java.lang.String userName)
throws ArcGISSecurityException
userName - - String representing the user whose roles are to
be returned.
ArcGISSecurityException - - if role list cannot be retrieved
boolean validateUser(java.lang.String userName,
java.lang.String userPassword)
throws ArcGISSecurityException
userName - - String representing a particular useruserPassword - - String representing the user's password
ArcGISSecurityException - - if user information cannot be retrieved.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||