Package com.almis.awe.model.component
Class AweElements
java.lang.Object
com.almis.awe.model.component.AweElements
The type Awe elements.
- Author:
- pgarcia
-
Constructor Summary
ConstructorDescriptionAweElements
(org.springframework.web.context.WebApplicationContext context, BaseConfigProperties baseConfigProperties, AweElementsDao elementsDao) Autowired constructor -
Method Summary
Modifier and TypeMethodDescriptionGet an action with the identifierorg.springframework.context.ApplicationContext
Retrieve the application contextGet an email operation with the identifiergetEnumerated
(String groupId) Get an EnumeratedGroup with the identifierRetrieve languageReturns a locale based on its identifierReturns a locale based on its identifierReturns all localesgetLocaleWithLanguage
(String localeIdentifier, String language) Returns a locale based on its identifiergetLocaleWithLanguage
(String localeIdentifier, String language, Object... tokenList) Returns a locale based on its identifier replacing a set of tokens by a string arraygetMaintain
(String maintainId) Get a MAINTAIN operation with the identifierRetrieve maintain map (maintain name + maintain object)Get menu objectgetPhaseServices
(LaunchPhaseType phase) Get phase SERVICESgetProfile
(String profile) Get profile objectGet available profile listgetProperty
(String propertyIdentifier) Retrieve a property value<T> T
getProperty
(String propertyIdentifier, Class<T> tClass) Retrieve a property value reading as a classgetProperty
(String propertyIdentifier, String defaultValue) Retrieve a property valueGet a Query with the identifierRetrieve query map (query name + query object)Get a Queue with the identifierGet a screen with the identifierGet available screen listgetService
(String serviceId) Get a service with the identifiervoid
init()
Read all XML files and store them in the componentInserts or updates given menuInserts or updates given screenwaitForMap
(Future<Map<String, T>> result, String fileType) Wait executor for terminationprotected void
waitForTermination
(XMLInitData initData) Wait executor for termination
-
Constructor Details
-
AweElements
public AweElements(org.springframework.web.context.WebApplicationContext context, BaseConfigProperties baseConfigProperties, AweElementsDao elementsDao) Autowired constructor- Parameters:
context
- Application contextbaseConfigProperties
- base configuration propertieselementsDao
- Element DAO
-
-
Method Details
-
init
@PostConstruct public void init()Read all XML files and store them in the component -
waitForTermination
Wait executor for termination- Parameters:
initData
- Initialize data threads
-
waitForMap
Wait executor for termination- Parameters:
result
- future resultsfileType
- File type
-
getEnumerated
Get an EnumeratedGroup with the identifier- Parameters:
groupId
- Group identifier- Returns:
- The ENUMERATED group corresponding the groupId
- Throws:
AWException
- Clone not supported
-
getQuery
Get a Query with the identifier- Parameters:
queryId
- Query identifier- Returns:
- The query corresponding the queryId
- Throws:
AWException
- Clone not supported
-
getQueue
Get a Queue with the identifier- Parameters:
queueId
- Queue id- Returns:
- The query corresponding the queryId
- Throws:
AWException
- Clone not supported
-
getMaintain
Get a MAINTAIN operation with the identifier- Parameters:
maintainId
- Maintain operation identifier- Returns:
- The MAINTAIN operation corresponding the maintainId
- Throws:
AWException
- Clone not supported
-
getEmail
Get an email operation with the identifier- Parameters:
emailId
- Email operation identifier- Returns:
- The email operation corresponding the mntId
- Throws:
AWException
- Clone not supported
-
getService
Get a service with the identifier- Parameters:
serviceId
- Service identifier- Returns:
- The service corresponding the serviceId
- Throws:
AWException
- Clone not supported
-
getAction
Get an action with the identifier- Parameters:
actionId
- Action identifier- Returns:
- The action corresponding the actionId
- Throws:
AWException
- Clone not supported
-
getScreen
Get a screen with the identifier- Parameters:
screenId
- Screen identifier- Returns:
- The screen corresponding the screenId
- Throws:
AWException
- Clone not supported
-
setScreen
Inserts or updates given screen- Parameters:
screen
- Screen- Returns:
- Screen
-
getMenu
Get menu object- Parameters:
menuId
- Menu name- Returns:
- Menu object
- Throws:
AWException
- Clone not supported
-
getProfile
Get profile object- Parameters:
profile
- Profile name- Returns:
- Profile object
- Throws:
AWException
- Clone not supported
-
getProfileList
Get available profile list- Returns:
- Profile object
-
getScreenList
Get available screen list- Returns:
- Screen list
-
getLocales
Returns all locales- Returns:
- locales
-
getLanguage
Retrieve language- Returns:
- Language
-
getLocale
Returns a locale based on its identifier- Parameters:
localeIdentifier
- Local identifier- Returns:
- Selected locale
-
getLocale
Returns a locale based on its identifier- Parameters:
localeIdentifier
- Local identifier- Returns:
- Selected locale
-
getLocaleWithLanguage
Returns a locale based on its identifier- Parameters:
localeIdentifier
- Local identifier- Returns:
- Selected locale
-
getLocaleWithLanguage
Returns a locale based on its identifier replacing a set of tokens by a string array- Parameters:
localeIdentifier
- Local identifiertokenList
- Token list to replace- Returns:
- Selected locale
-
getProperty
Retrieve a property value- Parameters:
propertyIdentifier
- Property identifier- Returns:
- Selected locale
-
getProperty
Retrieve a property value reading as a class- Type Parameters:
T
- property class- Parameters:
propertyIdentifier
- propertyIdentifier Property identifiertClass
- Class to read the property value- Returns:
- Selected locale
-
getProperty
Retrieve a property value- Parameters:
propertyIdentifier
- Property identifierdefaultValue
- Default value- Returns:
- Selected locale
-
getPhaseServices
Get phase SERVICES- Parameters:
phase
- Phase to look into- Returns:
- Start Service list
- Throws:
AWException
- Error starting service
-
getQueryMap
Retrieve query map (query name + query object)- Returns:
- Query map
-
getMaintainMap
Retrieve maintain map (maintain name + maintain object)- Returns:
- Maintain map
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()Retrieve the application context- Returns:
- Application context
-