|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SecurityListener
The listener interface for receiving security information changed events from
customer's external security system. A SecurityListener is
implemented by JReport server, and is added to customer's implementation of
JReport security API by invoking
AuthenticationProvider.addSecurityListener(). If any security
information in customer's external security system is changed, but the change is not
performed by customer's implementation of JReport security API, in this case
a security changed event should be fired to security listener which has been added
into customer's implementation of JReport security API. JReport server will
refresh security system based on the external security changed event.
| Field Summary | |
|---|---|
static int |
PRINCIPAL_TYPE_GROUP
PRINCIPAL_TYPE_GROUP Int identifier for principal type: group, value: 3. |
static int |
PRINCIPAL_TYPE_ROLE
PRINCIPAL_TYPE_ROLE Int identifier for principal type: role, value: 2. |
static int |
PRINCIPAL_TYPE_USER
PRINCIPAL_TYPE_USER Int identifier for principal type: user, value: 1. |
| Method Summary | |
|---|---|
void |
addOrganization(java.lang.String realm,
java.lang.String orgName)
|
void |
addPrincipal(java.lang.String realm,
java.lang.String principal,
int principalType)
Informs JReport server that a principal is added into customer's external security system, JReport server should update relevant information about this principal in security system in the future. |
void |
addRelation(java.lang.String realm,
java.lang.String parentPrincipal,
int parentPrincipalType,
java.lang.String subPrincipal,
int subPrincipalType)
Inform JReport server that a relation is created between 2 principals in customer's external security system, JReport server should update relevant information about the new relation in security system in the future. |
void |
removeOrganization(java.lang.String realm,
java.lang.String orgName)
|
void |
removePrincipal(java.lang.String realm,
java.lang.String principal,
int principalType)
Informs JReport server that a principal is removed from customer's external security system, JReport server should update relevant information about this principal in security system in the future. |
void |
removeRelation(java.lang.String realm,
java.lang.String parentPrincipal,
int parentPrincipalType,
java.lang.String subPrincipal,
int subPrincipalType)
Informs JReport server that a relation between 2 principals is removed from customer's external security system, JReport server should update relevant information about the removed relation in security system in the future. |
void |
updateAll(java.lang.String realmName)
Informs JReport server that all security information referred to the specified realm in JReport server should be updated according to customer's external security system. |
void |
updatePermissons(java.lang.String realm,
java.lang.String resourcePath,
int versionNumber)
Informs JReport server that permission setting of a specified resource/version is updated in customer's external security system. |
void |
updatePrivileges(java.lang.String realm,
java.lang.String principal,
int principalType)
Informs JReport server that privileges of a specified principal is updated in customer's external security system. |
| Field Detail |
|---|
static final int PRINCIPAL_TYPE_USER
static final int PRINCIPAL_TYPE_ROLE
static final int PRINCIPAL_TYPE_GROUP
| Method Detail |
|---|
void updateAll(java.lang.String realmName)
realmName - the realm name
void addPrincipal(java.lang.String realm,
java.lang.String principal,
int principalType)
realm - the realm nameprincipal - the principal nameprincipalType - the principal type, value scope:
SecurityListener.PRINCIPAL_TYPE_USER,
SecurityListener.PRINCIPAL_TYPE_GROUP,
SecurityListener.PRINCIPAL_TYPE_ROLE.
void removePrincipal(java.lang.String realm,
java.lang.String principal,
int principalType)
realm - the realm nameprincipal - the principal nameprincipalType - the principal type, value scope:
SecurityListener.PRINCIPAL_TYPE_USER,
SecurityListener.PRINCIPAL_TYPE_GROUP,
SecurityListener.PRINCIPAL_TYPE_ROLE.
void addRelation(java.lang.String realm,
java.lang.String parentPrincipal,
int parentPrincipalType,
java.lang.String subPrincipal,
int subPrincipalType)
realm - the realm nameparentPrincipal - the parent principal nameparentPrincipalType - the parent principal type, value scope:
SecurityListener.PRINCIPAL_TYPE_USER,
SecurityListener.PRINCIPAL_TYPE_GROUP,
SecurityListener.PRINCIPAL_TYPE_ROLE.subPrincipal - the sub-principal namesubPrincipalType - the sub-principal type, value scope:
SecurityListener.PRINCIPAL_TYPE_USER,
SecurityListener.PRINCIPAL_TYPE_GROUP,
SecurityListener.PRINCIPAL_TYPE_ROLE.
void removeRelation(java.lang.String realm,
java.lang.String parentPrincipal,
int parentPrincipalType,
java.lang.String subPrincipal,
int subPrincipalType)
realm - the realm nameparentPrincipal - the parent principal nameparentPrincipalType - the parent principal type, value scope:
SecurityListener.PRINCIPAL_TYPE_USER,
SecurityListener.PRINCIPAL_TYPE_GROUP,
SecurityListener.PRINCIPAL_TYPE_ROLE.subPrincipal - the sub-principal namesubPrincipalType - the sub-principal type, value scope:
SecurityListener.PRINCIPAL_TYPE_USER,
SecurityListener.PRINCIPAL_TYPE_GROUP,
SecurityListener.PRINCIPAL_TYPE_ROLE.
void updatePermissons(java.lang.String realm,
java.lang.String resourcePath,
int versionNumber)
realm - the realm nameresourcePath - the resource path to specify a resourceversionNumber - the version number of the resource. A valid version number
should be a positive integer. If versionNumber is less than 1,
it means permission setting of the resource specified by resourcePath
is updated.
void updatePrivileges(java.lang.String realm,
java.lang.String principal,
int principalType)
realm - the realm nameprincipal - the principal name, whose privileges have been updatedprincipalType - the principal type, value scope:
SecurityListener.PRINCIPAL_TYPE_USER,
SecurityListener.PRINCIPAL_TYPE_GROUP,
SecurityListener.PRINCIPAL_TYPE_ROLE.
void addOrganization(java.lang.String realm,
java.lang.String orgName)
void removeOrganization(java.lang.String realm,
java.lang.String orgName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||