Package org.apache.ofbiz.webtools
Class WebToolsServices
java.lang.Object
org.apache.ofbiz.webtools.WebToolsServices
WebTools Services
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionentityExportAll
(DispatchContext dctx, Map<String, ? extends Object> context) entityImport
(DispatchContext dctx, Map<String, ? extends Object> context) entityImportDir
(DispatchContext dctx, Map<String, ? extends Object> context) entityImportReaders
(DispatchContext dctx, Map<String, Object> context) entityMaintPermCheck
(DispatchContext dctx, Map<String, ? extends Object> context) Performs an entity maintenance security check.exportEntityEoModelBundle
(DispatchContext dctx, Map<String, ? extends Object> context) exportServiceEoModelBundle
(DispatchContext dctx, Map<String, ? extends Object> context) getEntityRefData
(DispatchContext dctx, Map<String, ? extends Object> context) Get entity reference data.parseEntityXmlFile
(DispatchContext dctx, Map<String, ? extends Object> context)
-
Constructor Details
-
WebToolsServices
public WebToolsServices()
-
-
Method Details
-
entityImport
-
entityImportDir
-
entityImportReaders
-
parseEntityXmlFile
-
entityExportAll
-
getEntityRefData
public static Map<String,Object> getEntityRefData(DispatchContext dctx, Map<String, ? extends Object> context) Get entity reference data. Returns the number of entities innumberOfEntities
and a List of Maps -packagesList
. Each Map contains:
packageName
- the entity package nameentitiesList
- a list of Maps:entityName
helperName
groupName
plainTableName
title
description
javaNameList
- list of Maps:isPk
name
colName
description
type
javaType
sqlType
relationsList
- list of Maps:title
relEntity
fkName
type
length
keysList
- list of Maps:row
fieldName
relFieldName
indexList
- list of Maps:name
fieldNameList
- list of Strings
-
exportEntityEoModelBundle
-
entityMaintPermCheck
public static Map<String,Object> entityMaintPermCheck(DispatchContext dctx, Map<String, ? extends Object> context) Performs an entity maintenance security check. Returns hasPermission=true if the user has the ENTITY_MAINT permission.- Parameters:
dctx
- the dispatch contextcontext
- the context- Returns:
- return the result of the service execution
-
exportServiceEoModelBundle
-