Class DocumentObject

All Implemented Interfaces:
Resource, Adaptable
Direct Known Subclasses:
DocumentRoot, JSONDocumentObject

@Produces("text/html; charset=UTF-8") public class DocumentObject extends DefaultObject
Author:
Bogdan Stefanescu
  • Field Details

  • Constructor Details

    • DocumentObject

      public DocumentObject()
  • Method Details

    • getAdapter

      public <A> A getAdapter(Class<A> adapter)
      Description copied from interface: Adaptable
      Returns an object which is an instance of the given class associated with this object. Returns null if no such object can be found.
      Specified by:
      getAdapter in interface Adaptable
      Overrides:
      getAdapter in class AbstractResource<ResourceTypeImpl>
      Parameters:
      adapter - the adapter class to look up
      Returns:
      a object castable to the given class, or null if this object does not have an adapter for the given class
    • initialize

      public void initialize(Object... args)
      Overrides:
      initialize in class AbstractResource<ResourceTypeImpl>
    • doGet

      @GET public jakarta.ws.rs.core.Response doGet()
    • getDelete

      @GET @Path("@delete") public jakarta.ws.rs.core.Response getDelete()
    • search

      @GET @Path("@search") public Object search()
    • doDelete

      @DELETE public jakarta.ws.rs.core.Response doDelete()
    • doPost

      @POST public jakarta.ws.rs.core.Response doPost(@FormParam("name") String name, jakarta.ws.rs.core.MultivaluedMap<String,String> formParams)
    • doPut

      @PUT public jakarta.ws.rs.core.Response doPut(@FormParam("versioning") @DefaultValue("NONE") VersioningOption versioningOption, jakarta.ws.rs.core.MultivaluedMap<String,String> formParams)
    • getPut

      @POST @Path("@put") public jakarta.ws.rs.core.Response getPut(@FormParam("versioning") @DefaultValue("NONE") VersioningOption versioningOption, jakarta.ws.rs.core.MultivaluedMap<String,String> formParams)
    • traverse

      @Path("{path}") public Resource traverse(@PathParam("path") String path)
    • newDocument

      public DocumentObject newDocument(String path)
    • newDocument

      public DocumentObject newDocument(DocumentRef ref)
    • newDocument

      public DocumentObject newDocument(DocumentModel doc)
    • getCoreSession

      public CoreSession getCoreSession()
    • getDocument

      public DocumentModel getDocument()
    • getTitle

      public String getTitle()