Class ProjectNotesProcessBase<E,I>

java.lang.Object
com.skava.promotion.process.ProjectNotesProcessBase<E,I>
All Implemented Interfaces:
BaseProcess<E,I>
Direct Known Subclasses:
ProjectNotesProcess

@Component public class ProjectNotesProcessBase<E,I> extends Object implements BaseProcess<E,I>
Class that hold the functionality to process project notes
Since:
8.0
Version:
8.0
Author:
Infosys Equinox
  • Field Details

    • versionProcess

      @Autowired public VersionProcess versionProcess
      Holds the instance of VersionProcess
    • collectionAttributeProcess

      @Autowired public CollectionAttributeProcess collectionAttributeProcess
      Holds the instance of CollectionAttributeProcess
  • Constructor Details

    • ProjectNotesProcessBase

      public ProjectNotesProcessBase()
  • Method Details

    • isIDExist

      public boolean isIDExist(E entity, org.springframework.data.mongodb.repository.MongoRepository<E,I> repository)
      Functionality to check the existence of the ID
      Specified by:
      isIDExist in interface BaseProcess<E,I>
      Parameters:
      entity - Generic type parameter E. It holds instance of entity
      repository - An Instance of MongoRepository OR extended instance of MongoRepository
      Returns:
      return true if document exists. default false.
    • updateIdentifier

      public void updateIdentifier(E entity, long retryCount)
      Functionality to update the Identifier
      Specified by:
      updateIdentifier in interface BaseProcess<E,I>
      Parameters:
      entity - Generic type parameter E. It holds instance of entity
      retryCount - Long value. Holds the unique identifier generation retry count