public interface Spaces
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ENVIRONMENT |
static String |
DEFAULT_SPACE |
static String |
ENVIRONMENTS_LOCATION |
Modifier and Type | Method and Description |
---|---|
void |
addSpaceToEnvironment(Space space,
Environment env)
Adds a space to the list of spaces for the given environment
A space can exist in zero or more environments
|
Environment |
createEnvironment(String envName,
String owner)
Creates an environment object and persists it
|
Space |
createSpace(String spaceName,
String owner,
Folder templateFolder,
String title,
String shortTitle,
String description,
String theme,
String constraint)
Creates a space persisted after copying from the template folder.
|
void |
deleteEnvironment(Environment env)
Deletes an environment object given the unique key envName from the persistence store
|
void |
deletePage(Page page)
Deletes a page
|
void |
deleteSpace(Space space)
Deletes a space object given the unique key spaceName from the persistence store
|
boolean |
isSpaceInEnvironment(Space space,
Environment env)
Determines if a space is a member of the set of spaces for a given environment
|
boolean |
isUserSpace(Space space)
Returns true if the space is from a user space folder.
|
List<Environment> |
listEnvironments()
List all environments in the portal
|
List<Folder> |
listFolders(Space space)
List all folders in the given space
|
List<Link> |
listLinks(Space space)
List all links in the given space
|
List<Page> |
listPages(Space space)
List all pages in the given space
|
List<Space> |
listSpaces()
Lists all unique spaces in the portal, regardless of environment
|
List<Space> |
listSpaces(String envName)
Lists all spaces for a given environment
|
Environment |
lookupEnvironment(String envName)
Looks up an environment object given the unique key envName from the persistence store
|
Space |
lookupSpace(String spaceName)
Looks up a space object given the unique key spaceName from the persistence store
|
Space |
lookupUserSpace(String username)
Retrieve the user space for a user
|
void |
removeSpaceFromEnvironment(Space space,
Environment env)
Removes a space from the list of spaces for the given environment
|
void |
storeEnvironment(Environment env)
Store an environment to the portal
|
void |
storeSpace(Space space)
Stores a space to the portal
|
static final String ENVIRONMENTS_LOCATION
static final String DEFAULT_ENVIRONMENT
static final String DEFAULT_SPACE
List<Environment> listEnvironments()
Environment createEnvironment(String envName, String owner) throws SpacesException
envName
- the unique name of the environment to createSpacesException
- in case the object could not be persistedvoid storeEnvironment(Environment env) throws SpacesException
env
- the environment object to be persistedSpacesException
- in case the object could not be persistedvoid deleteEnvironment(Environment env) throws SpacesException
env
- the environment object to deleteSpacesException
- in case the object could not be deletedEnvironment lookupEnvironment(String envName)
envName
- the unique name of the environment object to lookupList<Space> listSpaces()
List<Space> listSpaces(String envName)
envName
- filter the space list result by the envNameSpace createSpace(String spaceName, String owner, Folder templateFolder, String title, String shortTitle, String description, String theme, String constraint) throws SpacesException
spaceName
- owner
- templateFolder
- title
- shortTitle
- description
- theme
- SpacesException
void storeSpace(Space space) throws SpacesException
space
- the space object to be persistedSpacesException
- in case the object could not be persistedvoid deleteSpace(Space space) throws SpacesException
space
- the space object to deleteSpacesException
- in case the object could not be deletedSpace lookupSpace(String spaceName)
spaceName
- the unique name of the space object to lookupSpace lookupUserSpace(String username)
username
- boolean isUserSpace(Space space)
space
- void addSpaceToEnvironment(Space space, Environment env) throws SpacesException
space
- env
- SpacesException
- in case the object could not be addedvoid removeSpaceFromEnvironment(Space space, Environment env) throws SpacesException
space
- env
- SpacesException
- in case the object could not be addedboolean isSpaceInEnvironment(Space space, Environment env)
space
- env
- void deletePage(Page page) throws SpacesException
page
- the page to be deletedSpacesException
- in case the object could not be deletedList<Page> listPages(Space space)
space
- the space to filter the set of pages byList<Link> listLinks(Space space)
space
- the space to filter the set of links byCopyright © 1999–2016 The Apache Software Foundation. All rights reserved.