|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.dqp.embedded.admin.DQPSecurityAdminImpl
public class DQPSecurityAdminImpl
Constructor Summary | |
---|---|
DQPSecurityAdminImpl(EmbeddedConnectionFactoryImpl manager)
|
Method Summary | |
---|---|
protected AdminException |
accumulateProcessingException(AdminException parent,
java.lang.Exception e)
|
protected AdminException |
accumulateSystemException(AdminException parent,
java.lang.Exception e)
|
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. |
protected void |
changeVDBStatus(java.lang.String name,
java.lang.String version,
int status)
|
protected java.util.Collection |
convertPropertyDefinitions(ComponentType ctype,
java.util.Properties properties)
Convert a ComponentType and a set of properties into a Collection of com.metamatrix.admin.api.objects.PropertyDefinition objects |
protected java.util.Collection |
convertPropertyDefinitions(java.util.Properties properties)
Convert a set of properties into a Collection of com.metamatrix.admin.api.objects.PropertyDefinition objects |
protected java.lang.Object |
convertToAdminObjects(java.lang.Object src)
|
protected java.lang.Object |
convertToAdminObjects(java.lang.Object src,
java.lang.Object parent)
|
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 Group s for a given domain. |
java.util.Collection<Group> |
getGroupsForUser(java.lang.String userIdentifier)
Get the group memberships for the given user. |
EmbeddedConnectionFactoryImpl |
getManager()
|
java.util.Collection |
getRolesForGroup(java.lang.String groupIdentifier)
Get the Collection of administrative role names possessed by the given group, if any. |
java.lang.String |
importDataRoles(java.lang.String vdbName,
java.lang.String vdbVersion,
char[] xmlContents,
AdminOptions options)
Import the data Roles for given vdb and version into the connected server |
protected java.lang.String |
prettyPrintBindingNames(java.util.List bindings)
|
void |
removeRoleFromGroup(java.lang.String roleIdentifier,
java.lang.String groupIdentifier)
Remove an administrative role from the given Group . |
protected SessionToken |
validateSession()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DQPSecurityAdminImpl(EmbeddedConnectionFactoryImpl manager)
Method Detail |
---|
public void assignRoleToGroup(java.lang.String roleIdentifier, java.lang.String groupIdentifier) throws AdminException
SecurityAdmin
Group
the given Administrative Role.
assignRoleToGroup
in interface SecurityAdmin
roleIdentifier
- one of AdminRoles
.groupIdentifier
- the unique identifier for the Group. The WILDCARD
cannot be used here.
AdminException
- if there's a system error.com.metamatrix.admin.api.server.ServerSecurityAdmin#addRoleToGroup(java.lang.String, java.lang.String)
public void removeRoleFromGroup(java.lang.String roleIdentifier, java.lang.String groupIdentifier) throws AdminException
SecurityAdmin
Group
.
removeRoleFromGroup
in interface SecurityAdmin
roleIdentifier
- one of AdminRoles
groupIdentifier
- the unique identifier for the group. The WILDCARD
cannot be used here.
AdminException
- if there's a system error.ServerSecurityAdmin.removeRoleFromGroup(java.lang.String, java.lang.String)
public boolean authenticateUser(java.lang.String username, char[] credentials, java.io.Serializable trustePayload, java.lang.String applicationName) throws AdminException
SecurityAdmin
authenticateUser
in interface SecurityAdmin
username
- the user name that is to be authenticatedapplicationName
- the name of the application for which the user
is authenticating
AdminException
public java.util.Collection<Group> getGroupsForUser(java.lang.String userIdentifier) throws AdminException
SecurityAdmin
getGroupsForUser
in interface SecurityAdmin
userIdentifier
- The unique identifier for the user. This is generally a user name.
The WILDCARD
cannot be used here.
AdminException
- if there's a system error.com.metamatrix.admin.api.server.ServerSecurityAdmin#getGroupsForUser(java.lang.String, boolean)
public java.util.Collection<Group> getGroups(java.lang.String groupIdentifier) throws AdminException
SecurityAdmin
groupIdentifier
.
getGroups
in interface SecurityAdmin
groupIdentifier
- The unique identifier for the Group
. This is generally a group name.
Note that by supplying the WILDCARD
identifier, all all groups in the system will
retrieved.
AdminException
- if there's a system error.ServerSecurityAdmin.getGroups(java.lang.String)
public java.util.Collection getRolesForGroup(java.lang.String groupIdentifier) throws AdminException
SecurityAdmin
getRolesForGroup
in interface SecurityAdmin
groupIdentifier
- The unique identifier for the Group
. This is group name.
The WILDCARD
cannot be used here.
Role
s.
AdminException
- if there's a system error.ServerSecurityAdmin.getRolesForGroup(java.lang.String)
public java.lang.String importDataRoles(java.lang.String vdbName, java.lang.String vdbVersion, char[] xmlContents, AdminOptions options) throws AdminException
SecurityAdmin
importDataRoles
in interface SecurityAdmin
vdbName
- - target name of the VDB, the roles to be imported undervdbVersion
- - target version of the vdb, the roles to be imported underxmlContents
- - character data array containing the XML file which defines the rolesoptions
- - options to overwrite in case the matching roles already exist.
AdminException
ServerSecurityAdmin.importDataRoles(java.lang.String, java.lang.String, char[], org.teiid.adminapi.AdminOptions)
public char[] exportDataRoles(java.lang.String vdbName, java.lang.String vdbVersion) throws AdminException
SecurityAdmin
exportDataRoles
in interface SecurityAdmin
vdbName
- - Name of the vdbvdbVersion
- - version of the vdb
AdminException
ServerSecurityAdmin.exportDataRoles(java.lang.String, java.lang.String)
public java.util.List<java.lang.String> getDomainNames() throws AdminException
SecurityAdmin
getDomainNames
in interface SecurityAdmin
AdminException
public java.util.Collection<Group> getGroupsForDomain(java.lang.String domainName) throws AdminException
SecurityAdmin
Group
s for a given domain. The domain name must be an specified
exactly. See #getActiveDomainNames()
for possible domain names.
getGroupsForDomain
in interface SecurityAdmin
AdminException
protected AdminException accumulateSystemException(AdminException parent, java.lang.Exception e)
protected AdminException accumulateProcessingException(AdminException parent, java.lang.Exception e)
protected java.lang.String prettyPrintBindingNames(java.util.List bindings)
public EmbeddedConnectionFactoryImpl getManager()
protected java.lang.Object convertToAdminObjects(java.lang.Object src)
protected java.lang.Object convertToAdminObjects(java.lang.Object src, java.lang.Object parent)
protected java.util.Collection convertPropertyDefinitions(ComponentType ctype, java.util.Properties properties)
ctype
- properties
-
protected java.util.Collection convertPropertyDefinitions(java.util.Properties properties)
ctype
- properties
-
protected SessionToken validateSession()
protected void changeVDBStatus(java.lang.String name, java.lang.String version, int status) throws AdminException
AdminException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |