Class EnumBuilder
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.service.data.builder.EnumBuilder
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
Generate enumerated datalists
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Launches a query (must be defined in APP or awe Queries.xml file) and generates the output Query comes defined in target-action variableFind a enumerated labelLaunches a query (must be defined in APP or awe Queries.xml file) and generates the output Query comes defined in target-action variableGet enumerated element as DataListcom.fasterxml.jackson.databind.node.ArrayNode
Get enumerated element as Jsoncom.fasterxml.jackson.databind.node.ObjectNode
getJsonRow
(Global option) Retrieve the data as a json rowcom.fasterxml.jackson.databind.node.ArrayNode
getOptionListAsJson
(EnumeratedGroup enumerated) Returns the group option listsetEnumerated
(String enumeratedId) Assigns the query to be recoveredMethods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
Constructor Details
-
EnumBuilder
public EnumBuilder()
-
-
Method Details
-
setEnumerated
Assigns the query to be recovered- Parameters:
enumeratedId
- Enumerated identifier- Returns:
- this
-
getEnumerated
Launches a query (must be defined in APP or awe Queries.xml file) and generates the output Query comes defined in target-action variable- Returns:
- Enumerated group
- Throws:
AWException
- Error retrieving enumerated group
-
build
Launches a query (must be defined in APP or awe Queries.xml file) and generates the output Query comes defined in target-action variable- Returns:
- Enumerated
- Throws:
AWException
- Error building enumerated
-
getEnumeratedAsJson
Get enumerated element as Json- Returns:
- Enumerated as Json
- Throws:
AWException
- Error retrieving enumerated
-
getEnumeratedAsDataList
Get enumerated element as DataList- Returns:
- Enumerated element as DataList
- Throws:
AWException
- Error retrieving enumerated
-
findLabel
Find a enumerated label- Parameters:
value
- Label value- Returns:
- Label found
- Throws:
AWException
- Enumerated not found
-
getOptionListAsJson
public com.fasterxml.jackson.databind.node.ArrayNode getOptionListAsJson(EnumeratedGroup enumerated) Returns the group option list- Parameters:
enumerated
- enumerated- Returns:
- Group option list
-
getJsonRow
Retrieve the data as a json row- Parameters:
option
- option- Returns:
- Json row
-