|
|||||||||
| 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 info changed event from
customer's external security system. A SecurityListener is
implememented by JReport server, and is added to customer's implementation of
JReport security API by invoking
AuthenticationProvider.addSecurityListener(). If any security
info 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 fire to security listener which has added
into customer's implementation of JReport security API. JReport server will
refresh security system base 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 |
addPrincipal(java.lang.String realm,
java.lang.String principal,
int principalType)
Inform JReport server that a principal is added into customer's external security system, JReport server should update relevant info about this principal in security system in 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 secuirty system, JReport server should update relevant info about the new relation in security system in future. |
void |
removePrincipal(java.lang.String realm,
java.lang.String principal,
int principalType)
Inform JReport server that a principal is removed from customer's external security system, JReport server should update relevant info about this principal in security system in future. |
void |
removeRelation(java.lang.String realm,
java.lang.String parentPrincipal,
int parentPrincipalType,
java.lang.String subPrincipal,
int subPrincipalType)
Inform JReport server that a relation between 2 principals is removed in customer's external secuirty system, JReport server should update relevant info about the removed relation in security system in future. |
void |
updateAll(java.lang.String realmName)
Inform JReport server that all security info referred to 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)
Inform 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)
Inform 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 naemprincipal - principal nameprincipalType - the pricinpal 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 naemprincipal - principal nameprincipalType - the pricinpal 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 - version number of the resource, a valid version number
should be a positive integer, if versionNumber less than 1,
it means permission setting of the resouce which specified by resourcePath
is updated.
void updatePrivileges(java.lang.String realm,
java.lang.String principal,
int principalType)
realm - the realm nameprincipal - principal name, whose privileges have updatedprincipalType - the pricinpal type, value scope:
SecurityListener.PRINCIPAL_TYPE_USER,
SecurityListener.PRINCIPAL_TYPE_GROUP,
SecurityListener.PRINCIPAL_TYPE_ROLE.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||