public class SpacesSoapService extends Object
Constructor and Description |
---|
SpacesSoapService() |
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(String groupKey) throws RemoteException
RemoteException
public RemoteSpace getSpace(String spaceKey) throws RemoteException
RemoteException
public String[] getPermissions(String spaceKey) throws RemoteException
RemoteException
public RemoteSpacePermissionSet[] getSpacePermissionSets(String spaceKey) throws RemoteException
RemoteException
public RemoteSpacePermissionSet getSpacePermissionSet(String spaceKey, String type) throws RemoteException
RemoteException
public String[] getPermissions(String spaceKey, String userName) throws RemoteException
RemoteException
public RemoteSpace addSpaceWithDefaultPermissions(RemoteSpace space) 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(String spaceGroupKey) throws RemoteException
RemoteException
public RemoteSpaceGroup[] getSpaceGroups() throws RemoteException
RemoteException
public boolean removeSpaceGroup(String spaceGroupKey) throws RemoteException
RemoteException
protected void verifyPersonalSpaceCreation(ConfluenceUser user) throws NotPermittedException, AlreadyExistsException
user
- The owner of the personal spaceNotPermittedException
- The current principal may not create a personal space for the userAlreadyExistsException
- A personal space already exists for the userpublic RemoteSpace addPersonalSpaceWithDefaultPermissions(RemoteSpace space, String username) throws RemoteException
RemoteException
public RemoteSpace addPersonalSpace(RemoteSpace space, String username) throws RemoteException
RemoteException
public String[] getSpaceLevelPermissions() throws RemoteException
RemoteException
public boolean addPermissionToSpace(String permission, String remoteEntityName, 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/userRemoteException
- 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(String[] permissions, String remoteEntityName) throws RemoteException
RemoteException
public boolean addGlobalPermission(String permission, 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(String permission, String remoteEntityName) throws NotPermittedException, RemoteException
NotPermittedException
- if you are not permitted to remove this permission from the user with remoteEntityNameRemoteException
public boolean addPermissionsToSpace(String[] permissions, String remoteEntityName, 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(String permission, String remoteEntityName, String spaceKey) throws NotPermittedException, RemoteException
NotPermittedException
RemoteException
public Boolean removeSpace(String spaceKey) throws RemoteException
RemoteException
public String getSpaceStatus(String spaceKey) throws RemoteException
RemoteException
public void setSpaceStatus(String spaceKey, String statusValue) throws RemoteException
RemoteException
public String exportSpace(String spaceKey, String exportType) throws RemoteException
RemoteException
public String exportSpace(String spaceKey, 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)
Copyright © 2003–2015 Atlassian. All rights reserved.