GroupMappingServiceProvider (Hadoop 0.20.2-cdh3u4 API)
Date: 2012-05-07

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

## org.apache.hadoop.security
Interface GroupMappingServiceProvider

All Known Implementing Classes:
  JniBasedUnixGroupsMapping, JniBasedUnixGroupsNetgroupMapping, ShellBasedUnixGroupsMapping, ShellBasedUnixGroupsNetgroupMapping

    public interface GroupMappingServiceProvider

An interface for the implementation of a user-to-groups mapping service used by `Groups`.

Method Summary
`void` | `cacheGroupsAdd(List<String> groups)` Caches the group user information
`void` | `cacheGroupsRefresh()` Refresh the cache of groups and user mapping
`List<String>` | `getGroups(String user)` Get all various group memberships of a given user.

Method Detail

### getGroups

    List<String> getGroups(String user)
                           throws IOException

  Get all various group memberships of a given user. Returns EMPTY list in case of non-existing user

  Parameters:
    `user` - User's name
  Returns:
    group memberships of user
  Throws:
    `IOException`

### cacheGroupsRefresh

    void cacheGroupsRefresh()
                            throws IOException

  Refresh the cache of groups and user mapping

  Throws:
    `IOException`

### cacheGroupsAdd

    void cacheGroupsAdd(List<String> groups)
                        throws IOException

  Caches the group user information

  Parameters:
    `groups` - list of groups to add to cache
  Throws:
    `IOException`

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

Copyright © 2009 The Apache Software Foundation