Package org.apache.ofbiz.content.data
Class DataServices
java.lang.Object
org.apache.ofbiz.content.data.DataServices
DataServices Class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclearAssociatedRenderCache
(DispatchContext dctx, Map<String, Object> context) createBinaryFile
(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the createBinaryFileMethod method.createBinaryFileMethod
(DispatchContext dctx, Map<String, ? extends Object> context) createDataResource
(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the createDataResourceMethod method.createDataResourceAndText
(DispatchContext dctx, Map<String, ? extends Object> rcontext) A top-level service for creating a DataResource and ElectronicText together.createDataResourceMethod
(DispatchContext dctx, Map<String, ? extends Object> rcontext) createElectronicText
(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the createElectronicTextMethod method.createElectronicTextMethod
(DispatchContext dctx, Map<String, ? extends Object> context) createFile
(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the createFileMethod method.createFileMethod
(DispatchContext dctx, Map<String, ? extends Object> context) createFileNoPerm
(DispatchContext dctx, Map<String, ? extends Object> rcontext) createImage
(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the createImageMethod method.createImageMethod
(DispatchContext dctx, Map<String, ? extends Object> context) renderDataResourceAsText
(DispatchContext dctx, Map<String, ? extends Object> context) updateBinaryFile
(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the createBinaryFileMethod method.updateBinaryFileMethod
(DispatchContext dctx, Map<String, ? extends Object> context) updateDataResource
(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the updateDataResourceMethod method.updateDataResourceAndText
(DispatchContext dctx, Map<String, ? extends Object> context) A top-level service for updating a DataResource and ElectronicText together.updateDataResourceMethod
(DispatchContext dctx, Map<String, ? extends Object> context) updateElectronicText
(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the updateElectronicTextMethod method.updateElectronicTextMethod
(DispatchContext dctx, Map<String, ? extends 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.updateFile
(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the updateFileMethod method.updateFileMethod
(DispatchContext dctx, Map<String, ? extends Object> context) updateImage
(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the updateImageMethod method.updateImageMethod
(DispatchContext dctx, Map<String, ? extends Object> context)
-
Constructor Details
-
DataServices
public DataServices()
-
-
Method Details
-
clearAssociatedRenderCache
-
createDataResourceAndText
public static Map<String,Object> createDataResourceAndText(DispatchContext dctx, Map<String, ? extends Object> rcontext) A top-level service for creating a DataResource and ElectronicText together. -
createDataResource
public static Map<String,Object> createDataResource(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the createDataResourceMethod method. Forces permissions to be checked. -
createDataResourceMethod
-
createElectronicText
public static Map<String,Object> createElectronicText(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the createElectronicTextMethod method. Forces permissions to be checked. -
createElectronicTextMethod
-
createFile
public static Map<String,Object> createFile(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the createFileMethod method. Forces permissions to be checked. -
createFileNoPerm
public static Map<String,Object> createFileNoPerm(DispatchContext dctx, Map<String, ? extends Object> rcontext) throws IOException, org.apache.commons.imaging.ImageReadException- Throws:
IOException
org.apache.commons.imaging.ImageReadException
-
createFileMethod
-
updateDataResourceAndText
public static Map<String,Object> updateDataResourceAndText(DispatchContext dctx, Map<String, ? extends Object> context) A top-level service for updating a DataResource and ElectronicText together. -
updateDataResource
public static Map<String,Object> updateDataResource(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the updateDataResourceMethod method. Forces permissions to be checked. -
updateDataResourceMethod
-
updateElectronicText
public static Map<String,Object> updateElectronicText(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the updateElectronicTextMethod method. Forces permissions to be checked. -
updateElectronicTextMethod
public static Map<String,Object> updateElectronicTextMethod(DispatchContext dctx, Map<String, ? extends 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 contextcontext
- the context- Returns:
- update the ElectronicText
-
updateFile
public static Map<String,Object> updateFile(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the updateFileMethod method. Forces permissions to be checked. -
updateFileMethod
public static Map<String,Object> updateFileMethod(DispatchContext dctx, Map<String, ? extends Object> context) throws GenericServiceException- Throws:
GenericServiceException
-
renderDataResourceAsText
public static Map<String,Object> renderDataResourceAsText(DispatchContext dctx, Map<String, ? extends Object> context) throws GeneralException, IOException- Throws:
GeneralException
IOException
-
updateImage
public static Map<String,Object> updateImage(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the updateImageMethod method. Forces permissions to be checked. -
updateImageMethod
-
createImage
public static Map<String,Object> createImage(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the createImageMethod method. Forces permissions to be checked. -
createImageMethod
-
createBinaryFile
public static Map<String,Object> createBinaryFile(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the createBinaryFileMethod method. Forces permissions to be checked. -
createBinaryFileMethod
public static Map<String,Object> createBinaryFileMethod(DispatchContext dctx, Map<String, ? extends Object> context) throws GenericServiceException- Throws:
GenericServiceException
-
updateBinaryFile
public static Map<String,Object> updateBinaryFile(DispatchContext dctx, Map<String, ? extends Object> context) A service wrapper for the createBinaryFileMethod method. Forces permissions to be checked. -
updateBinaryFileMethod
public static Map<String,Object> updateBinaryFileMethod(DispatchContext dctx, Map<String, ? extends Object> context) throws GenericServiceException- Throws:
GenericServiceException
-