Class SoapServiceHelperImpl
java.lang.Object
com.atlassian.confluence.rpc.soap.services.SoapServiceHelperImpl
- All Implemented Interfaces:
SoapServiceHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentEntityManagerprotected PageManagerprotected PermissionManagerprotected SpaceManagerprotected UserAccessorprotected WebSudoManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidassertCanAdminister(Space space) voidassertCanCreateBlogPost(Space space) voidassertCanCreatePage(Space space) voidassertCanExport(Space space) voidassertCanModify(AbstractPage page) voidassertCanModifyObject(Object obj, String typeDescription) Determines if the current user can modify/edit the given objectvoidassertCanRemove(AbstractPage page) Throw an exception if the user can't remove the given page.voidassertCanView(AbstractPage page) voidassertCanView(Space space) voidretrieveAbstractPage(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 usernamevoidsetContentEntityManager(ContentEntityManager contentEntityManager) voidsetPageManager(PageManager pageManager) voidsetPermissionManager(PermissionManager permissionManager) voidsetSpaceManager(SpaceManager spaceManager) voidsetUserAccessor(UserAccessor userAccessor) voidsetWebSudoManager(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:SoapServiceHelperRetrieves 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:
retrieveContentin 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:
retrieveSpacein 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:
retrieveAbstractPagein 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:
retrievePagein interfaceSoapServiceHelper- Throws:
RemoteException
-
retrieveUser
Description copied from interface:SoapServiceHelperRetrieves the user with the given username- Specified by:
retrieveUserin interfaceSoapServiceHelper- Parameters:
username- the username of the user- Returns:
- The User instance corresponding to the user
- Throws:
RemoteException- if the username is empty or nullRemoteException- if no User could be found for the username
-
assertCanView
- Specified by:
assertCanViewin interfaceSoapServiceHelper- Throws:
RemoteException
-
assertCanView
- Specified by:
assertCanViewin interfaceSoapServiceHelper- Throws:
RemoteException
-
assertCanModifyObject
Description copied from interface:SoapServiceHelperDetermines 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:
assertCanModifyObjectin interfaceSoapServiceHelper- Parameters:
obj- the target objecttypeDescription- the type of object (e.g. "labels")- Throws:
NotPermittedException- if the user lacks EDIT permission
-
assertCanCreatePage
- Specified by:
assertCanCreatePagein interfaceSoapServiceHelper- Throws:
RemoteException
-
assertCanCreateBlogPost
- Specified by:
assertCanCreateBlogPostin interfaceSoapServiceHelper- Throws:
RemoteException
-
assertCanModify
- Specified by:
assertCanModifyin interfaceSoapServiceHelper- Throws:
RemoteException
-
assertCanRemove
Throw an exception if the user can't remove the given page.- Specified by:
assertCanRemovein interfaceSoapServiceHelper- Throws:
RemoteException
-
assertCanAdminister
- Specified by:
assertCanAdministerin interfaceSoapServiceHelper- Throws:
RemoteException
-
assertHasValidWebSudoSession
- Specified by:
assertHasValidWebSudoSessionin interfaceSoapServiceHelper- Throws:
RemoteException
-
assertCanExport
- Specified by:
assertCanExportin interfaceSoapServiceHelper- Throws:
RemoteException
-
assertCanAdminister
- Specified by:
assertCanAdministerin interfaceSoapServiceHelper- Throws:
RemoteException
-