Class AbstractTransactionalResource
- java.lang.Object
-
- org.restlet.resource.Resource
-
- org.restlet.resource.ServerResource
-
- net.ontopia.topicmaps.rest.resources.AbstractOntopiaResource
-
- net.ontopia.topicmaps.rest.resources.AbstractPagedResource
-
- net.ontopia.topicmaps.rest.resources.AbstractTransactionalResource
-
- Direct Known Subclasses:
AbstractTMObjectResource,AssociationsResource,AssociationTypesResource,IndexResource,IndexResource,IndexResource,OccurrencesResource,OccurrenceTypesResource,QueryResource,RolesResource,RoleTypesResource,ScopesResource,SearcherResource,StatisticsResource,TopicMapReloadResource,TopicMapResource,TopicNamesResource,TopicNameTypesResource,TopicsResource,TopicTypesResource,VariantsResource
public class AbstractTransactionalResource extends AbstractPagedResource
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanopenStoreprotected TopicMapStoreIFstore-
Fields inherited from class net.ontopia.topicmaps.rest.resources.AbstractPagedResource
limit, offset, paging
-
-
Constructor Summary
Constructors Constructor Description AbstractTransactionalResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInit()protected voiddoRelease()protected <I extends IndexIF>
IgetIndex(Class<I> indexClass)protected booleangetReadOnly()protected <C> CgetRequestParameter(Class<C> klass, boolean allowNull)protected <C> CgetRequestParameter(Class<C> klass, String name, boolean allowNull)protected TopicMapIFgetTopicMap()protected <C> CoptionalRequestParameter(Parameters<C> parameter)protected <C> CrequiredRequestParameter(Parameters<C> parameter)protected voidsetInfoHeaders()-
Methods inherited from class net.ontopia.topicmaps.rest.resources.AbstractPagedResource
addPagingHeaders, getLimit, getOffset, isPageable, isPaging, page, setLimit, setOffset, setPaging, toRepresentation
-
Methods inherited from class net.ontopia.topicmaps.rest.resources.AbstractOntopiaResource
addMixInAnnotations, addResponseHeader, blockMimeType, doError, getController, getIntegerFromQuery, getMixInAnnotationsMap, getOntopia, getTopicMapReference
-
Methods inherited from class org.restlet.resource.ServerResource
abort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doHandle, doHandle, doNegotiatedHandle, get, get, getAttribute, getDescription, getInfo, getInfo, getName, getOnSent, getPreferredVariant, getRole, getVariants, getVariants, handle, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, options, patch, patch, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAttribute, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDescription, setDimensions, setExisting, setLocationRef, setLocationRef, setName, setNegotiated, setOnSent, setProxyChallengeRequests, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensions
-
Methods inherited from class org.restlet.resource.Resource
doError, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getConnegService, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMatrixValue, getMaxForwards, getMetadataService, getMethod, getOriginalRef, getProtocol, getProxyChallengeRequests, getProxyChallengeResponse, getQuery, getQueryValue, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestCacheDirectives, getRequestEntity, getResponse, getResponseAttributes, getResponseCacheDirectives, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, isLoggable, release, setApplication, setQueryValue, setRequest, setResponse, toBoolean, toByte, toDouble, toFloat, toInteger, toLong, toObject, toRepresentation, toRepresentation, toShort, toString
-
-
-
-
Field Detail
-
store
protected TopicMapStoreIF store
-
openStore
protected boolean openStore
-
-
Method Detail
-
doInit
protected void doInit() throws org.restlet.resource.ResourceException- Overrides:
doInitin classAbstractPagedResource- Throws:
org.restlet.resource.ResourceException
-
setInfoHeaders
protected void setInfoHeaders()
- Overrides:
setInfoHeadersin classAbstractOntopiaResource
-
doRelease
protected void doRelease() throws org.restlet.resource.ResourceException- Overrides:
doReleasein classorg.restlet.resource.Resource- Throws:
org.restlet.resource.ResourceException
-
getReadOnly
protected boolean getReadOnly()
-
getTopicMap
protected TopicMapIF getTopicMap()
-
getRequestParameter
protected <C> C getRequestParameter(Class<C> klass, boolean allowNull)
-
getRequestParameter
protected <C> C getRequestParameter(Class<C> klass, String name, boolean allowNull)
-
requiredRequestParameter
protected <C> C requiredRequestParameter(Parameters<C> parameter)
-
optionalRequestParameter
protected <C> C optionalRequestParameter(Parameters<C> parameter)
-
-