Class LoggerConfigurationEntity

  • All Implemented Interfaces:
    Serializable, WebEntity

    public class LoggerConfigurationEntity
    extends Object
    implements WebEntity
    Web entity used to carries the configuration of a given logger between a client and a REST resource.
    Author:
    mmoquillon
    See Also:
    Serialized Form
    • Field Detail

      • PARENT_LEVEL

        public static final String PARENT_LEVEL
        Constant that defines the level of a logger is the one of one of its parent. It is defaulted to one of its parent logger.
        See Also:
        Constant Field Values
    • Constructor Detail

      • LoggerConfigurationEntity

        protected LoggerConfigurationEntity()
    • Method Detail

      • toWebEntity

        public static LoggerConfigurationEntity toWebEntity​(org.silverpeas.kernel.logging.LoggerConfigurationManager.LoggerConfiguration configuration)
        Constructs from the specified logger configuration its Web entity representation ready to be serialized in a given format (MIME type).
        Parameters:
        configuration - a logger configuration.
        Returns:
        the Web entity representation of the logger configuration.
      • getURI

        public URI getURI()
        Gets the URI at which this web entity is published and can be accessed.
        Specified by:
        getURI in interface WebEntity
        Returns:
        the web entity URI.
      • getLogger

        public String getLogger()
      • getLevel

        public String getLevel()
      • toLoggerConfiguration

        public org.silverpeas.kernel.logging.LoggerConfigurationManager.LoggerConfiguration toLoggerConfiguration()