|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.rpc.soap.services.SoapServiceHelperImpl
public class SoapServiceHelperImpl
| Field Summary | |
|---|---|
protected ContentEntityManager |
contentEntityManager
|
protected LinkManager |
linkManager
|
protected PageManager |
pageManager
|
protected PermissionManager |
permissionManager
|
protected SpaceManager |
spaceManager
|
protected UserAccessor |
userAccessor
|
| Constructor Summary | |
|---|---|
SoapServiceHelperImpl()
|
|
| Method Summary | |
|---|---|
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 If the current user is a super-user, they will automatically pass this test |
void |
assertCanRemove(AbstractPage page)
Throw an exception if the user can't remove the given page. |
void |
assertCanView(AbstractPage page)
|
void |
assertCanView(Space space)
|
AbstractPage |
retrieveAbstractPage(long abstractPageId)
Retrieves a given page, and throws RemoteException if the page is not found or the user has no view perm. |
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)
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. |
Space |
retrieveSpace(String spaceKey)
Retrieves a given space, and throws RemoteException if the space is not found or the user has no view perm. |
com.atlassian.user.User |
retrieveUser(String username)
Retrieves the user with the given username |
void |
setContentEntityManager(ContentEntityManager contentEntityManager)
|
void |
setLinkManager(LinkManager linkManager)
|
void |
setPageManager(PageManager pageManager)
|
void |
setPermissionManager(PermissionManager permissionManager)
|
void |
setSpaceManager(SpaceManager spaceManager)
|
void |
setUserAccessor(UserAccessor userAccessor)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SpaceManager spaceManager
protected PermissionManager permissionManager
protected PageManager pageManager
protected LinkManager linkManager
protected UserAccessor userAccessor
protected ContentEntityManager contentEntityManager
| Constructor Detail |
|---|
public SoapServiceHelperImpl()
| Method Detail |
|---|
public void setUserAccessor(UserAccessor userAccessor)
public void setSpaceManager(SpaceManager spaceManager)
public void setPageManager(PageManager pageManager)
public void setLinkManager(LinkManager linkManager)
public void setPermissionManager(PermissionManager permissionManager)
public void setContentEntityManager(ContentEntityManager contentEntityManager)
public ContentEntityObject retrieveContent(long contentId)
throws RemoteException
SoapServiceHelper
retrieveContent in interface SoapServiceHelpercontentId - the ID of the content to retrieve
RemoteException - if the user lacks VIEW permission or the content does not exist
public Space retrieveSpace(String spaceKey)
throws RemoteException
retrieveSpace in interface SoapServiceHelperRemoteException
public AbstractPage retrieveAbstractPage(long abstractPageId)
throws RemoteException
retrieveAbstractPage in interface SoapServiceHelperRemoteException
public Page retrievePage(String spaceKey,
String pageTitle)
throws RemoteException
retrievePage in interface SoapServiceHelperRemoteException
public com.atlassian.user.User retrieveUser(String username)
throws RemoteException
SoapServiceHelper
retrieveUser in interface SoapServiceHelperusername - the username of the user
RemoteException - if the username is empty or null
public void assertCanView(AbstractPage page)
throws RemoteException
assertCanView in interface SoapServiceHelperRemoteException
public void assertCanView(Space space)
throws RemoteException
assertCanView in interface SoapServiceHelperRemoteException
public void assertCanModifyObject(Object obj,
String typeDescription)
throws NotPermittedException
SoapServiceHelper
assertCanModifyObject in interface SoapServiceHelperobj - the target objecttypeDescription - the type of object (e.g. "labels")
NotPermittedException - if the user lacks EDIT permission
public void assertCanCreatePage(Space space)
throws RemoteException
assertCanCreatePage in interface SoapServiceHelperRemoteException
public void assertCanCreateBlogPost(Space space)
throws RemoteException
assertCanCreateBlogPost in interface SoapServiceHelperRemoteException
public void assertCanModify(AbstractPage page)
throws RemoteException
assertCanModify in interface SoapServiceHelperRemoteException
public void assertCanRemove(AbstractPage page)
throws RemoteException
assertCanRemove in interface SoapServiceHelperRemoteException
public void assertCanAdminister()
throws RemoteException
assertCanAdminister in interface SoapServiceHelperRemoteException
public void assertCanExport(Space space)
throws RemoteException
assertCanExport in interface SoapServiceHelperRemoteException
public void assertCanAdminister(Space space)
throws RemoteException
assertCanAdminister in interface SoapServiceHelperRemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||