Package com.atlassian.confluence.spaces
Class DefaultSpaceGroupManager
- java.lang.Object
-
- com.atlassian.confluence.spaces.DefaultSpaceGroupManager
-
- All Implemented Interfaces:
SpaceGroupManager
@Deprecated public class DefaultSpaceGroupManager extends Object implements SpaceGroupManager
Deprecated.in 5.9.SpaceGroupand related classes likeSpaceGroupManagerandSpaceGroupComparatorwill be removed. Please do not use them.
-
-
Constructor Summary
Constructors Constructor Description DefaultSpaceGroupManager()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SpaceGroupcreateSpaceGroup(String key, String name)Deprecated.Create a Space GroupSpaceGroupcreateSpaceGroup(String key, String name, String creatorName)Deprecated.Create a space GroupSpaceGroupgetSpaceGroup(long id)Deprecated.Retrieve a space by its ID.SpaceGroupgetSpaceGroup(String spaceGroupKey)Deprecated.Retrieve a spaceGroup by its key.ListgetSpaceGroups()Deprecated.Retrieves all SpaceGroups in the systemSet<SpaceGroup>getSpaceGroupsForUser(String username)Deprecated.Currently this method will return a all spacegroups the user has access to.voidremoveSpaceGroup(SpaceGroup spaceGroup, boolean removeSpaces)Deprecated.Removes the spaceGroup without removing the space.voidsaveSpaceGroup(SpaceGroup spaceGroup)Deprecated.
-
-
-
Method Detail
-
createSpaceGroup
public SpaceGroup createSpaceGroup(String key, String name)
Deprecated.Description copied from interface:SpaceGroupManagerCreate a Space Group- Specified by:
createSpaceGroupin interfaceSpaceGroupManager
-
createSpaceGroup
public SpaceGroup createSpaceGroup(String key, String name, String creatorName)
Deprecated.Description copied from interface:SpaceGroupManagerCreate a space Group- Specified by:
createSpaceGroupin interfaceSpaceGroupManager
-
saveSpaceGroup
public void saveSpaceGroup(SpaceGroup spaceGroup)
Deprecated.- Specified by:
saveSpaceGroupin interfaceSpaceGroupManager
-
removeSpaceGroup
public void removeSpaceGroup(SpaceGroup spaceGroup, boolean removeSpaces)
Deprecated.Description copied from interface:SpaceGroupManagerRemoves the spaceGroup without removing the space. The contained spaces will be without a spaceGroup.- Specified by:
removeSpaceGroupin interfaceSpaceGroupManager
-
getSpaceGroup
public SpaceGroup getSpaceGroup(long id)
Deprecated.Description copied from interface:SpaceGroupManagerRetrieve a space by its ID. The space can be of any type.- Specified by:
getSpaceGroupin interfaceSpaceGroupManager- Parameters:
id- the ID of the space- Returns:
- the space, or null if no space exists with that id.
-
getSpaceGroup
public SpaceGroup getSpaceGroup(String spaceGroupKey)
Deprecated.Description copied from interface:SpaceGroupManagerRetrieve a spaceGroup by its key.- Specified by:
getSpaceGroupin interfaceSpaceGroupManager- Parameters:
spaceGroupKey- the key of the spaceGroup to retrieve- Returns:
- the spaceGroup, or null if no spaceGroup exists with that key
-
getSpaceGroups
public List getSpaceGroups()
Deprecated.Description copied from interface:SpaceGroupManagerRetrieves all SpaceGroups in the system- Specified by:
getSpaceGroupsin interfaceSpaceGroupManager- Returns:
- List of SpaceGroup objects
-
getSpaceGroupsForUser
public Set<SpaceGroup> getSpaceGroupsForUser(String username)
Deprecated.Currently this method will return a all spacegroups the user has access to. Not matter what permission they have.- Specified by:
getSpaceGroupsForUserin interfaceSpaceGroupManager- Parameters:
username- The name of the user- Returns:
- Set of
SpaceGroups
-
-