Class SpacesSoapService
Usually delegated from the ConfluenceSoapServiceImpl.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanaddGlobalPermission(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.addPersonalSpace(RemoteSpace space, String username) addPersonalSpaceWithDefaultPermissions(RemoteSpace space, String username) addSpace(RemoteSpace space) addSpaceGroup(RemoteSpaceGroup spaceGroup) Deprecated.since 5.9.exportSpace(String spaceKey, String exportType) exportSpace(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.getSpaceGroup(String spaceGroupKey) Deprecated.since 5.9.Deprecated.since 5.9.String[]Get all fine grained Space Level Permissions so that they can be added remotely.getSpacePermissionSet(String spaceKey, String type) getSpacePermissionSets(String spaceKey) getSpacesInGroup(String groupKey) Deprecated.since 5.9.getSpaceStatus(String spaceKey) booleanbooleanbooleanremoveGlobalPermission(String permission, String remoteEntityName) Removes a global permission from the user.booleanremovePermissionFromSpace(String permission, String remoteEntityName, String spaceKey) removeSpace(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(SpaceManagerInternal spaceManager) voidsetSpacePermissionManager(SpacePermissionManager spacePermissionManager) voidsetSpaceStatus(String spaceKey, String newStatus) voidsetUserAccessor(UserAccessor userAccessor) voidsetWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer) storeSpace(RemoteSpace remoteSpace) protected voidDeprecated.since 4.2.7 will be removed in a future release
-
Constructor Details
-
SpacesSoapService
public SpacesSoapService()
-
-
Method Details
-
setUserAccessor
-
setSpaceManager
-
setPermissionManager
-
setWikiStyleRenderer
public void setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer) -
setSoapServiceHelper
-
setSpacePermissionManager
-
setPersonalInformationManager
-
setPageManager
-
getSpaces
-
getSpacesInGroup
Deprecated.since 5.9.SpaceGroupand related classes likeSpaceGroupManagerandSpaceGroupComparatorwill be removed. Please do not use them. -
getSpace
- Throws:
RemoteException
-
getPermissions
Returns permissions that the logged in user has on the space with the given key.- Throws:
RemoteException
-
getSpacePermissionSets
- Throws:
RemoteException
-
getSpacePermissionSet
public RemoteSpacePermissionSet getSpacePermissionSet(String spaceKey, String type) throws RemoteException - Throws:
RemoteException
-
getPermissions
Returns the permissions that the nominated user has on the space with the given key.- Throws:
RemoteException
-
addSpaceWithDefaultPermissions
- Throws:
RemoteException
-
addSpace
- Throws:
RemoteException
-
storeSpace
- 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.since 5.9.SpaceGroupand related classes likeSpaceGroupManagerandSpaceGroupComparatorwill be removed. Please do not use them.- Throws:
RemoteException
-
getSpaceGroups
Deprecated.since 5.9.SpaceGroupand related classes likeSpaceGroupManagerandSpaceGroupComparatorwill be removed. Please do not use them.- Throws:
RemoteException
-
removeSpaceGroup
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
- Throws:
RemoteException
-
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
- Throws:
RemoteException
-
removeAnonymousUserPermission
- Throws:
RemoteException
-
addAnonymousViewUserProfilePermission
- Throws:
RemoteException
-
removeAnonymousViewUserProfilePermission
- 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
- Throws:
RemoteException
-
getSpaceStatus
- Throws:
RemoteException
-
setSpaceStatus
- Throws:
RemoteException
-
exportSpace
- Throws:
RemoteException
-
exportSpace
public String exportSpace(String spaceKey, String exportType, boolean exportAll) throws RemoteException - Throws:
RemoteException
-
setImportExportManager
Deprecated.since 7.17.0 because ofImportExportManagerdeprecation. -
setGateKeeper
-
setSettingsManager
-
setSpaceGroupManager
Deprecated.since 5.9.SpaceGroupand related classes likeSpaceGroupManagerandSpaceGroupComparatorwill be removed. Please do not use them. -
setSetSpacePermissionChecker
-
setAnonymousUserPermissionsService
public void setAnonymousUserPermissionsService(AnonymousUserPermissionsService anonymousUserPermissionsService)
-