Class AbstractUMObject<T>

    • Field Detail

      • currentArtifact

        protected T currentArtifact
    • Constructor Detail

      • AbstractUMObject

        public AbstractUMObject()
    • Method Detail

      • 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.