Package org.gatein.exports.data

Examples of org.gatein.exports.data.ExportContext


      if (exportByValueRequired || (exportPersistenceManager == null && preferExportByValue))
      {
         useExportByValue = true;
      }
     
      return new ExportContext(useExportByValue, currentTime, terminationTime, refreshDuration);
   }
View Full Code Here


         double version = ExportData.getVersion(exportContextBytes);

         if (getPersistenceManager().supports(type, version))
         {
            String refId = getPersistenceManager().getExportReferenceId(type, version, ExportData.getInternalBytes(exportContextBytes));
            ExportContext exportContext = getPersistenceManager().getExportContext(refId);

            if (exportContext.isExportByValue())
            {
               throw new OperationFailedException("Cannot set the lifetime for an export that was exported by value.");
            }

            exportContext.setCurrentTime(currentTime);
            exportContext.setTerminationTime(terminationTime);
            exportContext.setRefreshDuration(refreshDuration);

            ExportContext updatedExportContext = getPersistenceManager().updateExportContext(refId, exportContext);
            return updatedExportContext;
         }
         else
         {
            throw new OperationFailedException("Byte array format not recognized.");
View Full Code Here

TOP

Related Classes of org.gatein.exports.data.ExportContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.