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 boolean
addAnonymousUsePermission()
boolean
addAnonymousViewUserProfilePermission()
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.RemoteSpace
addPersonalSpace(RemoteSpace space, String username)
RemoteSpace
addPersonalSpaceWithDefaultPermissions(RemoteSpace space, String username)
RemoteSpace
addSpace(RemoteSpace space)
RemoteSpaceGroup
addSpaceGroup(RemoteSpaceGroup spaceGroup)
Deprecated.since 5.9.RemoteSpace
addSpaceWithDefaultPermissions(RemoteSpace space)
String
exportSpace(String spaceKey, String exportType)
String
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.RemoteSpace
getSpace(String spaceKey)
RemoteSpaceGroup
getSpaceGroup(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.RemoteSpacePermissionSet
getSpacePermissionSet(String spaceKey, String type)
RemoteSpacePermissionSet[]
getSpacePermissionSets(String spaceKey)
RemoteSpaceSummary[]
getSpaces()
RemoteSpaceSummary[]
getSpacesInGroup(String groupKey)
Deprecated.since 5.9.String
getSpaceStatus(String spaceKey)
boolean
removeAnonymousUserPermission()
boolean
removeAnonymousViewUserProfilePermission()
boolean
removeGlobalPermission(String permission, String remoteEntityName)
Removes a global permission from the user.boolean
removePermissionFromSpace(String permission, String remoteEntityName, String spaceKey)
Boolean
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)
RemoteSpace
storeSpace(RemoteSpace remoteSpace)
protected void
verifyPersonalSpaceCreation(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.SpaceGroup
and related classes likeSpaceGroupManager
andSpaceGroupComparator
will 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.SpaceGroup
and related classes likeSpaceGroupManager
andSpaceGroupComparator
will be removed. Please do not use them.- Throws:
RemoteException
-
getSpaceGroup
@Deprecated public RemoteSpaceGroup getSpaceGroup(String spaceGroupKey) throws RemoteException
Deprecated.since 5.9.SpaceGroup
and related classes likeSpaceGroupManager
andSpaceGroupComparator
will be removed. Please do not use them.- Throws:
RemoteException
-
getSpaceGroups
@Deprecated public RemoteSpaceGroup[] getSpaceGroups() throws RemoteException
Deprecated.since 5.9.SpaceGroup
and related classes likeSpaceGroupManager
andSpaceGroupComparator
will be removed. Please do not use them.- Throws:
RemoteException
-
removeSpaceGroup
@Deprecated public boolean removeSpaceGroup(String spaceGroupKey) throws RemoteException
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
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:
RemoteException
NotPermittedException
-
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 ofImportExportManager
deprecation.
-
setGateKeeper
public void setGateKeeper(GateKeeper gateKeeper)
-
setSettingsManager
public void setSettingsManager(GlobalSettingsManager settingsManager)
-
setSpaceGroupManager
@Deprecated public void setSpaceGroupManager(SpaceGroupManager spaceGroupManager)
Deprecated.since 5.9.SpaceGroup
and related classes likeSpaceGroupManager
andSpaceGroupComparator
will be removed. Please do not use them.
-
setSetSpacePermissionChecker
public void setSetSpacePermissionChecker(SetSpacePermissionChecker setSpacePermissionChecker)
-
setAnonymousUserPermissionsService
public void setAnonymousUserPermissionsService(AnonymousUserPermissionsService anonymousUserPermissionsService)
-
-