org.apache.oozie.service
Class GroupsService
java.lang.Object
org.apache.oozie.service.GroupsService
- All Implemented Interfaces:
- Service
public class GroupsService
- extends Object
- implements Service
The GroupsService class delegates to the Hadoop's org.apache.hadoop.security.Groups
to retrieve the groups a user belongs to.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONF_PREFIX
public static final String CONF_PREFIX
- See Also:
- Constant Field Values
GroupsService
public GroupsService()
getInterface
public Class<? extends Service> getInterface()
- Returns the service interface.
- Specified by:
getInterface
in interface Service
- Returns:
GroupService
init
public void init(Services services)
- Initializes the service.
- Specified by:
init
in interface Service
- Parameters:
services
- services singleton initializing the service.
destroy
public void destroy()
- Destroys the service.
- Specified by:
destroy
in interface Service
getGroups
public List<String> getGroups(String user)
throws IOException
- Returns the list of groups a user belongs to.
- Parameters:
user
- user name.
- Returns:
- the groups the given user belongs to.
- Throws:
IOException
- thrown if there was an error retrieving the groups of the user.
Copyright © 2013 Apache Software Foundation. All Rights Reserved.