public abstract class AbstractSpaceProvider extends Object implements SpaceProvider
Constructor and Description |
---|
AbstractSpaceProvider() |
Modifier and Type | Method and Description |
---|---|
void |
add(Space o,
CoreSession session,
Map<String,String> params) |
void |
addAll(Collection<? extends Space> c,
CoreSession session) |
void |
clear(CoreSession session) |
List<Space> |
getAll(CoreSession session,
DocumentModel contextDocument) |
String |
getName()
Gets
SpaceProvider 's name. |
Space |
getSpace(CoreSession session,
DocumentModel contextDocument,
String spaceName) |
Space |
getSpace(CoreSession session,
DocumentModel contextDocument,
String spaceName,
Map<String,String> parameters) |
List<Space> |
getSpaces(Space space,
CoreSession session) |
void |
initialize(String name,
Map<String,String> params) |
boolean |
isEmpty(CoreSession session,
DocumentModel contextDocument) |
boolean |
remove(Space space,
CoreSession session) |
long |
size(CoreSession session,
DocumentModel contextDocument) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isReadOnly
public void initialize(String name, Map<String,String> params) throws SpaceException
initialize
in interface SpaceProvider
SpaceException
public final String getName()
SpaceProvider
SpaceProvider
's name.getName
in interface SpaceProvider
public final Space getSpace(CoreSession session, DocumentModel contextDocument, String spaceName, Map<String,String> parameters) throws SpaceException
getSpace
in interface SpaceProvider
SpaceException
public final Space getSpace(CoreSession session, DocumentModel contextDocument, String spaceName) throws SpaceException
getSpace
in interface SpaceProvider
SpaceException
public List<Space> getAll(CoreSession session, DocumentModel contextDocument) throws SpaceException
getAll
in interface SpaceProvider
SpaceException
public boolean isEmpty(CoreSession session, DocumentModel contextDocument) throws SpaceException
isEmpty
in interface SpaceProvider
SpaceException
public long size(CoreSession session, DocumentModel contextDocument) throws SpaceException
size
in interface SpaceProvider
SpaceException
public void add(Space o, CoreSession session, Map<String,String> params) throws SpaceException
add
in interface SpaceProvider
SpaceException
public void addAll(Collection<? extends Space> c, CoreSession session) throws SpaceException
addAll
in interface SpaceProvider
SpaceException
public boolean remove(Space space, CoreSession session) throws SpaceException
remove
in interface SpaceProvider
SpaceException
public void clear(CoreSession session) throws SpaceException
clear
in interface SpaceProvider
SpaceException
public List<Space> getSpaces(Space space, CoreSession session)
Copyright © 2013 Nuxeo SA. All Rights Reserved.