com.atlassian.crowd.plugin.rest.admin.controller
Class GroupsController

java.lang.Object
  extended by com.atlassian.crowd.plugin.rest.admin.controller.GroupsController

public class GroupsController
extends Object


Field Summary
protected  org.apache.log4j.Logger logger
           
 
Constructor Summary
GroupsController()
           
 
Method Summary
 void addGroup(Directory directory, RestGroup group)
          Adds a group to the directory in question, if the directory permissions allow.
 void deleteGroup(Directory directory, String groupName)
          Removes a group from the directory, if the directory permissions allow.
 RestGroup getGroup(Directory directory, String groupName)
          Returns the group with the specified name
 RestGroups getGroups(Directory directory, String searchTerm)
          Returns a list of groups in the directory that match the search term
 void setDirectoryManager(DirectoryManager directoryManager)
           
 void updateGroup(Directory directory, RestGroup group)
          Updates a group, based on their identifier, if directory permissions allow.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.log4j.Logger logger
Constructor Detail

GroupsController

public GroupsController()
Method Detail

getGroups

public RestGroups getGroups(Directory directory,
                            String searchTerm)
Returns a list of groups in the directory that match the search term

Parameters:
directory -
Returns:

getGroup

public RestGroup getGroup(Directory directory,
                          String groupName)
Returns the group with the specified name

Parameters:
groupName -
Returns:

addGroup

public void addGroup(Directory directory,
                     RestGroup group)
Adds a group to the directory in question, if the directory permissions allow.

Parameters:
directory -
group -

deleteGroup

public void deleteGroup(Directory directory,
                        String groupName)
Removes a group from the directory, if the directory permissions allow.

Parameters:
directory -
groupName -

updateGroup

public void updateGroup(Directory directory,
                        RestGroup group)
Updates a group, based on their identifier, if directory permissions allow.

Parameters:
directory -
group -

setDirectoryManager

public void setDirectoryManager(DirectoryManager directoryManager)


Copyright © 2010 Atlassian Pty Ltd. All Rights Reserved.