|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentStore
Graffito content store. This interface can be used to plug any kind of content server into Graffito. Depending on the content server type, the implementation has to manage the permissions.
Method Summary | |
---|---|
void |
close()
Close the connection to this store |
void |
delete(java.lang.Object object)
Delete any kind of object (CmsObject, Server, HistoryElement, ...) |
void |
deleteAll(java.lang.Class clazz,
org.apache.portals.graffito.services.search.Filter filter)
Delete all object matching to a query |
java.util.Collection |
getChildren(java.lang.String parentUri)
Get cms object childen found in a folder. |
org.apache.portals.graffito.model.core.CmsObject |
getCmsObject(java.lang.String uri)
Get a cms object |
java.util.Collection |
getCollectionByQuery(java.lang.Class clazz,
org.apache.portals.graffito.services.search.Filter filter)
Get collection of object matching to a query |
java.util.Collection |
getContents(java.lang.String parentUri)
Get contents found in a parent folder. |
java.util.Collection |
getFolders(java.lang.String parentUri)
Get folders found in a parent folder. |
org.apache.portals.graffito.model.core.HistoryElement |
getHistory(org.apache.portals.graffito.model.core.VersionnedContent versionnedContent)
Get the version history element defined from a content. |
java.util.Iterator |
getIteratorByQuery(java.lang.Class clazz,
org.apache.portals.graffito.services.search.Filter filter)
Get an iterator of object matching to a query |
java.util.Collection |
getLinks(java.lang.String parentUri)
Get links found in a parent folder. |
java.lang.Object |
getObjectByQuery(java.lang.Class clazz,
org.apache.portals.graffito.services.search.Filter filter)
Get an object matching to a query |
java.lang.String |
getScope()
Get the content store scope |
void |
insert(java.lang.Object object)
Insert a new object in the content store |
void |
insertHistoryElement(org.apache.portals.graffito.model.core.HistoryElement historyElement)
Add a new history element |
boolean |
isClosed()
Check if the connection to this store is closed |
org.apache.portals.graffito.services.search.Filter |
newFilter()
Instantiate a new empty filter object |
void |
update(java.lang.Object object)
Update a new object in the content store |
Method Detail |
---|
org.apache.portals.graffito.model.core.CmsObject getCmsObject(java.lang.String uri) throws org.apache.portals.graffito.exception.CmsPermissionException
uri
- The cms object uri
org.apache.portals.graffito.exception.CmsPermissionException
- when the user has not suffisiant privilegesjava.util.Collection getChildren(java.lang.String parentUri) throws org.apache.portals.graffito.exception.CmsPermissionException
parentUri
- The parent folder uri from which the cms objects have to be retrieved
org.apache.portals.graffito.exception.CmsPermissionException
- when the user has not suffisiant privilegesjava.util.Collection getFolders(java.lang.String parentUri) throws org.apache.portals.graffito.exception.CmsPermissionException
parentUri
- The parent folder uri from which the folders have to be retrieved
org.apache.portals.graffito.exception.CmsPermissionException
- when the user has not suffisiant privilegesjava.util.Collection getContents(java.lang.String parentUri) throws org.apache.portals.graffito.exception.CmsPermissionException
parentUri
- The parent folder uri from which the contents have to be retrieved
org.apache.portals.graffito.exception.CmsPermissionException
- when the user has not suffisiant privilegesjava.util.Collection getLinks(java.lang.String parentUri) throws org.apache.portals.graffito.exception.CmsPermissionException
parentUri
- The parent folder uri from which the links have to be retrieved
org.apache.portals.graffito.exception.CmsPermissionException
- when the user has not suffisiant privilegesvoid insertHistoryElement(org.apache.portals.graffito.model.core.HistoryElement historyElement) throws ContentPersistenceException, org.apache.portals.graffito.exception.CmsPermissionException
historyElement
-
ContentPersistenceException
- when it is not possible to insert the object
org.apache.portals.graffito.exception.CmsPermissionException
- when the user has not suffisiant privilegesorg.apache.portals.graffito.model.core.HistoryElement getHistory(org.apache.portals.graffito.model.core.VersionnedContent versionnedContent) throws org.apache.portals.graffito.exception.CmsPermissionException
HistoryElement.getPrevious()
versionnedContent
- The versionned content for which the version history has be found
org.apache.portals.graffito.exception.CmsPermissionException
- when the user has not suffisiant privilegesorg.apache.portals.graffito.services.search.Filter newFilter()
java.lang.Object getObjectByQuery(java.lang.Class clazz, org.apache.portals.graffito.services.search.Filter filter) throws org.apache.portals.graffito.exception.CmsPermissionException
clazz
- The class on which the query has to be exexutedfilter
- The filter used by the query
org.apache.portals.graffito.exception.CmsPermissionException
- when the user has not suffisiant privilegesjava.util.Collection getCollectionByQuery(java.lang.Class clazz, org.apache.portals.graffito.services.search.Filter filter) throws org.apache.portals.graffito.exception.CmsPermissionException
clazz
- The class on which the query has to be exexutedfilter
- The filter used by the query
CmsObject
org.apache.portals.graffito.exception.CmsPermissionException
- when the user has not suffisiant privilegesjava.util.Iterator getIteratorByQuery(java.lang.Class clazz, org.apache.portals.graffito.services.search.Filter filter) throws org.apache.portals.graffito.exception.CmsPermissionException
clazz
- The class on which the query has to be exexutedfilter
- The filter used by the query
CmsObject
org.apache.portals.graffito.exception.CmsPermissionException
- when the user has not suffisiant privilegesvoid delete(java.lang.Object object) throws ContentPersistenceException, org.apache.portals.graffito.exception.CmsPermissionException
object
- The object to delete
ContentPersistenceException
- when it is not possible to delete the object
org.apache.portals.graffito.exception.CmsPermissionException
- when the user has not suffisiant privilegesvoid deleteAll(java.lang.Class clazz, org.apache.portals.graffito.services.search.Filter filter) throws ContentPersistenceException, org.apache.portals.graffito.exception.CmsPermissionException
clazz
- The class on which the query has to be exexutedfilter
- The filter used by the query
ContentPersistenceException
- when it is not possible to delete the objects
org.apache.portals.graffito.exception.CmsPermissionException
- when the user has not suffisiant privilegesvoid insert(java.lang.Object object) throws ContentPersistenceException, org.apache.portals.graffito.exception.CmsPermissionException
object
- The object to insert
ContentPersistenceException
- when it is not possible to insert the object
org.apache.portals.graffito.exception.CmsPermissionException
- when the user has not suffisiant privilegesvoid update(java.lang.Object object) throws ContentPersistenceException, org.apache.portals.graffito.exception.CmsPermissionException
object
- The object to update
ContentPersistenceException
- when it is not possible to update the object
org.apache.portals.graffito.exception.CmsPermissionException
- when the user has not suffisiant privilegesboolean isClosed()
void close()
java.lang.String getScope()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |