Interface CompoundService

All Superinterfaces:
BaseImmutableService<Compound>, BaseReadOnlyService<Compound>
All Known Implementing Classes:
CompoundServiceImpl

public interface CompoundService extends BaseImmutableService<Compound>
Author:
kelsey
  • Method Details

    • findOrCreate

      @Secured("GROUP_USER") Compound findOrCreate(Compound compound)
      Description copied from interface: BaseImmutableService
      Does a search for the entity in the persistent storage, and if not found, creates it.
      Specified by:
      findOrCreate in interface BaseImmutableService<Compound>
      Parameters:
      compound - the entity to look for, and create if not found.
      Returns:
      the entity retrieved from the persistent storage, either found or created.
    • remove

      @Secured("GROUP_USER") void remove(Compound compound)
      Description copied from interface: BaseImmutableService
      Removes the given entity from the persistent storage.
      Specified by:
      remove in interface BaseImmutableService<Compound>
      Parameters:
      compound - the entity to be removed.