Class LogbookParametersFactory


  • public class LogbookParametersFactory
    extends java.lang.Object
    Logbook parameters factory
    Factory to get LogbookParameters object
    Example:
         
          // Retrieves logbook operation parameters with standard required fields
          LogbookOperationParameters parameters = LogbookParametersFactory.getLogbookOperationParameters();
    
          // Retrieves logbook operation parameters with standard required fields and specifics required fields
          Set<LogbookParameterName> specificMandatoryFields = new HashSet<>()
          // add specific fields
          specificMandatoryFields.add(LogbookParameterName.objectIdentifier);
          specificMandatoryFields.add(LogbookParameterName.agentIdentifier);
    
          // Retrieves parameter object
          parameters = LogbookParametersFactory.getLogbookOperationParameters(specificMandatoryFields);
         
     
    • Method Detail

      • newLogbookOperationParameters

        public static LogbookOperationParameters newLogbookOperationParameters()
        Get a new Empty LogbookOperationParameters object.
        Use in internal assignment. Not recommended in general usage.
        Returns:
        the LogbookOperationParameters
      • getDefaultOperationMandatory

        public static java.util.Set<LogbookParameterName> getDefaultOperationMandatory()
        Returns:
        the default Mandatory fields set for Operation