Class ReportAccountingImpl

  • All Implemented Interfaces:
    Report

    public class ReportAccountingImpl
    extends Object
    implements Report
    • Field Detail

      • accountingPersistence

        public org.gcube.accounting.persistence.AccountingPersistence accountingPersistence
    • Constructor Detail

      • ReportAccountingImpl

        public ReportAccountingImpl()
    • Method Detail

      • init

        public void init()
        Specified by:
        init in interface Report
      • setGenericProperties

        public org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord setGenericProperties​(org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord sur,
                                                                                                   String resourceType,
                                                                                                   String consumerId,
                                                                                                   String resourceScope,
                                                                                                   String creationTime,
                                                                                                   String lastAccess,
                                                                                                   String owner,
                                                                                                   String operation,
                                                                                                   String size)
        Description copied from interface: Report
        Set generic properties of report
        Specified by:
        setGenericProperties in interface Report
        Returns:
      • setProviderUri

        protected org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord setProviderUri​(org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord sur,
                                                                                                String resourceScope)
                                                                                         throws org.gcube.documentstore.exception.InvalidValueException,
                                                                                                URISyntaxException
        Throws:
        org.gcube.documentstore.exception.InvalidValueException
        URISyntaxException
      • buildProviderURI

        protected String buildProviderURI​(String resourceScope)
      • setSpecificProperties

        public org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord setSpecificProperties​(org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord sur,
                                                                                                    String filePath,
                                                                                                    String dataType,
                                                                                                    String callerIP,
                                                                                                    String id)
        Description copied from interface: Report
        Set end time of operation and other specific properties
        Specified by:
        setSpecificProperties in interface Report
        Returns:
      • printRecord

        public void printRecord​(org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord record)
        Specified by:
        printRecord in interface Report
      • send

        public void send​(org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord sur)
        Description copied from interface: Report
        send report
        Specified by:
        send in interface Report
      • getProviderUri

        public String getProviderUri()