Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.portal.identity.ldap
Class LDAPStaticRoleMembershipModuleImpl

    java.lang.Object
      org.jboss.portal.identity.service.IdentityModuleService
          org.jboss.portal.identity.service.MembershipModuleService
              org.jboss.portal.identity.ldap.LDAPMembershipModule
                  org.jboss.portal.identity.ldap.LDAPStaticRoleMembershipModuleImpl

All Implemented Interfaces:
  MembershipModule

    public class LDAPStaticRoleMembershipModuleImpl

extends LDAPMembershipModule

Version:
  $Revision: 1.1 $
Author:
  Boleslaw Dawidowicz

Field Summary

Fields inherited from class org.jboss.portal.identity.service.IdentityModuleService
`moduleType`

Constructor Summary
`LDAPStaticRoleMembershipModuleImpl()`

Method Summary
`void` | `assignRoles(User user, java.util.Set roles)` Creates a relationship beetween a user and set of roles.
`void` | `assignUsers(Role role, java.util.Set users)` Creates a relationship beetween a role and set of users.
`java.util.Set` | `findRoleMembers(java.lang.String roleName, int offset, int limit, java.lang.String userNameFilter)` Returns role members based on rolename - depreciated method ethod here only for compatibility with old RoleModule interface
`java.util.Set` | `getRoles(User user)` Return the set of role objects that a given user has.
`java.util.Set` | `getUsers(Role role)` Returns the set of user objects that a given role has.
`java.util.Set` | `getUsers(Role role, java.lang.String userNameFilter)`

Methods inherited from class org.jboss.portal.identity.ldap.LDAPMembershipModule
`getConnectionContext, getMemberAttributeID, getMembershipAttributeValue, getRoleModule, getUserModule, isMembershipAttributeRequired, isUidAttributeIsDN, setConnectionContext, start`

Methods inherited from class org.jboss.portal.identity.service.MembershipModuleService
`fireMembershipChangedEvent, fireMembershipChangedEvent, fireMembershipChangedEvent, getProfileInfo, setProfileInfo`

Methods inherited from class org.jboss.portal.identity.service.IdentityModuleService
`getConnectionJNDIName, getIdentityConfiguration, getIdentityContext, getIdentityEventBroadcaster, getInitOptions, getJndiBinder, getJNDIName, getModuleType, setConnectionJNDIName, setIdentityContext, setInitOptions, setJndiBinder, setJNDIName, setModuleType, stop`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### LDAPStaticRoleMembershipModuleImpl

    public LDAPStaticRoleMembershipModuleImpl()

Method Detail

### getRoles

    public java.util.Set getRoles(User user)
                           throws IdentityException

  Description copied from interface: `MembershipModule`
  Return the set of role objects that a given user has.

  Parameters:
    `user` - the user
  Returns:
    the set of roles of the specified user
  Throws:
    `IdentityException`

### getUsers

    public java.util.Set getUsers(Role role)
                           throws IdentityException

  Description copied from interface: `MembershipModule`
  Returns the set of user objects that a given role has.

  Returns:
  Throws:
    `IdentityException`

### getUsers

    public java.util.Set getUsers(Role role,
                                  java.lang.String userNameFilter)
                           throws IdentityException

  Throws:
    `IdentityException`

### assignUsers

    public void assignUsers(Role role,
                            java.util.Set users)
                     throws IdentityException

  Description copied from interface: `MembershipModule`
  Creates a relationship beetween a role and set of users. Other roles that have assotiontions with those users remain unaffected.

  Throws:
    `IdentityException`

### assignRoles

    public void assignRoles(User user,
                            java.util.Set roles)
                     throws IdentityException

  Description copied from interface: `MembershipModule`
  Creates a relationship beetween a user and set of roles. This operation will erase any other assotientions beetween the user and roles not specified in the provided set.

  Throws:
    `IdentityException`

### findRoleMembers

    public java.util.Set findRoleMembers(java.lang.String roleName,
                                         int offset,
                                         int limit,
                                         java.lang.String userNameFilter)
                                  throws IdentityException

  Description copied from interface: `MembershipModule`
  Returns role members based on rolename - depreciated method ethod here only for compatibility with old RoleModule interface

  Throws:
    `IdentityException`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD