java.lang.Object
de.digitalcollections.cudami.server.business.impl.service.identifiable.entity.relation.PredicateServiceImpl
All Implemented Interfaces:
PredicateService

@Service
public class PredicateServiceImpl
extends java.lang.Object
implements PredicateService
Service for managing predicates
  • Constructor Summary

    Constructors
    Constructor Description
    PredicateServiceImpl()  
  • Method Summary

    Modifier and Type Method Description
    long count()  
    void delete​(java.lang.String value)  
    java.util.List<de.digitalcollections.model.api.identifiable.entity.relation.Predicate> findAll()  
    de.digitalcollections.model.api.identifiable.entity.relation.Predicate getByValue​(java.lang.String value)
    Returns a predicate, if available
    de.digitalcollections.model.api.identifiable.entity.relation.Predicate save​(de.digitalcollections.model.api.identifiable.entity.relation.Predicate predicate)
    Saves a predicate.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PredicateServiceImpl

      public PredicateServiceImpl()
  • Method Details

    • count

      public long count()
      Specified by:
      count in interface PredicateService
    • delete

      public void delete​(java.lang.String value)
      Specified by:
      delete in interface PredicateService
    • findAll

      public java.util.List<de.digitalcollections.model.api.identifiable.entity.relation.Predicate> findAll()
      Specified by:
      findAll in interface PredicateService
      Returns:
      list of all predicates
    • getByValue

      public de.digitalcollections.model.api.identifiable.entity.relation.Predicate getByValue​(java.lang.String value)
      Description copied from interface: PredicateService
      Returns a predicate, if available
      Specified by:
      getByValue in interface PredicateService
      Parameters:
      value - unique value of predicate, e.g. "is_part_of"
      Returns:
      Predicate or null
    • save

      public de.digitalcollections.model.api.identifiable.entity.relation.Predicate save​(de.digitalcollections.model.api.identifiable.entity.relation.Predicate predicate)
      Description copied from interface: PredicateService
      Saves a predicate. It can either be created or updated
      Specified by:
      save in interface PredicateService
      Returns:
      the predicate