Interface I_VersionedCRUD

All Known Subinterfaces:
I_CompositionAccess, I_FolderAccess, I_StatusAccess
All Known Implementing Classes:
CompositionAccess, FolderAccess, FolderHistoryAccess, StatusAccess

public interface I_VersionedCRUD
Common interface for versioned objects, like compositions, folders and statuses.
  • Method Details

    • commit

      UUID commit(LocalDateTime timestamp, UUID committerId, UUID systemId, String description)
      Commit the object with the necessary metadata.
      Parameters:
      timestamp - Time of operation
      committerId - Audit committer
      systemId - Audit system
      description - (Optional) Audit description
      Returns:
      ID of object
    • commit

      UUID commit(LocalDateTime timestamp, UUID contribution)
      Commit the object with the necessary metadata, which will be derived from the contribution.
      Parameters:
      timestamp - Time of operation
      contribution - Given contribution to use and derive audit data from
      Returns:
      ID of object
    • update

      boolean update(LocalDateTime timestamp, UUID committerId, UUID systemId, String description, I_ConceptAccess.ContributionChangeType changeType)
      Update the object with the necessary metadata.
      Parameters:
      timestamp - Time of operation
      committerId - Audit committer
      systemId - Audit system
      description - (Optional) Audit description
      changeType - Specific change type, because there are more than DELETED.
      Returns:
      Boolean representing success of update
    • update

      boolean update(LocalDateTime timestamp, UUID contribution)
      Update the object with the necessary metadata, which will be derived from the contribution.
      Parameters:
      timestamp - Time of operation
      contribution - Given contribution to use and derive audit data from
      Returns:
      Boolean representing success of update
    • delete

      int delete(LocalDateTime timestamp, UUID committerId, UUID systemId, String description)
      Delete the object with the necessary metadata.
      Parameters:
      timestamp - Time of operation
      committerId - Audit committer
      systemId - Audit system
      description - (Optional) Audit description
      Returns:
      Number of deleted objects
    • delete

      int delete(LocalDateTime timestamp, UUID contribution)
      Delete the object with the necessary metadata, which will be derived from the contribution.
      Parameters:
      timestamp - Time of operation
      contribution - Given contribution to use and derive audit data from
      Returns:
      Number of deleted objects