|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Spaces
Spaces Services
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_ENVIRONMENT
|
static java.lang.String |
DEFAULT_SPACE
|
static java.lang.String |
ENVIRONMENTS_LOCATION
|
Method Summary | |
---|---|
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(java.lang.String envName,
java.lang.String owner)
Creates an environment object and persists it |
Space |
createSpace(java.lang.String spaceName,
java.lang.String owner,
Folder templateFolder,
java.lang.String title,
java.lang.String shortTitle,
java.lang.String description,
java.lang.String theme,
java.lang.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. |
java.util.List<Environment> |
listEnvironments()
List all environments in the portal |
java.util.List<Folder> |
listFolders(Space space)
List all folders in the given space |
java.util.List<Link> |
listLinks(Space space)
List all links in the given space |
java.util.List<Page> |
listPages(Space space)
List all pages in the given space |
java.util.List<Space> |
listSpaces()
Lists all unique spaces in the portal, regardless of environment |
java.util.List<Space> |
listSpaces(java.lang.String envName)
Lists all spaces for a given environment |
Environment |
lookupEnvironment(java.lang.String envName)
Looks up an environment object given the unique key envName from the persistence store |
Space |
lookupSpace(java.lang.String spaceName)
Looks up a space object given the unique key spaceName from the persistence store |
Space |
lookupUserSpace(java.lang.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 |
Field Detail |
---|
static final java.lang.String ENVIRONMENTS_LOCATION
static final java.lang.String DEFAULT_ENVIRONMENT
static final java.lang.String DEFAULT_SPACE
Method Detail |
---|
java.util.List<Environment> listEnvironments()
Environment createEnvironment(java.lang.String envName, java.lang.String owner) throws SpacesException
envName
- the unique name of the environment to create
a
- SpacesException in case the object could not be persisted
SpacesException
void storeEnvironment(Environment env) throws SpacesException
env
- the environment object to be persisted
a
- SpacesException in case the object could not be persisted
SpacesException
void deleteEnvironment(Environment env) throws SpacesException
env
- the environment object to delete
a
- SpacesException in case the object could not be deleted
SpacesException
Environment lookupEnvironment(java.lang.String envName)
envName
- the unique name of the environment object to lookup
java.util.List<Space> listSpaces()
java.util.List<Space> listSpaces(java.lang.String envName)
envName
- filter the space list result by the envName
Space createSpace(java.lang.String spaceName, java.lang.String owner, Folder templateFolder, java.lang.String title, java.lang.String shortTitle, java.lang.String description, java.lang.String theme, java.lang.String constraint) throws SpacesException
spaceName
- owner
- templateFolder
- title
- shortTitle
- description
- theme
-
SpacesException
void storeSpace(Space space) throws SpacesException
space
- the space object to be persisted
a
- SpacesException in case the object could not be persisted
SpacesException
void deleteSpace(Space space) throws SpacesException
space
- the space object to delete
a
- SpacesException in case the object could not be deleted
SpacesException
Space lookupSpace(java.lang.String spaceName)
spaceName
- the unique name of the space object to lookup
Space lookupUserSpace(java.lang.String username)
username
-
boolean isUserSpace(Space space)
space
-
void addSpaceToEnvironment(Space space, Environment env) throws SpacesException
space
- env
-
a
- SpacesException in case the object could not be added
SpacesException
void removeSpaceFromEnvironment(Space space, Environment env) throws SpacesException
space
- env
-
a
- SpacesException in case the object could not be added
SpacesException
boolean isSpaceInEnvironment(Space space, Environment env)
space
- env
-
void deletePage(Page page) throws SpacesException
page
- the page to be deleted
a
- SpacesException in case the object could not be deleted
SpacesException
java.util.List<Page> listPages(Space space)
space
- the space to filter the set of pages by
java.util.List<Link> listLinks(Space space)
space
- the space to filter the set of links by
java.util.List<Folder> listFolders(Space space)
space
- the space to filter the set of folders by
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |