Class AbstractUMObject<T>

All Implemented Interfaces:
Resource, Adaptable
Direct Known Subclasses:
GroupObject, UserObject

public abstract class AbstractUMObject<T> extends DefaultObject
Abstract WebObject class that handle retrieve, deletion and update of NuxeoPrincipal or NuxeoGroup.
Since:
5.7.3
  • Field Details

    • currentArtifact

      protected T currentArtifact
    • um

      protected UserManager um
  • Constructor Details

    • AbstractUMObject

      public AbstractUMObject()
  • Method Details

    • initialize

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

      public T doGetArtifact()
    • doUpdateArtifact

      public T doUpdateArtifact(T artifact)
    • doDeleteArtifact

      public javax.ws.rs.core.Response doDeleteArtifact()
    • checkUpdateGuardPreconditions

      protected void checkUpdateGuardPreconditions()
    • checkUpdateGuardPreconditions

      protected void checkUpdateGuardPreconditions(T artifact)
    • isAPowerUserEditableArtifact

      @Deprecated protected boolean isAPowerUserEditableArtifact()
      Deprecated.
      since 11.1, use isAPowerUserEditableArtifact(Object) instead.
      Check that the current artifact is editable by a power user. Basically this means not an admin user or not an admin group.
    • isAPowerUserEditableArtifact

      protected boolean isAPowerUserEditableArtifact(T artifact)
      Check the given artifact is editable by a power user. Basically this means not an admin user or not an admin group.
    • updateArtifact

      protected abstract T updateArtifact(T artifact)
      Updates the current artifact by the one given in parameters in the underlying persistence system.
      Parameters:
      artifact - the artifact that has been retrieved from request.
      Returns:
      the updated artifact.
    • deleteArtifact

      protected abstract void deleteArtifact()
      Deletes the current artifact in the underlying persistence system.