Class DataServices


  • public class DataServices
    extends java.lang.Object
    DataServices Class
    • Constructor Summary

      Constructors 
      Constructor Description
      DataServices()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​java.lang.Object> clearAssociatedRenderCache​(DispatchContext dctx, java.util.Map<java.lang.String,​java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> createBinaryFile​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      A service wrapper for the createBinaryFileMethod method.
      static java.util.Map<java.lang.String,​java.lang.Object> createBinaryFileMethod​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> createDataResource​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      A service wrapper for the createDataResourceMethod method.
      static java.util.Map<java.lang.String,​java.lang.Object> createDataResourceAndText​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> rcontext)
      A top-level service for creating a DataResource and ElectronicText together.
      static java.util.Map<java.lang.String,​java.lang.Object> createDataResourceMethod​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> rcontext)  
      static java.util.Map<java.lang.String,​java.lang.Object> createElectronicText​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      A service wrapper for the createElectronicTextMethod method.
      static java.util.Map<java.lang.String,​java.lang.Object> createElectronicTextMethod​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> createFile​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      A service wrapper for the createFileMethod method.
      static java.util.Map<java.lang.String,​java.lang.Object> createFileMethod​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> createFileNoPerm​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> rcontext)  
      static java.util.Map<java.lang.String,​java.lang.Object> createImage​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      A service wrapper for the createImageMethod method.
      static java.util.Map<java.lang.String,​java.lang.Object> createImageMethod​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> renderDataResourceAsText​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> updateBinaryFile​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      A service wrapper for the createBinaryFileMethod method.
      static java.util.Map<java.lang.String,​java.lang.Object> updateBinaryFileMethod​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> updateDataResource​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      A service wrapper for the updateDataResourceMethod method.
      static java.util.Map<java.lang.String,​java.lang.Object> updateDataResourceAndText​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      A top-level service for updating a DataResource and ElectronicText together.
      static java.util.Map<java.lang.String,​java.lang.Object> updateDataResourceMethod​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> updateElectronicText​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      A service wrapper for the updateElectronicTextMethod method.
      static java.util.Map<java.lang.String,​java.lang.Object> updateElectronicTextMethod​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Because sometimes a DataResource will exist, but no ElectronicText has been created, this method will create an ElectronicText if it does not exist.
      static java.util.Map<java.lang.String,​java.lang.Object> updateFile​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      A service wrapper for the updateFileMethod method.
      static java.util.Map<java.lang.String,​java.lang.Object> updateFileMethod​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> updateImage​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      A service wrapper for the updateImageMethod method.
      static java.util.Map<java.lang.String,​java.lang.Object> updateImageMethod​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataServices

        public DataServices()
    • Method Detail

      • clearAssociatedRenderCache

        public static java.util.Map<java.lang.String,​java.lang.Object> clearAssociatedRenderCache​(DispatchContext dctx,
                                                                                                        java.util.Map<java.lang.String,​java.lang.Object> context)
      • createDataResourceAndText

        public static java.util.Map<java.lang.String,​java.lang.Object> createDataResourceAndText​(DispatchContext dctx,
                                                                                                       java.util.Map<java.lang.String,​? extends java.lang.Object> rcontext)
        A top-level service for creating a DataResource and ElectronicText together.
      • createDataResource

        public static java.util.Map<java.lang.String,​java.lang.Object> createDataResource​(DispatchContext dctx,
                                                                                                java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        A service wrapper for the createDataResourceMethod method. Forces permissions to be checked.
      • createDataResourceMethod

        public static java.util.Map<java.lang.String,​java.lang.Object> createDataResourceMethod​(DispatchContext dctx,
                                                                                                      java.util.Map<java.lang.String,​? extends java.lang.Object> rcontext)
      • createElectronicText

        public static java.util.Map<java.lang.String,​java.lang.Object> createElectronicText​(DispatchContext dctx,
                                                                                                  java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        A service wrapper for the createElectronicTextMethod method. Forces permissions to be checked.
      • createElectronicTextMethod

        public static java.util.Map<java.lang.String,​java.lang.Object> createElectronicTextMethod​(DispatchContext dctx,
                                                                                                        java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • createFile

        public static java.util.Map<java.lang.String,​java.lang.Object> createFile​(DispatchContext dctx,
                                                                                        java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        A service wrapper for the createFileMethod method. Forces permissions to be checked.
      • createFileNoPerm

        public static java.util.Map<java.lang.String,​java.lang.Object> createFileNoPerm​(DispatchContext dctx,
                                                                                              java.util.Map<java.lang.String,​? extends java.lang.Object> rcontext)
                                                                                       throws java.io.IOException,
                                                                                              org.apache.commons.imaging.ImageReadException
        Throws:
        java.io.IOException
        org.apache.commons.imaging.ImageReadException
      • createFileMethod

        public static java.util.Map<java.lang.String,​java.lang.Object> createFileMethod​(DispatchContext dctx,
                                                                                              java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • updateDataResourceAndText

        public static java.util.Map<java.lang.String,​java.lang.Object> updateDataResourceAndText​(DispatchContext dctx,
                                                                                                       java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        A top-level service for updating a DataResource and ElectronicText together.
      • updateDataResource

        public static java.util.Map<java.lang.String,​java.lang.Object> updateDataResource​(DispatchContext dctx,
                                                                                                java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        A service wrapper for the updateDataResourceMethod method. Forces permissions to be checked.
      • updateDataResourceMethod

        public static java.util.Map<java.lang.String,​java.lang.Object> updateDataResourceMethod​(DispatchContext dctx,
                                                                                                      java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • updateElectronicText

        public static java.util.Map<java.lang.String,​java.lang.Object> updateElectronicText​(DispatchContext dctx,
                                                                                                  java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        A service wrapper for the updateElectronicTextMethod method. Forces permissions to be checked.
      • updateElectronicTextMethod

        public static java.util.Map<java.lang.String,​java.lang.Object> updateElectronicTextMethod​(DispatchContext dctx,
                                                                                                        java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Because sometimes a DataResource will exist, but no ElectronicText has been created, this method will create an ElectronicText if it does not exist.
        Parameters:
        dctx - the dispatch context
        context - the context
        Returns:
        update the ElectronicText
      • updateFile

        public static java.util.Map<java.lang.String,​java.lang.Object> updateFile​(DispatchContext dctx,
                                                                                        java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        A service wrapper for the updateFileMethod method. Forces permissions to be checked.
      • renderDataResourceAsText

        public static java.util.Map<java.lang.String,​java.lang.Object> renderDataResourceAsText​(DispatchContext dctx,
                                                                                                      java.util.Map<java.lang.String,​? extends java.lang.Object> context)
                                                                                               throws GeneralException,
                                                                                                      java.io.IOException
        Throws:
        GeneralException
        java.io.IOException
      • updateImage

        public static java.util.Map<java.lang.String,​java.lang.Object> updateImage​(DispatchContext dctx,
                                                                                         java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        A service wrapper for the updateImageMethod method. Forces permissions to be checked.
      • updateImageMethod

        public static java.util.Map<java.lang.String,​java.lang.Object> updateImageMethod​(DispatchContext dctx,
                                                                                               java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • createImage

        public static java.util.Map<java.lang.String,​java.lang.Object> createImage​(DispatchContext dctx,
                                                                                         java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        A service wrapper for the createImageMethod method. Forces permissions to be checked.
      • createImageMethod

        public static java.util.Map<java.lang.String,​java.lang.Object> createImageMethod​(DispatchContext dctx,
                                                                                               java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • createBinaryFile

        public static java.util.Map<java.lang.String,​java.lang.Object> createBinaryFile​(DispatchContext dctx,
                                                                                              java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        A service wrapper for the createBinaryFileMethod method. Forces permissions to be checked.
      • updateBinaryFile

        public static java.util.Map<java.lang.String,​java.lang.Object> updateBinaryFile​(DispatchContext dctx,
                                                                                              java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        A service wrapper for the createBinaryFileMethod method. Forces permissions to be checked.