|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.api.security.Identity
public class Identity
This class represents an authenticated user's identity. This class has several convenient methods for querying the user's permeations over a specific operation.
Constructor Summary | |
---|---|
protected |
Identity()
default constructor, used by descendants |
|
Identity(java.lang.String aUserId,
java.util.Vector<Role> aRoles)
Public constructor used by the Registry |
|
Identity(java.util.Vector<java.lang.String> userAndGroups,
java.util.Vector<Role> roles)
public constructor used by LDAP authentication with enabled LDAP group support. |
Method Summary | |
---|---|
boolean |
canExecuteAL(java.lang.String aConfigId,
java.lang.String aAssemblyLine)
Check that the specific AssemblyLine could be started by the user. |
boolean |
canExecuteAll()
Returns whether specified user is allowed to execute everything. |
boolean |
canExecuteConfig(java.lang.String aConfigId)
Returns whether specified user is allowed to execute given configuration. |
boolean |
canExecuteConfigALs(java.lang.String aConfigId)
Returns whether specified user is allowed to execute assembly lines from a given configuration. |
boolean |
canReadAll()
Returns whether specified user is allowed to read everything. |
boolean |
canReadConfig(java.lang.String aConfigId)
Check that the specific configuration could be read by the user. |
java.lang.String[] |
getGroupIds()
Retrieves LDAP groups. |
java.util.Vector<Role> |
getRoles()
Retrieves assigned roles. |
java.lang.String |
getUserId()
Retrieves user ID. |
boolean |
isAdmin()
Verifies admin privileges. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Identity()
public Identity(java.lang.String aUserId, java.util.Vector<Role> aRoles)
Registry
aUserId
- the distinguished name of the useraRoles
- the list of roles the user have.public Identity(java.util.Vector<java.lang.String> userAndGroups, java.util.Vector<Role> roles)
userAndGroups
- Vector object containing the authenticating LDAP user as first
element and the groups of the user.roles
- Vector object containing the roles of the user and users'
groups in the User Registry.Method Detail |
---|
public java.lang.String getUserId()
public java.lang.String[] getGroupIds()
public java.util.Vector<Role> getRoles()
public boolean isAdmin()
public boolean canReadConfig(java.lang.String aConfigId)
aConfigId
- the configInstance identifier
public boolean canExecuteAL(java.lang.String aConfigId, java.lang.String aAssemblyLine)
aConfigId
- the configInstance that has this ALaAssemblyLine
- the name of the AL to check for
public boolean canExecuteConfigALs(java.lang.String aConfigId)
aConfigId
- the configInstance identifier
public boolean canExecuteConfig(java.lang.String aConfigId)
aConfigId
- the configInstance identifier
public boolean canExecuteAll()
public boolean canReadAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |