|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RoleUserRelationProvider
Among the interfaces of JReport security API, RoleUserProvider is used to
provide customized relation information among roles and users. In addition to getting
relation information among roles and users from customer's external security system,
this interface also provides the ability to modify relation information among roles
and users in customer's external security system.
| Method Summary | |
|---|---|
void |
addUserToRole(java.lang.String realmName,
java.lang.String roleName,
java.lang.String userName)
Associates a user with the specified role in customer's external security system. |
java.util.Iterator |
getUsersByRole(java.lang.String realmName,
java.lang.String roleName)
Gets user names which associate with the specified role from customer's external security system. |
boolean |
isEnableEdit()
Indicates whether customer's external security system will be modified by invoking some methods in RoleUserRelationProvider.In common cases, invokes addUserToRole() or removeUserFromRole() should take effect on
customer's external security system, and cause modification of external security
system, this method should return true in such cases. |
void |
removeUserFromRole(java.lang.String realmName,
java.lang.String roleName,
java.lang.String userName)
Removes association between the specified role and user in customer's external security system. |
| Method Detail |
|---|
java.util.Iterator getUsersByRole(java.lang.String realmName,
java.lang.String roleName)
throws NoSuchRoleException,
JRCustomerException
realmName - the realm name.roleName - the role name.
NoSuchRoleException - If there is no role with the specified role name in
customer's external security system.
JRCustomerException - If an error occurs during JReport server security
system invoking this method, and the implementation thinks this error should be thrown
to JReport server security system.
void addUserToRole(java.lang.String realmName,
java.lang.String roleName,
java.lang.String userName)
throws NoSuchRoleException,
NoSuchUserException,
UserExistsException,
JRCustomerException
realmName - the realm name.roleName - the role name which the user will associate withuserName - the user name which will associate with the specific role
NoSuchRoleException - If the specified role does not exist in
customer's external security system.
NoSuchUserException - If the specified user does not exist in
customer's external security system.
UserExistsException - If the user has associated with the specified role
in customer's external security system.
JRCustomerException - If an error occurs during JReport server security
system invoking this method, and the implementation thinks this error should be thrown
to JReport server security system.
void removeUserFromRole(java.lang.String realmName,
java.lang.String roleName,
java.lang.String userName)
throws NoSuchRoleException,
NoSuchUserException,
JRCustomerException
realmName - the realm name.roleName - the parent role name.userName - the user name.
NoSuchRoleException - If the specified role does not exist in
customer's external security system.
NoSuchUserException - If the specified user does not exist in
customer's external security system.
JRCustomerException - If an error occurs during JReport server security
system invoking this method, and the implementation thinks this error should be thrown
to JReport server security system.boolean isEnableEdit()
RoleUserRelationProvider.addUserToRole() or removeUserFromRole() should take effect on
customer's external security system, and cause modification of external security
system, this method should return true in such cases. If customer's external
security system will not be affected by invoking addUserToRole() or removeUserFromRole(),
this method should return false. isEditing() with parameter
SecurityWebAdaptor.ACTION_EDIT_RELATION_ROLE_USER in jet.server.api.SecurityWebAdaptor
is the same as this method's return value.
true if external security system will be affected by invoking
addUserToRole() or removeUserFromRole(), otherwise return false.SecurityWebAdaptor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||