|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RolePrivilegeProvider
Within interfaces of JReport security API, RolePrivilegeProvider is used to
provide customized privilege setting of role. Except getting role privilege setting
from customer's external security system, this interface also provide ability
to modify role privilege setting in customer's external security system.
Privilege is a credential that a special operation on JReport server, this operation
is not refer to any node in JReport server resource tree. Currently there are
2 types of privileges in JReport server: jet.cs.util.APIConst.PRIVILEGE_CREATE_ANALYSIS_REPORT
indicates credential to new/open an analysis report, jet.cs.util.APIConst.PRIVILEGE_PUBLISH_REPORT
indicates credential to deploy report/catalog to server, jet.cs.util.APIConst.PRIVILEGE_ACCESS_ADVANCED_PROPERTIES
indicates credential to access advance information
| Method Summary | |
|---|---|
java.util.Hashtable |
getRolePrivileges(java.lang.String realmName)
Get all roles' privilege setting from customer's external security system. |
boolean |
isEnableEdit()
Indicates whether customer's external security system will be modified by invoking some methods in RolePrivilegeProvider.In common cases, invokeing setRolePrivileges() should take effect on
customer's external security system, and cause modification of external security
system, this method should return true in such case. |
void |
setRolePrivileges(java.lang.String realmName,
java.lang.String roleName,
java.lang.String[] privileges)
Set a role's privileges in customer's external security system. |
| Method Detail |
|---|
java.util.Hashtable getRolePrivileges(java.lang.String realmName)
throws JRCustomerException
realmName - the realm name
Hashtable object to represent all roles'' privilege
setting. In the returned Hashtable, key is role name, value
is a String array, which may contain below strings:
jet.cs.util.APIConst.PRIVILEGE_CREATE_ANALYSIS_REPORT,
jet.cs.util.APIConst.PRIVILEGE_PUBLISH_REPORT and
jet.cs.util.APIConst.PRIVILEGE_ACCESS_ADVANCED_PROPERTIES
jet.cs.util.APIConst.PRIVILEGE_CREATE_ANALYSIS_REPORT
indicates credential to new/open an analysis report,
jet.cs.util.APIConst.PRIVILEGE_PUBLISH_REPORT
indicates credential to deploy report/catalog to server,
jet.cs.util.APIConst.PRIVILEGE_ACCESS_ADVANCED_PROPERTIES
indicates credential to access advance information
JRCustomerException - If an error occurs during JReport server security
system invoking this method, and the implementation think should throw this error
to JReport server security system.
void setRolePrivileges(java.lang.String realmName,
java.lang.String roleName,
java.lang.String[] privileges)
throws NoSuchRoleException,
JRCustomerException
realmName - the realm nameroleName - the role nameprivileges - A String array, which may contain below strings:
jet.cs.util.APIConst.PRIVILEGE_CREATE_ANALYSIS_REPORT,
jet.cs.util.APIConst.PRIVILEGE_PUBLISH_REPORT and
jet.cs.util.APIConst.PRIVILEGE_ACCESS_ADVANCED_PROPERTIES
jet.cs.util.APIConst.PRIVILEGE_CREATE_ANALYSIS_REPORT
indicates credential to new/open an analysis report,
jet.cs.util.APIConst.PRIVILEGE_PUBLISH_REPORT
indicates credential to deploy report/catalog to server,
jet.cs.util.APIConst.PRIVILEGE_ACCESS_ADVANCED_PROPERTIES
indicates credential to access advance information
NoSuchRoleException - If there is no a role has specified name in
customer's external security system.
JRCustomerException - If an error occurs during JReport server security
system invoking this method, and the implementation think should throw this error
to JReport server security system.boolean isEnableEdit()
RolePrivilegeProvider.setRolePrivileges() should take effect on
customer's external security system, and cause modification of external security
system, this method should return true in such case. If cusotmer's external
security system will not be affected by invoking setRolePrivileges(),
this method should return false. isEditing() with paramter
SecurityWebAdaptor.ACTION_EDIT_ROLE_PRIVILEGES in jet.server.api.SecurityWebAdaptor
is same with this method's return value.
true if external security system will be affected by invoking
setRolePrivileges(), otherwise return false.SecurityWebAdaptor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||