public interface SoapServiceHelper
| Modifier and Type | Method and Description |
|---|---|
void |
assertCanAdminister() |
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 object
|
void |
assertCanRemove(AbstractPage page) |
void |
assertCanView(AbstractPage page) |
void |
assertCanView(Space space) |
AbstractPage |
retrieveAbstractPage(long pageId) |
ContentEntityObject |
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.
|
Page |
retrievePage(String spaceKey,
String pageTitle) |
Space |
retrieveSpace(String spaceKey) |
com.atlassian.user.User |
retrieveUser(String username)
Retrieves the user with the given username
|
Space retrieveSpace(String spaceKey) throws RemoteException
RemoteExceptionAbstractPage retrieveAbstractPage(long pageId) throws RemoteException
RemoteExceptionPage retrievePage(String spaceKey, String pageTitle) throws RemoteException
RemoteExceptioncom.atlassian.user.User retrieveUser(String username) throws RemoteException
username - the username of the userRemoteException - if the username is empty or nullRemoteException - if no User could be found for the usernamevoid assertCanAdminister()
throws RemoteException
RemoteExceptionvoid assertCanModifyObject(Object obj, String typeDescription) throws NotPermittedException
If the current user is a super-user, they will automatically pass this test
obj - the target objecttypeDescription - the type of object (e.g. "labels")NotPermittedException - if the user lacks EDIT permissionvoid assertCanModify(AbstractPage page) throws RemoteException
RemoteExceptionvoid assertCanRemove(AbstractPage page) throws RemoteException
RemoteExceptionvoid assertCanView(AbstractPage page) throws RemoteException
RemoteExceptionvoid assertCanExport(Space space) throws RemoteException
RemoteExceptionvoid assertCanAdminister(Space space) throws RemoteException
RemoteExceptionvoid assertCanView(Space space) throws RemoteException
RemoteExceptionvoid assertCanCreateBlogPost(Space space) throws RemoteException
RemoteExceptionvoid assertCanCreatePage(Space space) throws RemoteException
RemoteExceptionContentEntityObject retrieveContent(long contentId) throws RemoteException
contentId - the ID of the content to retrieveRemoteException - if the user lacks VIEW permission or the content does not existCopyright © 2003–2017 Atlassian. All rights reserved.