Class ArtifactInfoFactory
java.lang.Object
org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory
The type Artifact info factory.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAllArtifactInfosByNamePartial
(String artifactNamePartial, String type) Gets all artifact infos by name partial.Gets all form infos based on service name.Gets all form infos extending form.Gets all form infos referring to entity name.Gets all form infos referring to request.Gets all form infos referring to service name.Gets all form infos targeting request.Gets all request infos referring to request.Gets all request infos referring to service name.Gets all request infos referring to view.Gets all screen infos referring to entity name.Gets all screen infos referring to form.Gets all screen infos referring to request.Gets all screen infos referring to screen.Gets all screen infos referring to service name.Gets all service eca infos referring to service name.Gets all service infos referring to entity name.Gets all service infos referring to service eca rule.Gets all service infos referring to service name.Gets all view infos referring to screen.getArtifactInfoByNameAndType
(String artifactName, String artifactLocation, String type) Gets artifact info by name and type.getArtifactInfoByUniqueIdAndType
(String uniqueId, String type) Gets artifact info by unique id and type.static ArtifactInfoFactory
getArtifactInfoFactory
(String delegatorName) getControllerRequestArtifactInfo
(URL controllerXmlUrl, String requestUri) Gets controller request artifact info.getControllerRequestMap
(URL controllerXmlUrl, String requestUri) Gets controller request map.getControllerViewArtifactInfo
(URL controllerXmlUrl, String viewUri) Gets controller view artifact info.getControllerViewMap
(URL controllerXmlUrl, String viewUri) Gets controller view map.Gets dispatch context.getEntityArtifactInfo
(String entityName) Gets entity artifact info.Gets entity model reader.getFormWidgetArtifactInfo
(String formNameAndLocation) Gets form widget artifact info.getFormWidgetArtifactInfo
(String formName, String formLocation) Gets form widget artifact info.getModelEntity
(String entityName) Gets model entity.getModelForm
(String formNameAndLocation) Gets model form.getModelForm
(String formName, String formLocation) Gets model form.getModelScreen
(String screenName, String screenLocation) Gets model screen.getModelService
(String serviceName) Gets model service.getScreenWidgetArtifactInfo
(String screenName, String screenLocation) Gets screen widget artifact info.getServiceArtifactInfo
(String serviceName) Gets service artifact info.getServiceEcaArtifactInfo
(ServiceEcaRule ecaRule) Gets service eca artifact info.void
Prepare all.
-
Field Details
-
ENTITY_INFO_TYPE_ID
- See Also:
-
SERVICE_INFO_TYPE_ID
- See Also:
-
SERVICE_ECA_INFO_TYPE_ID
- See Also:
-
FORM_WIDGET_INFO_TYPE_ID
- See Also:
-
SCREEN_WIDGET_INFO_TYPE_ID
- See Also:
-
CONTROLLER_REQ_INFO_TYPE_ID
- See Also:
-
CONTROLLER_VIEW_INFO_TYPE_ID
- See Also:
-
-
Constructor Details
-
ArtifactInfoFactory
- Throws:
GeneralException
-
-
Method Details
-
getAllServiceEcaInfosReferringToServiceName
Gets all service eca infos referring to service name.- Returns:
- the all service eca infos referring to service name
-
getAllServiceInfosReferringToServiceName
Gets all service infos referring to service name.- Returns:
- the all service infos referring to service name
-
getAllFormInfosReferringToServiceName
Gets all form infos referring to service name.- Returns:
- the all form infos referring to service name
-
getAllFormInfosBasedOnServiceName
Gets all form infos based on service name.- Returns:
- the all form infos based on service name
-
getAllScreenInfosReferringToServiceName
Gets all screen infos referring to service name.- Returns:
- the all screen infos referring to service name
-
getAllRequestInfosReferringToServiceName
Gets all request infos referring to service name.- Returns:
- the all request infos referring to service name
-
getAllServiceInfosReferringToEntityName
Gets all service infos referring to entity name.- Returns:
- the all service infos referring to entity name
-
getAllFormInfosReferringToEntityName
Gets all form infos referring to entity name.- Returns:
- the all form infos referring to entity name
-
getAllScreenInfosReferringToEntityName
Gets all screen infos referring to entity name.- Returns:
- the all screen infos referring to entity name
-
getAllServiceInfosReferringToServiceEcaRule
Gets all service infos referring to service eca rule.- Returns:
- the all service infos referring to service eca rule
-
getAllFormInfosExtendingForm
Gets all form infos extending form.- Returns:
- the all form infos extending form
-
getAllScreenInfosReferringToForm
Gets all screen infos referring to form.- Returns:
- the all screen infos referring to form
-
getAllScreenInfosReferringToScreen
Gets all screen infos referring to screen.- Returns:
- the all screen infos referring to screen
-
getAllViewInfosReferringToScreen
Gets all view infos referring to screen.- Returns:
- the all view infos referring to screen
-
getAllRequestInfosReferringToView
Gets all request infos referring to view.- Returns:
- the all request infos referring to view
-
getAllFormInfosTargetingRequest
Gets all form infos targeting request.- Returns:
- the all form infos targeting request
-
getAllFormInfosReferringToRequest
Gets all form infos referring to request.- Returns:
- the all form infos referring to request
-
getAllScreenInfosReferringToRequest
Gets all screen infos referring to request.- Returns:
- the all screen infos referring to request
-
getAllRequestInfosReferringToRequest
Gets all request infos referring to request.- Returns:
- the all request infos referring to request
-
getArtifactInfoFactory
public static ArtifactInfoFactory getArtifactInfoFactory(String delegatorName) throws GeneralException - Throws:
GeneralException
-
prepareAll
Prepare all.- Throws:
GeneralException
- the general exception
-
getEntityModelReader
Gets entity model reader.- Returns:
- the entity model reader
-
getDispatchContext
Gets dispatch context.- Returns:
- the dispatch context
-
getModelEntity
Gets model entity.- Parameters:
entityName
- the entity name- Returns:
- the model entity
- Throws:
GenericEntityException
- the generic entity exception
-
getModelService
Gets model service.- Parameters:
serviceName
- the service name- Returns:
- the model service
- Throws:
GenericServiceException
- the generic service exception
-
getModelForm
public ModelForm getModelForm(String formNameAndLocation) throws ParserConfigurationException, SAXException, IOException Gets model form.- Parameters:
formNameAndLocation
- the form name and location- Returns:
- the model form
- Throws:
ParserConfigurationException
- the parser configuration exceptionSAXException
- the sax exceptionIOException
- the io exception
-
getModelForm
public ModelForm getModelForm(String formName, String formLocation) throws ParserConfigurationException, SAXException, IOException Gets model form.- Parameters:
formName
- the form nameformLocation
- the form location- Returns:
- the model form
- Throws:
ParserConfigurationException
- the parser configuration exceptionSAXException
- the sax exceptionIOException
- the io exception
-
getModelScreen
public ModelScreen getModelScreen(String screenName, String screenLocation) throws ParserConfigurationException, SAXException, IOException Gets model screen.- Parameters:
screenName
- the screen namescreenLocation
- the screen location- Returns:
- the model screen
- Throws:
ParserConfigurationException
- the parser configuration exceptionSAXException
- the sax exceptionIOException
- the io exception
-
getControllerRequestMap
Gets controller request map.- Parameters:
controllerXmlUrl
- the controller xml urlrequestUri
- the request uri- Returns:
- the controller request map
-
getControllerViewMap
Gets controller view map.- Parameters:
controllerXmlUrl
- the controller xml urlviewUri
- the view uri- Returns:
- the controller view map
-
getEntityArtifactInfo
Gets entity artifact info.- Parameters:
entityName
- the entity name- Returns:
- the entity artifact info
- Throws:
GeneralException
- the general exception
-
getServiceArtifactInfo
Gets service artifact info.- Parameters:
serviceName
- the service name- Returns:
- the service artifact info
- Throws:
GeneralException
- the general exception
-
getServiceEcaArtifactInfo
public ServiceEcaArtifactInfo getServiceEcaArtifactInfo(ServiceEcaRule ecaRule) throws GeneralException Gets service eca artifact info.- Parameters:
ecaRule
- the eca rule- Returns:
- the service eca artifact info
- Throws:
GeneralException
- the general exception
-
getFormWidgetArtifactInfo
public FormWidgetArtifactInfo getFormWidgetArtifactInfo(String formNameAndLocation) throws GeneralException Gets form widget artifact info.- Parameters:
formNameAndLocation
- the form name and location- Returns:
- the form widget artifact info
- Throws:
GeneralException
- the general exception
-
getFormWidgetArtifactInfo
public FormWidgetArtifactInfo getFormWidgetArtifactInfo(String formName, String formLocation) throws GeneralException Gets form widget artifact info.- Parameters:
formName
- the form nameformLocation
- the form location- Returns:
- the form widget artifact info
- Throws:
GeneralException
- the general exception
-
getScreenWidgetArtifactInfo
public ScreenWidgetArtifactInfo getScreenWidgetArtifactInfo(String screenName, String screenLocation) Gets screen widget artifact info.- Parameters:
screenName
- the screen namescreenLocation
- the screen location- Returns:
- the screen widget artifact info
-
getControllerRequestArtifactInfo
public ControllerRequestArtifactInfo getControllerRequestArtifactInfo(URL controllerXmlUrl, String requestUri) throws GeneralException Gets controller request artifact info.- Parameters:
controllerXmlUrl
- the controller xml urlrequestUri
- the request uri- Returns:
- the controller request artifact info
- Throws:
GeneralException
- the general exception
-
getControllerViewArtifactInfo
public ControllerViewArtifactInfo getControllerViewArtifactInfo(URL controllerXmlUrl, String viewUri) throws GeneralException Gets controller view artifact info.- Parameters:
controllerXmlUrl
- the controller xml urlviewUri
- the view uri- Returns:
- the controller view artifact info
- Throws:
GeneralException
- the general exception
-
getArtifactInfoByUniqueIdAndType
Gets artifact info by unique id and type.- Parameters:
uniqueId
- the unique idtype
- the type- Returns:
- the artifact info by unique id and type
-
getArtifactInfoByNameAndType
public ArtifactInfoBase getArtifactInfoByNameAndType(String artifactName, String artifactLocation, String type) Gets artifact info by name and type.- Parameters:
artifactName
- the artifact nameartifactLocation
- the artifact locationtype
- the type- Returns:
- the artifact info by name and type
-
getAllArtifactInfosByNamePartial
public Set<ArtifactInfoBase> getAllArtifactInfosByNamePartial(String artifactNamePartial, String type) Gets all artifact infos by name partial.- Parameters:
artifactNamePartial
- the artifact name partialtype
- the type- Returns:
- the all artifact infos by name partial
-