|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface GroupProvider
Among the interfaces of JReport security API, GroupProvider is used to
provide customized information of the principal group, including relation information
between 2 groups. In addition to getting group information
from customer's external security system, this interface also provides the ability
to modify group information in customer's external security system.
| Field Summary | |
|---|---|
static java.lang.String |
TAG_GROUP_DESCRIPTION
Property of group, indicates the description of a group, the value is "group_description". |
static java.lang.String |
TAG_GROUP_NAME
Property of group, indicates group name, the value is "group_name". |
| Method Summary | |
|---|---|
void |
addGroup(java.lang.String realmName,
java.util.Properties props)
Adds a group into customer's external security system. |
void |
addSubGroup(java.lang.String realmName,
java.lang.String groupName,
java.lang.String subGroup)
Adds a sub-group into the specified parent group in customer's external security system. |
java.util.Iterator |
getAllGroups(java.lang.String realmName)
Gets all group names from customer's external security system. |
java.util.Properties |
getGroupProperties(java.lang.String realmName,
java.lang.String groupName)
Gets a Properties used to represent a group. |
java.util.Iterator |
getSubGroups(java.lang.String realmName,
java.lang.String groupName)
Gets sub-group names of the specified parent group from customer's external security system. |
boolean |
isEnableEdit()
Indicates whether customer's external security system will be modified by invoking some methods in GroupProvider.In common cases, invoking addGroup(), removeGroup(),
addSubGroup() or removeSubGroup() 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 |
removeGroup(java.lang.String realmName,
java.lang.String groupName)
Removes the specified group from customer's external security system. |
void |
removeSubGroup(java.lang.String realmName,
java.lang.String groupName,
java.lang.String subGroup)
Removes a sub-group from the specified parent group in customer's external security system. |
| Field Detail |
|---|
static final java.lang.String TAG_GROUP_NAME
String value that non-null, length is greater than zero.
static final java.lang.String TAG_GROUP_DESCRIPTION
String value.
| Method Detail |
|---|
java.util.Iterator getAllGroups(java.lang.String realmName)
throws JRCustomerException
realmName - the realm name.
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.
java.util.Properties getGroupProperties(java.lang.String realmName,
java.lang.String groupName)
throws NoSuchGroupException,
JRCustomerException
Properties used to represent a group.
realmName - the realm name.groupName - the group name.
Properties that represents a group. If a null
or an empty Properties is returned, it means there are no properties
for the specified group.
NoSuchGroupException - If there is no group with the specified 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.
java.util.Iterator getSubGroups(java.lang.String realmName,
java.lang.String groupName)
throws NoSuchGroupException,
JRCustomerException
realmName - the realm name.groupName - the parent group name.
NoSuchGroupException - If there is no group that has the specified parent group 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 addGroup(java.lang.String realmName,
java.util.Properties props)
throws GroupExistsException,
JRCustomerException
Properties.
realmName - the realm name.props - a Properties that represents a group.
GroupExistsException - If there is a group with the same 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 removeGroup(java.lang.String realmName,
java.lang.String groupName)
throws NoSuchGroupException,
JRCustomerException
realmName - the realm name.groupName - the group name to specify which group needs to be removed.
NoSuchGroupException - If there is no group with the specified name (indicated
by TAG_GROUP_NAME in props) 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 addSubGroup(java.lang.String realmName,
java.lang.String groupName,
java.lang.String subGroup)
throws NoSuchGroupException,
GroupExistsException,
JRCustomerException
realmName - the realm name.groupName - the parent group name which will be adding a sub-group to.subGroup - the sub-group name which will be added into the specified parent group
NoSuchGroupException - If the specified parent group or sub-group does not exist in
customer's external security system.
GroupExistsException - If the parent group contains a sub-group, which has the same name
as subGroup 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 removeSubGroup(java.lang.String realmName,
java.lang.String groupName,
java.lang.String subGroup)
throws NoSuchGroupException,
JRCustomerException
realmName - the realm name.groupName - the parent group name, from which a sub-group will be removed.subGroup - the sub-group name which will be removed from the specified parent group
NoSuchGroupException - If the specified parent group or sub-group 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()
GroupProvider.addGroup(), removeGroup(),
addSubGroup() or removeSubGroup() 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 addGroup(), removeGroup(),
addSubGroup() or removeSubGroup(), this method should return false. isEditing() with parameters
SecurityWebAdaptor.ACTION_ADD_GROUP
SecurityWebAdaptor.ACTION_REMOVE_GROUP
SecurityWebAdaptor.ACTION_EDIT_RELATION_GROUP_SUBGROUP
in jet.server.api.SecurityWebAdaptor
is the same as this method's return value.
true if external security system will be affected by invoking
addGroup(), removeGroup(),
addSubGroup() or removeSubGroup(), otherwise return false.SecurityWebAdaptor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||