Class SpacesSoapService
- java.lang.Object
-
- com.atlassian.confluence.rpc.soap.services.SpacesSoapService
-
public class SpacesSoapService extends Object
This is the soap service that handles all of the 'space' type methods.Usually delegated from the ConfluenceSoapServiceImpl.
-
-
Constructor Summary
Constructors Constructor Description SpacesSoapService()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanaddAnonymousUsePermission()booleanaddAnonymousViewUserProfilePermission()booleanaddGlobalPermission(String permission, String remoteEntityName)booleanaddGlobalPermissions(String[] permissions, String remoteEntityName)booleanaddPermissionsToSpace(String[] permissions, String remoteEntityName, String spaceKey)booleanaddPermissionToSpace(String permission, String remoteEntityName, String spaceKey)Add a given permission for a particular group/user to the given space.RemoteSpaceaddPersonalSpace(RemoteSpace space, String username)RemoteSpaceaddPersonalSpaceWithDefaultPermissions(RemoteSpace space, String username)RemoteSpaceaddSpace(RemoteSpace space)RemoteSpaceGroupaddSpaceGroup(RemoteSpaceGroup spaceGroup)Deprecated.since 5.9.RemoteSpaceaddSpaceWithDefaultPermissions(RemoteSpace space)StringexportSpace(String spaceKey, String exportType)StringexportSpace(String spaceKey, String exportType, boolean exportAll)String[]getPermissions(String spaceKey)Returns permissions that the logged in user has on the space with the given key.String[]getPermissions(String spaceKey, String userName)Returns the permissions that the nominated user has on the space with the given key.RemoteSpacegetSpace(String spaceKey)RemoteSpaceGroupgetSpaceGroup(String spaceGroupKey)Deprecated.since 5.9.RemoteSpaceGroup[]getSpaceGroups()Deprecated.since 5.9.String[]getSpaceLevelPermissions()Get all fine grained Space Level Permissions so that they can be added remotely.RemoteSpacePermissionSetgetSpacePermissionSet(String spaceKey, String type)RemoteSpacePermissionSet[]getSpacePermissionSets(String spaceKey)RemoteSpaceSummary[]getSpaces()RemoteSpaceSummary[]getSpacesInGroup(String groupKey)Deprecated.since 5.9.StringgetSpaceStatus(String spaceKey)booleanremoveAnonymousUserPermission()booleanremoveAnonymousViewUserProfilePermission()booleanremoveGlobalPermission(String permission, String remoteEntityName)Removes a global permission from the user.booleanremovePermissionFromSpace(String permission, String remoteEntityName, String spaceKey)BooleanremoveSpace(String spaceKey)booleanremoveSpaceGroup(String spaceGroupKey)Deprecated.since 5.9.voidsetAnonymousUserPermissionsService(AnonymousUserPermissionsService anonymousUserPermissionsService)voidsetGateKeeper(GateKeeper gateKeeper)voidsetImportExportManager(ImportExportManager importExportManager)Deprecated.since 7.17.0 because ofImportExportManagerdeprecation.voidsetPageManager(PageManager pageManager)voidsetPermissionManager(PermissionManager permissionManager)voidsetPersonalInformationManager(PersonalInformationManager personalInformationManager)voidsetSetSpacePermissionChecker(SetSpacePermissionChecker setSpacePermissionChecker)voidsetSettingsManager(GlobalSettingsManager settingsManager)voidsetSoapServiceHelper(SoapServiceHelper soapServiceHelper)voidsetSpaceGroupManager(SpaceGroupManager spaceGroupManager)Deprecated.since 5.9.voidsetSpaceManager(SpaceManager spaceManager)voidsetSpacePermissionManager(SpacePermissionManager spacePermissionManager)voidsetSpaceStatus(String spaceKey, String newStatus)voidsetUserAccessor(UserAccessor userAccessor)voidsetWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)RemoteSpacestoreSpace(RemoteSpace remoteSpace)protected voidverifyPersonalSpaceCreation(ConfluenceUser user)Deprecated.since 4.2.7 will be removed in a future release
-
-
-
Method Detail
-
setUserAccessor
public void setUserAccessor(UserAccessor userAccessor)
-
setSpaceManager
public void setSpaceManager(SpaceManager spaceManager)
-
setPermissionManager
public void setPermissionManager(PermissionManager permissionManager)
-
setWikiStyleRenderer
public void setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
-
setSoapServiceHelper
public void setSoapServiceHelper(SoapServiceHelper soapServiceHelper)
-
setSpacePermissionManager
public void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
-
setPersonalInformationManager
public void setPersonalInformationManager(PersonalInformationManager personalInformationManager)
-
setPageManager
public void setPageManager(PageManager pageManager)
-
getSpaces
public RemoteSpaceSummary[] getSpaces()
-
getSpacesInGroup
@Deprecated public RemoteSpaceSummary[] getSpacesInGroup(String groupKey)
Deprecated.since 5.9.SpaceGroupand related classes likeSpaceGroupManagerandSpaceGroupComparatorwill be removed. Please do not use them.
-
getSpace
public RemoteSpace getSpace(String spaceKey) throws RemoteException
- Throws:
RemoteException
-
getPermissions
public String[] getPermissions(String spaceKey) throws RemoteException
Returns permissions that the logged in user has on the space with the given key.- Throws:
RemoteException
-
getSpacePermissionSets
public RemoteSpacePermissionSet[] getSpacePermissionSets(String spaceKey) throws RemoteException
- Throws:
RemoteException
-
getSpacePermissionSet
public RemoteSpacePermissionSet getSpacePermissionSet(String spaceKey, String type) throws RemoteException
- Throws:
RemoteException
-
getPermissions
public String[] getPermissions(String spaceKey, String userName) throws RemoteException
Returns the permissions that the nominated user has on the space with the given key.- Throws:
RemoteException
-
addSpaceWithDefaultPermissions
public RemoteSpace addSpaceWithDefaultPermissions(RemoteSpace space) throws RemoteException
- Throws:
RemoteException
-
addSpace
public RemoteSpace addSpace(RemoteSpace space) throws RemoteException
- Throws:
RemoteException
-
storeSpace
public RemoteSpace storeSpace(RemoteSpace remoteSpace) throws RemoteException
- Throws:
RemoteException
-
addSpaceGroup
@Deprecated public RemoteSpaceGroup addSpaceGroup(RemoteSpaceGroup spaceGroup) throws RemoteException
Deprecated.since 5.9.SpaceGroupand related classes likeSpaceGroupManagerandSpaceGroupComparatorwill be removed. Please do not use them.- Throws:
RemoteException
-
getSpaceGroup
@Deprecated public RemoteSpaceGroup getSpaceGroup(String spaceGroupKey) throws RemoteException
Deprecated.since 5.9.SpaceGroupand related classes likeSpaceGroupManagerandSpaceGroupComparatorwill be removed. Please do not use them.- Throws:
RemoteException
-
getSpaceGroups
@Deprecated public RemoteSpaceGroup[] getSpaceGroups() throws RemoteException
Deprecated.since 5.9.SpaceGroupand related classes likeSpaceGroupManagerandSpaceGroupComparatorwill be removed. Please do not use them.- Throws:
RemoteException
-
removeSpaceGroup
@Deprecated public boolean removeSpaceGroup(String spaceGroupKey) throws RemoteException
Deprecated.since 5.9.SpaceGroupand related classes likeSpaceGroupManagerandSpaceGroupComparatorwill be removed. Please do not use them.- Throws:
RemoteException
-
verifyPersonalSpaceCreation
@Deprecated protected void verifyPersonalSpaceCreation(ConfluenceUser user) throws NotPermittedException, AlreadyExistsException
Deprecated.since 4.2.7 will be removed in a future releasePerform checking that a personal space for a user may be created- Parameters:
user- The owner of the personal space- Throws:
NotPermittedException- The current principal may not create a personal space for the userAlreadyExistsException- A personal space already exists for the user
-
addPersonalSpaceWithDefaultPermissions
public RemoteSpace addPersonalSpaceWithDefaultPermissions(RemoteSpace space, String username) throws RemoteException
- Throws:
RemoteException
-
addPersonalSpace
public RemoteSpace addPersonalSpace(RemoteSpace space, String username) throws RemoteException
- Throws:
RemoteException
-
getSpaceLevelPermissions
public String[] getSpaceLevelPermissions()
Get all fine grained Space Level Permissions so that they can be added remotely. RETURNS a string array containing the following elements. VIEWSPACE_PERMISSION COMMENT_PERMISSION EDITSPACE SETSPACEPERMISSIONS REMOVEPAGE REMOVECOMMENT REMOVEBLOG CREATEATTACHMENT REMOVEATTACHMENT EDITBLOG EXPORTSPACE REMOVEMAIL
-
addPermissionToSpace
public boolean addPermissionToSpace(String permission, String remoteEntityName, String spaceKey) throws RemoteException
Add a given permission for a particular group/user to the given space. Assumption : Users and groups cannot have the same name.- Parameters:
permission- is the Permission that is to be added to the spaceremoteEntityName- is either a group or a user name or null for anonymous permissionsspaceKey- is the key of the space for which the given permission is to be added to the given given group/user- Throws:
RemoteException- if space is null or authenticated user does not not have A ADMINISTRATE SPACE permission or if null entity is specified or if no valid entity i.e group/user exist with the given name
-
addGlobalPermissions
public boolean addGlobalPermissions(String[] permissions, String remoteEntityName) throws RemoteException
- Throws:
RemoteException
-
addGlobalPermission
public boolean addGlobalPermission(String permission, String remoteEntityName) throws RemoteException
- Throws:
RemoteException
-
addAnonymousUsePermission
public boolean addAnonymousUsePermission() throws RemoteException- Throws:
RemoteException
-
removeAnonymousUserPermission
public boolean removeAnonymousUserPermission() throws RemoteException- Throws:
RemoteException
-
addAnonymousViewUserProfilePermission
public boolean addAnonymousViewUserProfilePermission() throws RemoteException- Throws:
RemoteException
-
removeAnonymousViewUserProfilePermission
public boolean removeAnonymousViewUserProfilePermission() throws RemoteException- Throws:
RemoteException
-
removeGlobalPermission
public boolean removeGlobalPermission(String permission, String remoteEntityName) throws RemoteException
Removes a global permission from the user.- Throws:
NotPermittedException- if you are not permitted to remove this permission from the user with remoteEntityNameRemoteException
-
addPermissionsToSpace
public boolean addPermissionsToSpace(String[] permissions, String remoteEntityName, String spaceKey) throws RemoteException
- Parameters:
permissions-remoteEntityName- is either a group or a user name or null for anonymous permissionsspaceKey-- Returns:
- true, if all permissions given were added or already granted
- Throws:
RemoteExceptionNotPermittedException
-
removePermissionFromSpace
public boolean removePermissionFromSpace(String permission, String remoteEntityName, String spaceKey) throws RemoteException
- Throws:
RemoteException
-
removeSpace
public Boolean removeSpace(String spaceKey) throws RemoteException
- Throws:
RemoteException
-
getSpaceStatus
public String getSpaceStatus(String spaceKey) throws RemoteException
- Throws:
RemoteException
-
setSpaceStatus
public void setSpaceStatus(String spaceKey, String newStatus) throws RemoteException
- Throws:
RemoteException
-
exportSpace
public String exportSpace(String spaceKey, String exportType) throws RemoteException
- Throws:
RemoteException
-
exportSpace
public String exportSpace(String spaceKey, String exportType, boolean exportAll) throws RemoteException
- Throws:
RemoteException
-
setImportExportManager
@Deprecated public void setImportExportManager(ImportExportManager importExportManager)
Deprecated.since 7.17.0 because ofImportExportManagerdeprecation.
-
setGateKeeper
public void setGateKeeper(GateKeeper gateKeeper)
-
setSettingsManager
public void setSettingsManager(GlobalSettingsManager settingsManager)
-
setSpaceGroupManager
@Deprecated public void setSpaceGroupManager(SpaceGroupManager spaceGroupManager)
Deprecated.since 5.9.SpaceGroupand related classes likeSpaceGroupManagerandSpaceGroupComparatorwill be removed. Please do not use them.
-
setSetSpacePermissionChecker
public void setSetSpacePermissionChecker(SetSpacePermissionChecker setSpacePermissionChecker)
-
setAnonymousUserPermissionsService
public void setAnonymousUserPermissionsService(AnonymousUserPermissionsService anonymousUserPermissionsService)
-
-