|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infoglue.cms.security.JNDIBasicAuthorizationModule
public class JNDIBasicAuthorizationModule
| Field Summary | |
|---|---|
protected java.util.Properties |
extraProperties
|
| Constructor Summary | |
|---|---|
JNDIBasicAuthorizationModule()
|
|
| Method Summary | |
|---|---|
java.util.List |
authorizeUser(java.lang.String userName)
This method gets a users roles |
void |
createInfoGlueGroup(GroupVO groupVO)
This method is used to create a new group. |
void |
createInfoGluePrincipal(SystemUserVO systemUserVO)
This method is used to create a new user. |
void |
createInfoGlueRole(RoleVO roleVO)
This method is used to create a new rol. |
void |
deleteInfoGlueGroup(java.lang.String groupName)
This method is used to delete an existing group. |
void |
deleteInfoGluePrincipal(java.lang.String userName)
This method is used to delete an existing user. |
void |
deleteInfoGlueRole(java.lang.String roleName)
This method is used to delete an existing role. |
InfoGlueGroup |
getAuthorizedInfoGlueGroup(java.lang.String groupName)
Gets an authorized InfoGlueGroup. |
InfoGlueGroup |
getAuthorizedInfoGlueGroup(java.lang.String groupName,
javax.naming.directory.DirContext ctx)
Gets an authorized InfoGlueGroup. |
InfoGluePrincipal |
getAuthorizedInfoGluePrincipal(java.lang.String userName)
Gets an authorized InfoGluePrincipal |
InfoGluePrincipal |
getAuthorizedInfoGluePrincipal(java.lang.String userName,
javax.naming.directory.DirContext ctx)
Gets an authorized InfoGluePrincipal |
InfoGlueRole |
getAuthorizedInfoGlueRole(java.lang.String roleName)
Gets an authorized InfoGlueRole. |
InfoGlueRole |
getAuthorizedInfoGlueRole(java.lang.String roleName,
javax.naming.directory.DirContext ctx)
Gets an authorized InfoGlueRole. |
javax.naming.directory.DirContext |
getContext()
This method gets a Context - either by an anonymous bind or a real bind |
javax.naming.directory.DirContext |
getContext(javax.naming.ldap.Control[] controls)
This method gets a Context - either by an anonymous bind or a real bind |
java.util.Properties |
getExtraProperties()
|
java.util.List |
getFilteredUsers(java.lang.String firstName,
java.lang.String lastName,
java.lang.String userName,
java.lang.String email,
java.lang.String[] roleIds)
This method is used to get a filtered list of all users. |
java.util.List |
getGroups()
This method returns a list of all groups available to InfoGlue. |
java.util.List |
getGroups(javax.naming.directory.DirContext ctx)
This method returns a list of all groups available to InfoGlue. |
protected java.util.List |
getGroups(java.lang.String userName)
Return a List of roles associated with the given User. |
protected java.util.List |
getGroups(java.lang.String userName,
javax.naming.directory.DirContext ctx)
Return a List of roles associated with the given User. |
java.util.List |
getGroupUsers(java.lang.String groupName)
Gets a list of users which is memebers of the given group |
java.util.List |
getGroupUsers(java.lang.String groupName,
javax.naming.directory.DirContext ctx)
Gets a list of users which is memebers of the given group |
java.util.List |
getRoles()
This method returns a list of all roles available to InfoGlue. |
java.util.List |
getRoles(javax.naming.directory.DirContext ctx)
This method gets a list of roles |
protected java.util.List |
getRoles(java.lang.String userName)
Return a List of roles associated with the given User. |
protected java.util.List |
getRoles(java.lang.String userName,
javax.naming.directory.DirContext ctx)
Return a List of roles associated with the given User. |
java.util.List |
getRoleUsers(java.lang.String roleName)
This method is used to fetch all users part of the named role. |
java.util.List |
getRoleUsers(java.lang.String roleName,
javax.naming.directory.DirContext ctx)
|
boolean |
getSupportCreate()
Gets is the implementing class can create as well as read |
boolean |
getSupportDelete()
Gets is the implementing class can delete as well as read |
boolean |
getSupportUpdate()
Gets is the implementing class can update as well as read |
java.lang.Object |
getTransactionObject()
|
protected java.util.Map |
getUserAttributes(java.lang.String userName)
Returns an attribute set which this user has. |
protected java.util.Map |
getUserAttributes(java.lang.String userName,
javax.naming.directory.DirContext ctx)
Returns an attribute set which this user has. |
java.util.List |
getUsers()
This method gets a list of users |
java.util.List |
getUsers(java.lang.String roleName)
This method is used to fetch all users part of the named role. |
void |
setExtraProperties(java.util.Properties properties)
|
void |
setTransactionObject(java.lang.Object transactionObject)
|
void |
updateInfoGlueGroup(GroupVO roleVO,
java.lang.String[] userNames)
This method is used to update an existing group. |
void |
updateInfoGluePrincipal(SystemUserVO systemUserVO,
java.lang.String[] roleNames,
java.lang.String[] groupNames)
This method is used to update an existing user. |
void |
updateInfoGluePrincipalPassword(java.lang.String userName)
This method is used to send out a newpassword to an existing users. |
void |
updateInfoGluePrincipalPassword(java.lang.String userName,
java.lang.String oldPassword,
java.lang.String newPassword)
This method is used to send out a newpassword to an existing users. |
void |
updateInfoGlueRole(RoleVO roleVO,
java.lang.String[] userNames)
This method is used to update an existing role. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Properties extraProperties
| Constructor Detail |
|---|
public JNDIBasicAuthorizationModule()
| Method Detail |
|---|
public boolean getSupportUpdate()
getSupportUpdate in interface AuthorizationModulepublic boolean getSupportDelete()
getSupportDelete in interface AuthorizationModulepublic boolean getSupportCreate()
getSupportCreate in interface AuthorizationModule
public javax.naming.directory.DirContext getContext()
throws java.lang.Exception
java.lang.Exception
public javax.naming.directory.DirContext getContext(javax.naming.ldap.Control[] controls)
throws java.lang.Exception
java.lang.Exception
public InfoGluePrincipal getAuthorizedInfoGluePrincipal(java.lang.String userName)
throws java.lang.Exception
getAuthorizedInfoGluePrincipal in interface AuthorizationModulejava.lang.Exception
public InfoGluePrincipal getAuthorizedInfoGluePrincipal(java.lang.String userName,
javax.naming.directory.DirContext ctx)
throws java.lang.Exception
java.lang.Exception
public InfoGlueRole getAuthorizedInfoGlueRole(java.lang.String roleName)
throws java.lang.Exception
getAuthorizedInfoGlueRole in interface AuthorizationModulejava.lang.Exception
public InfoGlueRole getAuthorizedInfoGlueRole(java.lang.String roleName,
javax.naming.directory.DirContext ctx)
throws java.lang.Exception
java.lang.Exception
public InfoGlueGroup getAuthorizedInfoGlueGroup(java.lang.String groupName)
throws java.lang.Exception
getAuthorizedInfoGlueGroup in interface AuthorizationModulejava.lang.Exception
public InfoGlueGroup getAuthorizedInfoGlueGroup(java.lang.String groupName,
javax.naming.directory.DirContext ctx)
throws java.lang.Exception
java.lang.Exception
public java.util.List authorizeUser(java.lang.String userName)
throws java.lang.Exception
authorizeUser in interface AuthorizationModulejava.lang.Exception
protected java.util.Map getUserAttributes(java.lang.String userName)
throws javax.naming.NamingException,
java.lang.Exception
context - The directory context we are searchinguser - The User to be checked
javax.naming.NamingException - if a directory server error occurs
java.lang.Exception
protected java.util.Map getUserAttributes(java.lang.String userName,
javax.naming.directory.DirContext ctx)
throws javax.naming.NamingException,
java.lang.Exception
context - The directory context we are searchinguser - The User to be checked
javax.naming.NamingException - if a directory server error occurs
java.lang.Exception
protected java.util.List getRoles(java.lang.String userName)
throws javax.naming.NamingException,
java.lang.Exception
context - The directory context we are searchinguser - The User to be checked
javax.naming.NamingException - if a directory server error occurs
java.lang.Exception
protected java.util.List getRoles(java.lang.String userName,
javax.naming.directory.DirContext ctx)
throws javax.naming.NamingException,
java.lang.Exception
context - The directory context we are searchinguser - The User to be checked
javax.naming.NamingException - if a directory server error occurs
java.lang.Exception
protected java.util.List getGroups(java.lang.String userName)
throws javax.naming.NamingException,
java.lang.Exception
context - The directory context we are searchinguser - The User to be checked
javax.naming.NamingException - if a directory server error occurs
java.lang.Exception
protected java.util.List getGroups(java.lang.String userName,
javax.naming.directory.DirContext ctx)
throws javax.naming.NamingException,
java.lang.Exception
context - The directory context we are searchinguser - The User to be checked
javax.naming.NamingException - if a directory server error occurs
java.lang.Exception
public java.util.List getRoles()
throws java.lang.Exception
getRoles in interface AuthorizationModulejava.lang.Exception
public java.util.List getRoles(javax.naming.directory.DirContext ctx)
throws java.lang.Exception
java.lang.Exception
public java.util.List getUsers()
throws java.lang.Exception
getUsers in interface AuthorizationModulejava.lang.Exception
public java.util.List getFilteredUsers(java.lang.String firstName,
java.lang.String lastName,
java.lang.String userName,
java.lang.String email,
java.lang.String[] roleIds)
throws SystemException,
Bug
AuthorizationModule
getFilteredUsers in interface AuthorizationModuleSystemException
Bug
public java.util.List getUsers(java.lang.String roleName)
throws java.lang.Exception
AuthorizationModule
getUsers in interface AuthorizationModulejava.lang.Exception
public java.util.List getRoleUsers(java.lang.String roleName)
throws java.lang.Exception
AuthorizationModule
getRoleUsers in interface AuthorizationModulejava.lang.Exception
public java.util.List getRoleUsers(java.lang.String roleName,
javax.naming.directory.DirContext ctx)
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Properties getExtraProperties()
getExtraProperties in interface AuthorizationModulepublic void setExtraProperties(java.util.Properties properties)
setExtraProperties in interface AuthorizationModulepublic void setTransactionObject(java.lang.Object transactionObject)
setTransactionObject in interface AuthorizationModulepublic java.lang.Object getTransactionObject()
getTransactionObject in interface AuthorizationModule
public java.util.List getGroups()
throws java.lang.Exception
getGroups in interface AuthorizationModulejava.lang.Exception
public java.util.List getGroups(javax.naming.directory.DirContext ctx)
throws java.lang.Exception
java.lang.Exception
public java.util.List getGroupUsers(java.lang.String groupName)
throws java.lang.Exception
getGroupUsers in interface AuthorizationModulejava.lang.Exception
public java.util.List getGroupUsers(java.lang.String groupName,
javax.naming.directory.DirContext ctx)
throws java.lang.Exception
java.lang.Exception
public void createInfoGluePrincipal(SystemUserVO systemUserVO)
throws java.lang.Exception
AuthorizationModule
createInfoGluePrincipal in interface AuthorizationModulejava.lang.Exception
public void updateInfoGluePrincipalPassword(java.lang.String userName)
throws java.lang.Exception
AuthorizationModule
updateInfoGluePrincipalPassword in interface AuthorizationModulejava.lang.Exception
public void updateInfoGluePrincipalPassword(java.lang.String userName,
java.lang.String oldPassword,
java.lang.String newPassword)
throws java.lang.Exception
AuthorizationModule
updateInfoGluePrincipalPassword in interface AuthorizationModulejava.lang.Exception
public void deleteInfoGluePrincipal(java.lang.String userName)
throws java.lang.Exception
AuthorizationModule
deleteInfoGluePrincipal in interface AuthorizationModulejava.lang.Exception
public void createInfoGlueRole(RoleVO roleVO)
throws java.lang.Exception
AuthorizationModule
createInfoGlueRole in interface AuthorizationModulejava.lang.Exception
public void updateInfoGlueRole(RoleVO roleVO,
java.lang.String[] userNames)
throws java.lang.Exception
AuthorizationModule
updateInfoGlueRole in interface AuthorizationModulejava.lang.Exception
public void deleteInfoGlueRole(java.lang.String roleName)
throws java.lang.Exception
AuthorizationModule
deleteInfoGlueRole in interface AuthorizationModulejava.lang.Exception
public void updateInfoGluePrincipal(SystemUserVO systemUserVO,
java.lang.String[] roleNames,
java.lang.String[] groupNames)
throws java.lang.Exception
AuthorizationModule
updateInfoGluePrincipal in interface AuthorizationModulejava.lang.Exception
public void createInfoGlueGroup(GroupVO groupVO)
throws java.lang.Exception
AuthorizationModule
createInfoGlueGroup in interface AuthorizationModulejava.lang.Exception
public void updateInfoGlueGroup(GroupVO roleVO,
java.lang.String[] userNames)
throws java.lang.Exception
AuthorizationModule
updateInfoGlueGroup in interface AuthorizationModulejava.lang.Exception
public void deleteInfoGlueGroup(java.lang.String groupName)
throws java.lang.Exception
AuthorizationModule
deleteInfoGlueGroup in interface AuthorizationModulejava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||