Interface ContactService

All Superinterfaces:
BaseImmutableService<Contact>, BaseReadOnlyService<Contact>, BaseService<Contact>
All Known Implementing Classes:
ContactServiceImpl

public interface ContactService extends BaseService<Contact>
Author:
kelsey
  • Method Details

    • find

      @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_READ_QUIET"}) Contact find(Contact contact)
      Description copied from interface: BaseReadOnlyService
      Does a search for the entity in the persistent storage
      Specified by:
      find in interface BaseReadOnlyService<Contact>
      Parameters:
      contact - the entity to be searched for
      Returns:
      the version of entity retrieved from the persistent storage, if found, otherwise null.
    • findOrCreate

      @Secured("GROUP_USER") Contact findOrCreate(Contact contact)
      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<Contact>
      Parameters:
      contact - 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","ACL_SECURABLE_EDIT"}) void remove(Contact contact)
      Description copied from interface: BaseImmutableService
      Removes the given entity from the persistent storage.
      Specified by:
      remove in interface BaseImmutableService<Contact>
      Parameters:
      contact - the entity to be removed.
    • update

      @Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void update(Contact contact)
      Description copied from interface: BaseService
      Updates the given entity in the persistent storage.
      Specified by:
      update in interface BaseService<Contact>
      Parameters:
      contact - the entity to be updated.