Class AbstractTransactionalResource

java.lang.Object
org.restlet.resource.Resource
org.restlet.resource.ServerResource
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 boolean
     
    protected TopicMapStoreIF
     

    Fields inherited from class net.ontopia.topicmaps.rest.resources.AbstractPagedResource

    limit, offset, paging
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     
    protected <I extends IndexIF>
    I
    getIndex(Class<I> indexClass)
     
    protected boolean
     
    protected <C> C
    getRequestParameter(Class<C> klass, boolean allowNull)
     
    protected <C> C
    getRequestParameter(Class<C> klass, String name, boolean allowNull)
     
    protected TopicMapIF
     
    protected <C> C
     
    protected <C> C
     
    protected void
     

    Methods inherited from class net.ontopia.topicmaps.rest.resources.AbstractPagedResource

    addPagingHeaders, getLimit, getOffset, isPageable, isPaging, page, setLimit, setOffset, setPaging, toRepresentation

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • store

      protected TopicMapStoreIF store
    • openStore

      protected boolean openStore
  • Constructor Details

    • AbstractTransactionalResource

      public AbstractTransactionalResource()
  • Method Details

    • doInit

      protected void doInit() throws org.restlet.resource.ResourceException
      Overrides:
      doInit in class AbstractPagedResource
      Throws:
      org.restlet.resource.ResourceException
    • setInfoHeaders

      protected void setInfoHeaders()
      Overrides:
      setInfoHeaders in class AbstractOntopiaResource
    • doRelease

      protected void doRelease() throws org.restlet.resource.ResourceException
      Overrides:
      doRelease in class org.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)
    • getIndex

      protected <I extends IndexIF> I getIndex(Class<I> indexClass)