|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SpaceGroupManager
Method Summary | |
---|---|
SpaceGroup |
createSpaceGroup(String key,
String name)
Create a Space Group |
SpaceGroup |
createSpaceGroup(String key,
String name,
String creatorName)
Create a space Group |
com.atlassian.license.License |
getLicenseForSpace(String spaceKey)
Get the license attached to the group of the space. |
com.atlassian.license.License |
getLicenseForSpaceGroup(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(String spaceGroupKey)
Retrieve a spaceGroup by its key. |
com.atlassian.license.License |
getSpaceGroupLicense(SpaceGroup spaceGroup)
Retrieves a license stored against a given SpaceGroup |
List |
getSpaceGroups()
Retrieves all SpaceGroups in the system |
Set<SpaceGroup> |
getSpaceGroupsForUser(String username)
|
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 |
setSpaceGroupLicense(SpaceGroup spaceGroup,
String licenseKey)
Stores a license key against a given SpaceGroup |
Method Detail |
---|
SpaceGroup createSpaceGroup(String key, String name)
SpaceGroup createSpaceGroup(String key, String name, String creatorName)
void saveSpaceGroup(SpaceGroup spaceGroup)
void removeSpaceGroup(SpaceGroup spaceGroup, boolean removeSpaces)
SpaceGroup getSpaceGroup(long id)
id
- the ID of the space
SpaceGroup getSpaceGroup(String spaceGroupKey)
spaceGroupKey
- the key of the spaceGroup to retrieve
com.atlassian.license.License getSpaceGroupLicense(SpaceGroup spaceGroup)
spaceGroup
- SpaceGroup to retrieve the License from
void setSpaceGroupLicense(SpaceGroup spaceGroup, String licenseKey) throws com.atlassian.license.LicenseException
spaceGroup
- SpaceGroup to store the license againstlicenseKey
- String of the license key
com.atlassian.license.LicenseException
- if the license cannot be stored.void removeSpaceGroupLicense(SpaceGroup spaceGroup)
List getSpaceGroups()
com.atlassian.license.License getLicenseForSpaceGroup(String spaceGroupKey)
spaceGroupKey
- key of the space group
com.atlassian.license.License getLicenseForSpace(String spaceKey)
spaceKey
- key of the space
Set<SpaceGroup> getSpaceGroupsForUser(String username)
IllegalArgumentException
- if username is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |