Class SoapServiceHelperImpl
java.lang.Object
com.atlassian.confluence.rpc.soap.services.SoapServiceHelperImpl
- All Implemented Interfaces:
SoapServiceHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentEntityManager
protected PageManager
protected PermissionManager
protected SpaceManager
protected UserAccessor
protected WebSudoManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
assertCanAdminister
(Space space) void
assertCanCreateBlogPost
(Space space) void
assertCanCreatePage
(Space space) void
assertCanExport
(Space space) void
assertCanModify
(AbstractPage page) void
assertCanModifyObject
(Object obj, String typeDescription) Determines if the current user can modify/edit the given objectvoid
assertCanRemove
(AbstractPage page) Throw an exception if the user can't remove the given page.void
assertCanView
(AbstractPage page) void
assertCanView
(Space space) void
retrieveAbstractPage
(long abstractPageId) Retrieves a given page, and throws RemoteException if the page is not found or the user has no view perm.retrieveContent
(long contentId) Retrieves the content with the given ID, throwing an exception if the content can not be found, or the current user has not permission to view it.retrievePage
(String spaceKey, String pageTitle) Retrieves a given page by space key and page title, and throws RemoteException if the page is not found or the user has no view perm.retrieveSpace
(String spaceKey) Retrieves a given space, and throws RemoteException if the space is not found or the user has no view perm.retrieveUser
(String username) Retrieves the user with the given usernamevoid
setContentEntityManager
(ContentEntityManager contentEntityManager) void
setPageManager
(PageManager pageManager) void
setPermissionManager
(PermissionManager permissionManager) void
setSpaceManager
(SpaceManager spaceManager) void
setUserAccessor
(UserAccessor userAccessor) void
setWebSudoManager
(WebSudoManager webSudoManager)
-
Field Details
-
spaceManager
-
permissionManager
-
pageManager
-
userAccessor
-
contentEntityManager
-
webSudoManager
-
-
Constructor Details
-
SoapServiceHelperImpl
public SoapServiceHelperImpl()
-
-
Method Details
-
setWebSudoManager
-
setUserAccessor
-
setSpaceManager
-
setPageManager
-
setPermissionManager
-
setContentEntityManager
-
retrieveContent
Description copied from interface:SoapServiceHelper
Retrieves the content with the given ID, throwing an exception if the content can not be found, or the current user has not permission to view it.- Specified by:
retrieveContent
in interfaceSoapServiceHelper
- Parameters:
contentId
- the ID of the content to retrieve- Returns:
- the associated content object
- Throws:
RemoteException
- if the user lacks VIEW permission or the content does not exist
-
retrieveSpace
Retrieves a given space, and throws RemoteException if the space is not found or the user has no view perm.- Specified by:
retrieveSpace
in interfaceSoapServiceHelper
- Throws:
RemoteException
-
retrieveAbstractPage
Retrieves a given page, and throws RemoteException if the page is not found or the user has no view perm.- Specified by:
retrieveAbstractPage
in interfaceSoapServiceHelper
- Throws:
RemoteException
-
retrievePage
Retrieves a given page by space key and page title, and throws RemoteException if the page is not found or the user has no view perm.- Specified by:
retrievePage
in interfaceSoapServiceHelper
- Throws:
RemoteException
-
retrieveUser
Description copied from interface:SoapServiceHelper
Retrieves the user with the given username- Specified by:
retrieveUser
in interfaceSoapServiceHelper
- Parameters:
username
- the username of the user- Returns:
- The User instance corresponding to the user
- Throws:
RemoteException
- if the username is empty or null
-
assertCanView
- Specified by:
assertCanView
in interfaceSoapServiceHelper
- Throws:
RemoteException
-
assertCanView
- Specified by:
assertCanView
in interfaceSoapServiceHelper
- Throws:
RemoteException
-
assertCanModifyObject
Description copied from interface:SoapServiceHelper
Determines if the current user can modify/edit the given objectIf the current user is a super-user, they will automatically pass this test
- Specified by:
assertCanModifyObject
in interfaceSoapServiceHelper
- Parameters:
obj
- the target objecttypeDescription
- the type of object (e.g. "labels")- Throws:
NotPermittedException
- if the user lacks EDIT permission
-
assertCanCreatePage
- Specified by:
assertCanCreatePage
in interfaceSoapServiceHelper
- Throws:
RemoteException
-
assertCanCreateBlogPost
- Specified by:
assertCanCreateBlogPost
in interfaceSoapServiceHelper
- Throws:
RemoteException
-
assertCanModify
- Specified by:
assertCanModify
in interfaceSoapServiceHelper
- Throws:
RemoteException
-
assertCanRemove
Throw an exception if the user can't remove the given page.- Specified by:
assertCanRemove
in interfaceSoapServiceHelper
- Throws:
RemoteException
-
assertCanAdminister
- Specified by:
assertCanAdminister
in interfaceSoapServiceHelper
- Throws:
RemoteException
-
assertHasValidWebSudoSession
- Specified by:
assertHasValidWebSudoSession
in interfaceSoapServiceHelper
- Throws:
RemoteException
-
assertCanExport
- Specified by:
assertCanExport
in interfaceSoapServiceHelper
- Throws:
RemoteException
-
assertCanAdminister
- Specified by:
assertCanAdminister
in interfaceSoapServiceHelper
- Throws:
RemoteException
-