|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@RolesAllowed(value="Admin.SystemAdmin") public interface ServerSecurityAdmin
Interface that exposes MetaMatrix security system for administration.
Clients should not code directly to this interface but should instead use ServerAdmin.
| Method Summary | |
|---|---|
void |
assignRoleToGroup(java.lang.String roleIdentifier,
java.lang.String groupIdentifier)
Assign to the given Group the given Administrative Role. |
boolean |
authenticateUser(java.lang.String username,
char[] credentials,
java.io.Serializable trustePayload,
java.lang.String applicationName)
Authenticate a user with the specified user name and credentials for use with the specified application. |
char[] |
exportDataRoles(java.lang.String vdbName,
java.lang.String vdbVersion)
Export the data roles defined for the given vdb from the current system |
java.util.List<java.lang.String> |
getDomainNames()
Returns the active authorization provider domain names, in authentication order. |
java.util.Collection<Group> |
getGroups(java.lang.String groupIdentifier)
Get the group denoted by the given groupIdentifier. |
java.util.Collection<Group> |
getGroupsForDomain(java.lang.String domainName)
Return the Groups for a given domain. |
java.util.Collection<Group> |
getGroupsForUser(java.lang.String userIdentifier)
Get the group memberships for the given user. |
java.util.Collection<Role> |
getRolesForGroup(java.lang.String groupIdentifier)
Get the Collection of administrative role names possessed by the given group, if any. |
java.util.Collection<Role> |
getRolesForUser(java.lang.String userIdentifier)
Get the Collection of administrative role names possessed by the given user, if any. |
java.lang.String |
importDataRoles(java.lang.String vdbName,
java.lang.String vdbVersion,
char[] data,
AdminOptions options)
Import the data Roles for given vdb and version into the connected server |
void |
removeRoleFromGroup(java.lang.String roleIdentifier,
java.lang.String groupIdentifier)
Remove an administrative role from the given Group. |
| Method Detail |
|---|
java.util.Collection<Role> getRolesForGroup(java.lang.String groupIdentifier)
throws AdminException
groupIdentifier - The unique identifier for the Group. This is group name. A user is a Principal and a
Principal name is considered to be unique throughout the MetaMatrix system across all Membership domains.
The WILDCARD cannot be used here.
Roles.
AdminException - if there's a system error.
java.util.Collection<Role> getRolesForUser(java.lang.String userIdentifier)
throws AdminException
userIdentifier - The unique identifier for the user. This is generally a user name. A user is a Principal and a
Principal name is considered to be unique throughout the MetaMatrix system across all Membership domains.
The WILDCARD cannot be used here.
Roles
AdminException - if there's a system error.
java.util.Collection<Group> getGroupsForUser(java.lang.String userIdentifier)
throws AdminException
userIdentifier - The unique identifier for the user. This is generally a user name. A user is a Principal and a
Principal name is considered to be unique throughout the MetaMatrix system across all Membership domains.
The WILDCARD cannot be used here.
AdminException - if there's a system error.
java.util.Collection<Group> getGroups(java.lang.String groupIdentifier)
throws AdminException
groupIdentifier.
groupIdentifier - The unique identifier for the Group. This is generally a group name. A group is a Principal and
a Principal name is considered to be unique throughout the MetaMatrix system across all Membership domains. WILDCARD identifier, all all users in the system will
retrieved.
AdminException - if there's a system error.
void assignRoleToGroup(java.lang.String roleIdentifier,
java.lang.String groupIdentifier)
throws AdminException
Group the given Administrative Role.
roleIdentifier - one of AdminRoles.groupIdentifier - the unique identifier for the Principal. The WILDCARD cannot be used here.
AdminException - if there's a system error.
void removeRoleFromGroup(java.lang.String roleIdentifier,
java.lang.String groupIdentifier)
throws AdminException
Group.
roleIdentifier - one of AdminRolesgroupIdentifier - the unique identifier for the Principal. The WILDCARD cannot be used here.
AdminException - if there's a system error.
java.lang.String importDataRoles(java.lang.String vdbName,
java.lang.String vdbVersion,
char[] data,
AdminOptions options)
throws AdminException
vdbName - - target name of the VDB, the roles to be imported undervdbVersion - - target version of the vdb, the roles to be imported underdata - - character data array containing the XML file which defines the rolesoptions - - options to overwrite in case the matching roles already exist.
AdminException
char[] exportDataRoles(java.lang.String vdbName,
java.lang.String vdbVersion)
throws AdminException
vdbName - - Name of the vdbvdbVersion - - version of the vdb
AdminException
boolean authenticateUser(java.lang.String username,
char[] credentials,
java.io.Serializable trustePayload,
java.lang.String applicationName)
throws AdminException
username - the user name that is to be authenticatedcredential - trustePayload - applicationName - the name of the application for which the user
is authenticating
AdminException
java.util.List<java.lang.String> getDomainNames()
throws AdminException
AdminException
java.util.Collection<Group> getGroupsForDomain(java.lang.String domainName)
throws AdminException
Groups for a given domain. The domain name must be an specified
exactly. See #getActiveDomainNames() for possible domain names.
domainName -
AdminException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||