Class AbstractUMRootObject<T>

All Implemented Interfaces:
Resource, Adaptable
Direct Known Subclasses:
GroupRootObject, UserRootObject

public abstract class AbstractUMRootObject<T> extends PaginableObject<T>
  • Field Details

  • Constructor Details

    • AbstractUMRootObject

      public AbstractUMRootObject()
  • Method Details

    • initialize

      protected void initialize(Object... args)
      Overrides:
      initialize in class PaginableObject<T>
    • getArtifactWebObject

      public Object getArtifactWebObject(String artName)
    • createNew

      public javax.ws.rs.core.Response createNew(T artifact)
    • search

      public List<T> search()
    • getParams

      protected Object[] getParams()
      Overrides:
      getParams in class PaginableObject<T>
    • getArtifact

      protected abstract T getArtifact(String id)
      Returns the artifact given its id.
    • getArtifactType

      protected abstract String getArtifactType()
      Returns the type of the current artifact needed for AbstractResource.newObject(String, Object...).
    • checkPrecondition

      protected abstract void checkPrecondition(T artifact)
      Checks the precondition to create an artifact (for instance validity, duplicate detection, guards...).
    • createArtifact

      protected abstract T createArtifact(T artifact)
      Persist an artifact in the underlying persistence system.
    • checkCurrentUserCanCreateArtifact

      protected void checkCurrentUserCanCreateArtifact(T artifact)