private static void writeLoggingProperties ( final XmlSerializer xmlw , final LoggingProperties logging ) throws IllegalArgumentException , IllegalStateException , IOException { Utility . assertNotNull ( "logging.LogOperationTypes" , logging . getLogOperationTypes ( ) ) ; // Logging xmlw . startTag ( Constants . EMPTY_STRING , Constants . AnalyticsConstants . LOGGING_ELEMENT ) ; // Version Utility . serializeElement ( xmlw , Constants . AnalyticsConstants . VERSION_ELEMENT , logging . getVersion ( ) ) ; // Delete Utility . serializeElement ( xmlw , Constants . AnalyticsConstants . DELETE_ELEMENT , logging . getLogOperationTypes ( ) . contains ( LoggingOperations . DELETE ) ? Constants . TRUE : Constants . FALSE ) ; // Read Utility . serializeElement ( xmlw , Constants . AnalyticsConstants . READ_ELEMENT , logging . getLogOperationTypes ( ) . contains ( LoggingOperations . READ ) ? Constants . TRUE : Constants . FALSE ) ; // Write Utility . serializeElement ( xmlw , Constants . AnalyticsConstants . WRITE_ELEMENT , logging . getLogOperationTypes ( ) . contains ( LoggingOperations . WRITE ) ? Constants . TRUE : Constants . FALSE ) ; // Retention Policy writeRetentionPolicy ( xmlw , logging . getRetentionIntervalInDays ( ) ) ; // end Logging xmlw . endTag ( Constants . EMPTY_STRING , Constants . AnalyticsConstants . LOGGING_ELEMENT ) ; }
Writes the given logging properties to the XMLStreamWriter .