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
RemoteException
AbstractPage retrieveAbstractPage(long pageId) throws RemoteException
RemoteException
Page retrievePage(String spaceKey, String pageTitle) throws RemoteException
RemoteException
com.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
RemoteException
void 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
RemoteException
void assertCanRemove(AbstractPage page) throws RemoteException
RemoteException
void assertCanView(AbstractPage page) throws RemoteException
RemoteException
void assertCanExport(Space space) throws RemoteException
RemoteException
void assertCanAdminister(Space space) throws RemoteException
RemoteException
void assertCanView(Space space) throws RemoteException
RemoteException
void assertCanCreateBlogPost(Space space) throws RemoteException
RemoteException
void assertCanCreatePage(Space space) throws RemoteException
RemoteException
ContentEntityObject 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–2016 Atlassian. All rights reserved.