|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SpaceGroupManager
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)
|
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,
java.lang.String licenseKey)
Stores a license key against a given SpaceGroup |
Method Detail |
---|
SpaceGroup createSpaceGroup(java.lang.String key, java.lang.String name)
SpaceGroup createSpaceGroup(java.lang.String key, java.lang.String name, java.lang.String creatorName)
void saveSpaceGroup(SpaceGroup spaceGroup)
void removeSpaceGroup(SpaceGroup spaceGroup, boolean removeSpaces)
SpaceGroup getSpaceGroup(long id)
id
- the ID of the space
SpaceGroup getSpaceGroup(java.lang.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, java.lang.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)
java.util.List getSpaceGroups()
com.atlassian.license.License getLicenseForSpaceGroup(java.lang.String spaceGroupKey)
spaceGroupKey
- key of the space group
com.atlassian.license.License getLicenseForSpace(java.lang.String spaceKey)
spaceKey
- key of the space
java.util.Set<SpaceGroup> getSpaceGroupsForUser(java.lang.String username)
java.lang.IllegalArgumentException
- if username is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |