Interface SoapServiceHelper
- All Known Implementing Classes:
SoapServiceHelperImpl
public interface SoapServiceHelper
-
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) void
assertCanView
(AbstractPage page) void
assertCanView
(Space space) void
retrieveAbstractPage
(long pageId) 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) retrieveSpace
(String spaceKey) com.atlassian.user.User
retrieveUser
(String username) Retrieves the user with the given username
-
Method Details
-
retrieveSpace
- Throws:
RemoteException
-
retrieveAbstractPage
- Throws:
RemoteException
-
retrievePage
- Throws:
RemoteException
-
retrieveUser
Retrieves the user with the given username- 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
-
assertCanAdminister
- Throws:
RemoteException
-
assertHasValidWebSudoSession
- Throws:
RemoteException
-
assertCanModifyObject
Determines if the current user can modify/edit the given objectIf the current user is a super-user, they will automatically pass this test
- Parameters:
obj
- the target objecttypeDescription
- the type of object (e.g. "labels")- Throws:
NotPermittedException
- if the user lacks EDIT permission
-
assertCanModify
- Throws:
RemoteException
-
assertCanRemove
- Throws:
RemoteException
-
assertCanView
- Throws:
RemoteException
-
assertCanExport
- Throws:
RemoteException
-
assertCanAdminister
- Throws:
RemoteException
-
assertCanView
- Throws:
RemoteException
-
assertCanCreateBlogPost
- Throws:
RemoteException
-
assertCanCreatePage
- Throws:
RemoteException
-
retrieveContent
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.- 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
-