org.nuxeo.ecm.spaces.api
Interface SpaceProvider
- All Known Implementing Classes:
- AbstractSpaceProvider, DashboardSpaceProvider, RootDocSpaceProvider, SingleDocSpaceProvider
public interface SpaceProvider
initialize
void initialize(Map<String,String> params)
throws Exception
- Throws:
Exception
getSpace
Space getSpace(String spaceName,
CoreSession session)
throws SpaceException
- Throws:
SpaceException
getAll
List<Space> getAll(CoreSession session)
throws SpaceException
- Throws:
SpaceException
add
void add(Space o,
CoreSession session)
throws SpaceException
- Throws:
SpaceException
addAll
void addAll(Collection<? extends Space> c,
CoreSession session)
throws SpaceException
- Throws:
SpaceException
clear
void clear(CoreSession session)
throws SpaceException
- Throws:
SpaceException
isEmpty
boolean isEmpty(CoreSession session)
throws SpaceException
- Throws:
SpaceException
remove
boolean remove(Space space,
CoreSession session)
throws SpaceException
- Throws:
SpaceException
size
long size(CoreSession session)
throws SpaceException
- Throws:
SpaceException
isReadOnly
boolean isReadOnly(CoreSession session)
getName
String getName()
throws SpaceException
- Gets
SpaceProvider
's name.
- Returns:
- provider name
- Throws:
SpaceException
- if space manager is not reachable
getAllSpaces
List<Space> getAllSpaces(CoreSession session)
- Gets all
Space
s supplied by SpaceProvider
. This method does not throw any exception,
it can be useful in some cases.
- Parameters:
session
- core session
- Returns:
- list of
Space
OR an empty list if no spaces are supplied by space provider (never returns null)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.