|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.spaces.DefaultSpaceGroupManager
public class DefaultSpaceGroupManager
Constructor Summary | |
---|---|
DefaultSpaceGroupManager()
|
Method Summary | |
---|---|
SpaceGroup |
createSpaceGroup(java.lang.String key,
java.lang.String name)
Create a Space Group |
SpaceGroup |
createSpaceGroup(java.lang.String key,
java.lang.String name,
java.lang.String creatorName)
Create a space Group |
com.atlassian.license.License |
getLicenseForSpace(java.lang.String spaceKey)
Get the license attached to the group of the space. |
com.atlassian.license.License |
getLicenseForSpaceGroup(java.lang.String spaceGroupKey)
Get the license attached to the space group and create a new license object |
SpaceGroup |
getSpaceGroup(long id)
Retrieve a space by its ID. |
SpaceGroup |
getSpaceGroup(java.lang.String spaceGroupKey)
Retrieve a spaceGroup by its key. |
com.atlassian.license.License |
getSpaceGroupLicense(SpaceGroup spaceGroup)
Retrieves a license stored against a given SpaceGroup |
java.util.List |
getSpaceGroups()
Retrieves all SpaceGroups in the system |
java.util.Set<SpaceGroup> |
getSpaceGroupsForUser(java.lang.String username)
Currently this method will return a all spacegroups the user has access to. |
void |
removeSpaceGroup(SpaceGroup spaceGroup,
boolean removeSpaces)
Removes the spaceGroup without removing the space. |
void |
removeSpaceGroupLicense(SpaceGroup spaceGroup)
Removes the license key from the given spaceGroup |
void |
saveSpaceGroup(SpaceGroup spaceGroup)
|
void |
setSpaceGroupDao(SpaceGroupDao spaceGroupDao)
|
void |
setSpaceGroupLicense(SpaceGroup spaceGroup,
java.lang.String licenseKey)
Stores a license key against a given SpaceGroup |
void |
setSpaceGroupPermissionManager(SpaceGroupPermissionManager spaceGroupPermissionManager)
|
void |
setSpaceManager(SpaceManager spaceManager)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSpaceGroupManager()
Method Detail |
---|
public SpaceGroup createSpaceGroup(java.lang.String key, java.lang.String name)
SpaceGroupManager
createSpaceGroup
in interface SpaceGroupManager
public SpaceGroup createSpaceGroup(java.lang.String key, java.lang.String name, java.lang.String creatorName)
SpaceGroupManager
createSpaceGroup
in interface SpaceGroupManager
public void saveSpaceGroup(SpaceGroup spaceGroup)
saveSpaceGroup
in interface SpaceGroupManager
public void removeSpaceGroup(SpaceGroup spaceGroup, boolean removeSpaces)
SpaceGroupManager
removeSpaceGroup
in interface SpaceGroupManager
public SpaceGroup getSpaceGroup(long id)
SpaceGroupManager
getSpaceGroup
in interface SpaceGroupManager
id
- the ID of the space
public SpaceGroup getSpaceGroup(java.lang.String spaceGroupKey)
SpaceGroupManager
getSpaceGroup
in interface SpaceGroupManager
spaceGroupKey
- the key of the spaceGroup to retrieve
public com.atlassian.license.License getSpaceGroupLicense(SpaceGroup spaceGroup)
SpaceGroupManager
getSpaceGroupLicense
in interface SpaceGroupManager
spaceGroup
- SpaceGroup to retrieve the License from
public void setSpaceGroupLicense(SpaceGroup spaceGroup, java.lang.String licenseKey) throws com.atlassian.license.LicenseException
SpaceGroupManager
setSpaceGroupLicense
in interface SpaceGroupManager
spaceGroup
- SpaceGroup to store the license againstlicenseKey
- String of the license key
com.atlassian.license.LicenseException
- if the license cannot be stored.public void removeSpaceGroupLicense(SpaceGroup spaceGroup)
SpaceGroupManager
removeSpaceGroupLicense
in interface SpaceGroupManager
public java.util.List getSpaceGroups()
SpaceGroupManager
getSpaceGroups
in interface SpaceGroupManager
public com.atlassian.license.License getLicenseForSpaceGroup(java.lang.String spaceGroupKey)
SpaceGroupManager
getLicenseForSpaceGroup
in interface SpaceGroupManager
spaceGroupKey
- key of the space group
public com.atlassian.license.License getLicenseForSpace(java.lang.String spaceKey)
SpaceGroupManager
getLicenseForSpace
in interface SpaceGroupManager
spaceKey
- key of the space
public java.util.Set<SpaceGroup> getSpaceGroupsForUser(java.lang.String username)
getSpaceGroupsForUser
in interface SpaceGroupManager
username
- The name of the user
SpaceGroup
spublic void setSpaceGroupDao(SpaceGroupDao spaceGroupDao)
public void setSpaceManager(SpaceManager spaceManager)
public void setSpaceGroupPermissionManager(SpaceGroupPermissionManager spaceGroupPermissionManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |