Class SpacesSoapService
Usually delegated from the ConfluenceSoapServiceImpl.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
addGlobalPermission
(String permission, String remoteEntityName) boolean
addGlobalPermissions
(String[] permissions, String remoteEntityName) boolean
addPermissionsToSpace
(String[] permissions, String remoteEntityName, String spaceKey) boolean
addPermissionToSpace
(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) boolean
boolean
boolean
removeGlobalPermission
(String permission, String remoteEntityName) Removes a global permission from the user.boolean
removePermissionFromSpace
(String permission, String remoteEntityName, String spaceKey) removeSpace
(String spaceKey) boolean
removeSpaceGroup
(String spaceGroupKey) Deprecated.since 5.9.void
setAnonymousUserPermissionsService
(AnonymousUserPermissionsService anonymousUserPermissionsService) void
setGateKeeper
(GateKeeper gateKeeper) void
setImportExportManager
(ImportExportManager importExportManager) Deprecated.since 7.17.0 because ofImportExportManager
deprecation.void
setPageManager
(PageManager pageManager) void
setPermissionManager
(PermissionManager permissionManager) void
setPersonalInformationManager
(PersonalInformationManager personalInformationManager) void
setSetSpacePermissionChecker
(SetSpacePermissionChecker setSpacePermissionChecker) void
setSettingsManager
(GlobalSettingsManager settingsManager) void
setSoapServiceHelper
(SoapServiceHelper soapServiceHelper) void
setSpaceGroupManager
(SpaceGroupManager spaceGroupManager) Deprecated.since 5.9.void
setSpaceManager
(SpaceManager spaceManager) void
setSpacePermissionManager
(SpacePermissionManager spacePermissionManager) void
setSpaceStatus
(String spaceKey, String newStatus) void
setUserAccessor
(UserAccessor userAccessor) void
setWikiStyleRenderer
(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer) storeSpace
(RemoteSpace remoteSpace) protected void
Deprecated.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.SpaceGroup
and related classes likeSpaceGroupManager
andSpaceGroupComparator
will 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.SpaceGroup
and related classes likeSpaceGroupManager
andSpaceGroupComparator
will be removed. Please do not use them.- Throws:
RemoteException
-
getSpaceGroup
Deprecated.since 5.9.SpaceGroup
and related classes likeSpaceGroupManager
andSpaceGroupComparator
will be removed. Please do not use them.- Throws:
RemoteException
-
getSpaceGroups
Deprecated.since 5.9.SpaceGroup
and related classes likeSpaceGroupManager
andSpaceGroupComparator
will be removed. Please do not use them.- Throws:
RemoteException
-
removeSpaceGroup
Deprecated.since 5.9.SpaceGroup
and related classes likeSpaceGroupManager
andSpaceGroupComparator
will 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:
RemoteException
NotPermittedException
-
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 ofImportExportManager
deprecation. -
setGateKeeper
-
setSettingsManager
-
setSpaceGroupManager
Deprecated.since 5.9.SpaceGroup
and related classes likeSpaceGroupManager
andSpaceGroupComparator
will be removed. Please do not use them. -
setSetSpacePermissionChecker
-
setAnonymousUserPermissionsService
public void setAnonymousUserPermissionsService(AnonymousUserPermissionsService anonymousUserPermissionsService)
-