|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.rpc.soap.services.SoapServiceHelperImpl
public class SoapServiceHelperImpl
Field Summary | |
---|---|
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(java.lang.Object obj,
java.lang.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. |
Page |
retrievePage(java.lang.String spaceKey,
java.lang.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(java.lang.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(java.lang.String username)
Retrieves the user with the given username |
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
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 Space retrieveSpace(java.lang.String spaceKey) throws RemoteException
retrieveSpace
in interface SoapServiceHelper
RemoteException
public AbstractPage retrieveAbstractPage(long abstractPageId) throws RemoteException
retrieveAbstractPage
in interface SoapServiceHelper
RemoteException
public Page retrievePage(java.lang.String spaceKey, java.lang.String pageTitle) throws RemoteException
retrievePage
in interface SoapServiceHelper
RemoteException
public com.atlassian.user.User retrieveUser(java.lang.String username) throws RemoteException
SoapServiceHelper
retrieveUser
in interface SoapServiceHelper
username
- the username of the user
RemoteException
- if the username is empty or nullpublic void assertCanView(AbstractPage page) throws RemoteException
assertCanView
in interface SoapServiceHelper
RemoteException
public void assertCanView(Space space) throws RemoteException
assertCanView
in interface SoapServiceHelper
RemoteException
public void assertCanModifyObject(java.lang.Object obj, java.lang.String typeDescription) throws NotPermittedException
SoapServiceHelper
assertCanModifyObject
in interface SoapServiceHelper
obj
- the target objecttypeDescription
- the type of object (e.g. "labels")
NotPermittedException
- if the user lacks EDIT permissionpublic void assertCanCreatePage(Space space) throws RemoteException
assertCanCreatePage
in interface SoapServiceHelper
RemoteException
public void assertCanCreateBlogPost(Space space) throws RemoteException
assertCanCreateBlogPost
in interface SoapServiceHelper
RemoteException
public void assertCanModify(AbstractPage page) throws RemoteException
assertCanModify
in interface SoapServiceHelper
RemoteException
public void assertCanRemove(AbstractPage page) throws RemoteException
assertCanRemove
in interface SoapServiceHelper
RemoteException
public void assertCanAdminister() throws RemoteException
assertCanAdminister
in interface SoapServiceHelper
RemoteException
public void assertCanExport(Space space) throws RemoteException
assertCanExport
in interface SoapServiceHelper
RemoteException
public void assertCanAdminister(Space space) throws RemoteException
assertCanAdminister
in interface SoapServiceHelper
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |