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.SpaceGroup
and related classes likeSpaceGroupManager
andSpaceGroupComparator
will 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 SpaceGroup
createSpaceGroup(String key, String name)
Deprecated.Create a Space GroupSpaceGroup
createSpaceGroup(String key, String name, String creatorName)
Deprecated.Create a space GroupSpaceGroup
getSpaceGroup(long id)
Deprecated.Retrieve a space by its ID.SpaceGroup
getSpaceGroup(String spaceGroupKey)
Deprecated.Retrieve a spaceGroup by its key.List
getSpaceGroups()
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.void
removeSpaceGroup(SpaceGroup spaceGroup, boolean removeSpaces)
Deprecated.Removes the spaceGroup without removing the space.void
saveSpaceGroup(SpaceGroup spaceGroup)
Deprecated.
-
-
-
Method Detail
-
createSpaceGroup
public SpaceGroup createSpaceGroup(String key, String name)
Deprecated.Description copied from interface:SpaceGroupManager
Create a Space Group- Specified by:
createSpaceGroup
in interfaceSpaceGroupManager
-
createSpaceGroup
public SpaceGroup createSpaceGroup(String key, String name, String creatorName)
Deprecated.Description copied from interface:SpaceGroupManager
Create a space Group- Specified by:
createSpaceGroup
in interfaceSpaceGroupManager
-
saveSpaceGroup
public void saveSpaceGroup(SpaceGroup spaceGroup)
Deprecated.- Specified by:
saveSpaceGroup
in interfaceSpaceGroupManager
-
removeSpaceGroup
public void removeSpaceGroup(SpaceGroup spaceGroup, boolean removeSpaces)
Deprecated.Description copied from interface:SpaceGroupManager
Removes the spaceGroup without removing the space. The contained spaces will be without a spaceGroup.- Specified by:
removeSpaceGroup
in interfaceSpaceGroupManager
-
getSpaceGroup
public SpaceGroup getSpaceGroup(long id)
Deprecated.Description copied from interface:SpaceGroupManager
Retrieve a space by its ID. The space can be of any type.- Specified by:
getSpaceGroup
in 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:SpaceGroupManager
Retrieve a spaceGroup by its key.- Specified by:
getSpaceGroup
in 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:SpaceGroupManager
Retrieves all SpaceGroups in the system- Specified by:
getSpaceGroups
in 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:
getSpaceGroupsForUser
in interfaceSpaceGroupManager
- Parameters:
username
- The name of the user- Returns:
- Set of
SpaceGroup
s
-
-