Class LogbookLifeCyclesClientHelper


  • @Deprecated
    public class LogbookLifeCyclesClientHelper
    extends java.lang.Object
    Deprecated.
    Helper implementation of LogbookLifeCyclesClient
    • Constructor Detail

      • LogbookLifeCyclesClientHelper

        public LogbookLifeCyclesClientHelper()
        Deprecated.
        Constructor
    • Method Detail

      • checkLogbookParameters

        public static final java.lang.String checkLogbookParameters​(LogbookLifeCycleParameters parameters)
        Deprecated.
        Check validity of the input and add default date and ServerIdentity
        Parameters:
        parameters - to check
        Returns:
        the primary key
      • createDelegate

        public void createDelegate​(LogbookLifeCycleParameters parameters)
                            throws LogbookClientAlreadyExistsException
        Deprecated.
        Create logbook entry using delegation

        To be used ONLY once at top level of process startup (where objectIdentifier is set for the first time).
        Parameters:
        parameters - the entry parameters (can be reused and modified after without impacting the one created)
        Throws:
        LogbookClientAlreadyExistsException - if the element already exists
        java.lang.IllegalArgumentException - if some mandatories parameters are empty or null
      • updateDelegate

        public void updateDelegate​(LogbookLifeCycleParameters parameters)
                            throws LogbookClientNotFoundException
        Deprecated.
        Update logbook entry using delegation

        To be used everywhere except very first time if creation (when objectIdentifier already used once)
        Parameters:
        parameters - the entry parameters (can be reused and modified after without impacting the one updated)
        Throws:
        LogbookClientNotFoundException - if the element does not yet exists (createDeletage not called before)
        java.lang.IllegalArgumentException - if some mandatories parameters are empty or null
      • removeCreateDelegate

        public java.util.Queue<LogbookLifeCycleParameters> removeCreateDelegate​(java.lang.String key)
        Deprecated.
        Parameters:
        key - of element to remove
        Returns:
        the associated finalize Delegate Queue for creation
      • removeUpdateDelegate

        public java.util.Queue<LogbookLifeCycleParameters> removeUpdateDelegate​(java.lang.String key)
        Deprecated.
        Parameters:
        key - of element to remove
        Returns:
        the associated finalize Delegate Queue for update
      • containsUpdate

        public boolean containsUpdate​(java.lang.String key)
        Deprecated.
        Parameters:
        key - of element to remove
        Returns:
        the associated finalize Delegate Queue for update
      • containsCreate

        public boolean containsCreate​(java.lang.String key)
        Deprecated.
      • getAllCreations

        public java.util.Set<java.util.Map.Entry<java.lang.String,​java.util.Queue<LogbookLifeCycleParameters>>> getAllCreations()
        Deprecated.
        Returns:
        the Set of LifeCycles entries in creation mode
      • getAllUpdates

        public java.util.Set<java.util.Map.Entry<java.lang.String,​java.util.Queue<LogbookLifeCycleParameters>>> getAllUpdates()
        Deprecated.
        Returns:
        the Set of LifeCycles entries in update mode
      • clear

        public void clear()
        Deprecated.
        Clear the underlying data structures
      • updateDelegateWithKey

        public void updateDelegateWithKey​(java.lang.String key,
                                          LogbookLifeCycleParameters parameters)
        Deprecated.