|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Method Summary | |
boolean |
canPerformAction(Action action)
Returns a boolean indicating whether a user is authorized to perform action. |
Organization[] |
getGovernmentOrganizations()
Returns the Government Organizations a user has access to. |
Organization[] |
getNonGovernmentOrganizations()
Returns the Non-Government Organizations a user has access to. |
Organization[] |
getOrganizations()
|
Role[] |
getRoles()
|
Role[] |
getRolesByOrganization(Organization targetOrg)
Returns the set of roles assigned to the user by the given organization. |
Role[] |
getRolesNotSecuredByOrganization()
Returns the set of roles assigned to the user that are not secured by organization. |
Organization |
getSelectedOrganization()
|
UserCredentials |
getUserCredentials()
|
boolean |
isUserInOrganization(Organization org)
Returns a boolean indicating whether a user is authorized to act on behalf of an Organization. |
boolean |
isUserInRole(Role role)
Returns a boolean indicating whether a user is authorized to act in the given role. |
void |
setSelectedOrganization(Organization selectedOrg)
Sets the selected organization. |
| Method Detail |
public UserCredentials getUserCredentials()
public Organization[] getOrganizations()
public Role[] getRoles()
public Role[] getRolesNotSecuredByOrganization()
public Role[] getRolesByOrganization(Organization targetOrg)
targetOrg - The target organization.
public boolean isUserInRole(Role role)
role - the name of a role
true if the user is authorized to act in the rolepublic boolean canPerformAction(Action action)
action - the target action
true if the user is authorized to perform actionpublic Organization getSelectedOrganization()
public void setSelectedOrganization(Organization selectedOrg)
selectedOrg - The selected organization.public Organization[] getGovernmentOrganizations()
public Organization[] getNonGovernmentOrganizations()
public boolean isUserInOrganization(Organization org)
org - the name of an organization
true if the user is authorized access Org Unit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||