|
||||||||||
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.SpacesSoapService
public class SpacesSoapService
This is the soap service that handles all of the 'space' type methods.
Usually delegated from the ConfluenceSoapServiceImpl.
Constructor Summary | |
---|---|
SpacesSoapService()
|
Method Summary | |
---|---|
boolean |
addAnonymousUsePermission()
|
boolean |
addAnonymousViewUserProfilePermission()
|
boolean |
addGlobalPermission(java.lang.String permission,
java.lang.String remoteEntityName)
|
boolean |
addGlobalPermissions(java.lang.String[] permissions,
java.lang.String remoteEntityName)
|
boolean |
addPermissionsToSpace(java.lang.String[] permissions,
java.lang.String remoteEntityName,
java.lang.String spaceKey)
|
boolean |
addPermissionToSpace(java.lang.String permission,
java.lang.String remoteEntityName,
java.lang.String spaceKey)
Add a given permission for a particular group/user to the given space. |
RemoteSpace |
addPersonalSpace(RemoteSpace space,
java.lang.String username)
|
RemoteSpace |
addSpace(RemoteSpace space)
|
RemoteSpaceGroup |
addSpaceGroup(RemoteSpaceGroup spaceGroup)
|
boolean |
convertToPersonalSpace(java.lang.String userName,
java.lang.String spaceKey,
java.lang.String newName,
boolean updateLinks)
Convert a space to a personal space |
java.lang.String |
exportSpace(java.lang.String spaceKey,
java.lang.String exportType)
|
java.lang.String |
exportSpace(java.lang.String spaceKey,
java.lang.String exportType,
boolean exportAll)
|
java.lang.String[] |
getPermissions(java.lang.String spaceKey)
Returns permissions that the logged in user has on the space with the given key. |
java.lang.String[] |
getPermissions(java.lang.String spaceKey,
java.lang.String userName)
Returns the permissions that the nominated user has on the space with the given key. |
RemoteSpace |
getSpace(java.lang.String spaceKey)
|
RemoteSpaceGroup |
getSpaceGroup(java.lang.String spaceGroupKey)
|
RemoteSpaceGroup[] |
getSpaceGroups()
|
java.lang.String[] |
getSpaceLevelPermissions()
Get all fine grained Space Level Permissions so that they can be added remotely. |
RemoteSpaceSummary[] |
getSpaces()
|
RemoteSpaceSummary[] |
getSpacesInGroup(java.lang.String groupKey)
|
boolean |
removeAnonymousUserPermission()
|
boolean |
removeAnonymousViewUserProfilePermission()
|
boolean |
removeGlobalPermission(java.lang.String permission,
java.lang.String remoteEntityName)
Removes a global permission from the user. |
boolean |
removePermissionFromSpace(java.lang.String permission,
java.lang.String remoteEntityName,
java.lang.String spaceKey)
|
java.lang.Boolean |
removeSpace(java.lang.String spaceKey)
|
boolean |
removeSpaceGroup(java.lang.String spaceGroupKey)
|
void |
setAnonymousUserPermissionsService(AnonymousUserPermissionsService anonymousUserPermissionsService)
|
void |
setGateKeeper(GateKeeper gateKeeper)
|
void |
setImportExportManager(ImportExportManager importExportManager)
|
void |
setPageManager(PageManager pageManager)
|
void |
setPermissionManager(PermissionManager permissionManager)
|
void |
setPersonalInformationManager(PersonalInformationManager personalInformationManager)
|
void |
setSetSpacePermissionChecker(SetSpacePermissionChecker setSpacePermissionChecker)
|
void |
setSettingsManager(SettingsManager settingsManager)
|
void |
setSoapServiceHelper(SoapServiceHelper soapServiceHelper)
|
void |
setSpaceGroupManager(SpaceGroupManager spaceGroupManager)
|
void |
setSpaceManager(SpaceManager spaceManager)
|
void |
setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
|
void |
setUserAccessor(UserAccessor userAccessor)
|
void |
setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
|
RemoteSpace |
storeSpace(RemoteSpace remoteSpace)
|
protected void |
verifyPersonalSpaceCreation(com.atlassian.user.User user)
Perform checking that a personal space for a user may be created |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpacesSoapService()
Method Detail |
---|
public void setUserAccessor(UserAccessor userAccessor)
public void setSpaceManager(SpaceManager spaceManager)
public void setPermissionManager(PermissionManager permissionManager)
public void setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
public void setSoapServiceHelper(SoapServiceHelper soapServiceHelper)
public void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
public void setPersonalInformationManager(PersonalInformationManager personalInformationManager)
public void setPageManager(PageManager pageManager)
public RemoteSpaceSummary[] getSpaces() throws RemoteException
RemoteException
public RemoteSpaceSummary[] getSpacesInGroup(java.lang.String groupKey) throws RemoteException
RemoteException
public RemoteSpace getSpace(java.lang.String spaceKey) throws RemoteException
RemoteException
public java.lang.String[] getPermissions(java.lang.String spaceKey) throws RemoteException
RemoteException
public java.lang.String[] getPermissions(java.lang.String spaceKey, java.lang.String userName) throws RemoteException
RemoteException
public RemoteSpace addSpace(RemoteSpace space) throws RemoteException
RemoteException
public RemoteSpace storeSpace(RemoteSpace remoteSpace) throws RemoteException
RemoteException
public RemoteSpaceGroup addSpaceGroup(RemoteSpaceGroup spaceGroup) throws RemoteException
RemoteException
public RemoteSpaceGroup getSpaceGroup(java.lang.String spaceGroupKey) throws RemoteException
RemoteException
public RemoteSpaceGroup[] getSpaceGroups() throws RemoteException
RemoteException
public boolean removeSpaceGroup(java.lang.String spaceGroupKey) throws RemoteException
RemoteException
protected void verifyPersonalSpaceCreation(com.atlassian.user.User user) throws NotPermittedException, AlreadyExistsException
user
- The owner of the personal space
NotPermittedException
- The current principal may not create a personal space for the user
AlreadyExistsException
- A personal space already exists for the userpublic RemoteSpace addPersonalSpace(RemoteSpace space, java.lang.String username) throws RemoteException
RemoteException
public boolean convertToPersonalSpace(java.lang.String userName, java.lang.String spaceKey, java.lang.String newName, boolean updateLinks) throws RemoteException
userName
- User name of user to create a personal space forspaceKey
- The key of the space to convertnewName
- The new name of the space once it has been converted. If null or empty, the name will be unchanged.updateLinks
- Update links in the space after conversion
RemoteException
public java.lang.String[] getSpaceLevelPermissions() throws RemoteException
RemoteException
public boolean addPermissionToSpace(java.lang.String permission, java.lang.String remoteEntityName, java.lang.String spaceKey) throws RemoteException
permission
- is the Permission that is to be added to the spaceremoteEntityName
- is either a group or a user name or null for anonymous permissionsspaceKey
- is the key of the space for which the given permission is to be added to the given given group/user
RemoteException
- if space is null or authenticated user does not not have A ADMINISTRATE SPACE
permission or if null entity is specified or if no valid entity i.e group/user exist with the given namepublic boolean addGlobalPermissions(java.lang.String[] permissions, java.lang.String remoteEntityName) throws RemoteException
RemoteException
public boolean addGlobalPermission(java.lang.String permission, java.lang.String remoteEntityName) throws RemoteException
RemoteException
public boolean addAnonymousUsePermission() throws RemoteException
RemoteException
public boolean removeAnonymousUserPermission() throws RemoteException
RemoteException
public boolean addAnonymousViewUserProfilePermission() throws RemoteException
RemoteException
public boolean removeAnonymousViewUserProfilePermission() throws RemoteException
RemoteException
public boolean removeGlobalPermission(java.lang.String permission, java.lang.String remoteEntityName) throws NotPermittedException, RemoteException
NotPermittedException
- if you are not permitted to remove this permission from the user with remoteEntityName
RemoteException
public boolean addPermissionsToSpace(java.lang.String[] permissions, java.lang.String remoteEntityName, java.lang.String spaceKey) throws RemoteException, NotPermittedException
permissions
- remoteEntityName
- is either a group or a user name or null for anonymous permissionsspaceKey
-
RemoteException
NotPermittedException
public boolean removePermissionFromSpace(java.lang.String permission, java.lang.String remoteEntityName, java.lang.String spaceKey) throws NotPermittedException, RemoteException
NotPermittedException
RemoteException
public java.lang.Boolean removeSpace(java.lang.String spaceKey) throws RemoteException
RemoteException
public java.lang.String exportSpace(java.lang.String spaceKey, java.lang.String exportType) throws RemoteException
RemoteException
public java.lang.String exportSpace(java.lang.String spaceKey, java.lang.String exportType, boolean exportAll) throws RemoteException
RemoteException
public void setImportExportManager(ImportExportManager importExportManager)
public void setGateKeeper(GateKeeper gateKeeper)
public void setSettingsManager(SettingsManager settingsManager)
public void setSpaceGroupManager(SpaceGroupManager spaceGroupManager)
public void setSetSpacePermissionChecker(SetSpacePermissionChecker setSpacePermissionChecker)
public void setAnonymousUserPermissionsService(AnonymousUserPermissionsService anonymousUserPermissionsService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |