Class ArtifactInfoFactory

java.lang.Object
org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory

public class ArtifactInfoFactory extends Object
The type Artifact info factory.
  • Field Details

  • Constructor Details

  • Method Details

    • getAllServiceEcaInfosReferringToServiceName

      public Map<String,Set<ServiceEcaArtifactInfo>> getAllServiceEcaInfosReferringToServiceName()
      Gets all service eca infos referring to service name.
      Returns:
      the all service eca infos referring to service name
    • getAllServiceInfosReferringToServiceName

      public Map<String,Set<ServiceArtifactInfo>> getAllServiceInfosReferringToServiceName()
      Gets all service infos referring to service name.
      Returns:
      the all service infos referring to service name
    • getAllFormInfosReferringToServiceName

      public Map<String,Set<FormWidgetArtifactInfo>> getAllFormInfosReferringToServiceName()
      Gets all form infos referring to service name.
      Returns:
      the all form infos referring to service name
    • getAllFormInfosBasedOnServiceName

      public Map<String,Set<FormWidgetArtifactInfo>> getAllFormInfosBasedOnServiceName()
      Gets all form infos based on service name.
      Returns:
      the all form infos based on service name
    • getAllScreenInfosReferringToServiceName

      public Map<String,Set<ScreenWidgetArtifactInfo>> getAllScreenInfosReferringToServiceName()
      Gets all screen infos referring to service name.
      Returns:
      the all screen infos referring to service name
    • getAllRequestInfosReferringToServiceName

      public Map<String,Set<ControllerRequestArtifactInfo>> getAllRequestInfosReferringToServiceName()
      Gets all request infos referring to service name.
      Returns:
      the all request infos referring to service name
    • getAllServiceInfosReferringToEntityName

      public Map<String,Set<ServiceArtifactInfo>> getAllServiceInfosReferringToEntityName()
      Gets all service infos referring to entity name.
      Returns:
      the all service infos referring to entity name
    • getAllFormInfosReferringToEntityName

      public Map<String,Set<FormWidgetArtifactInfo>> getAllFormInfosReferringToEntityName()
      Gets all form infos referring to entity name.
      Returns:
      the all form infos referring to entity name
    • getAllScreenInfosReferringToEntityName

      public Map<String,Set<ScreenWidgetArtifactInfo>> getAllScreenInfosReferringToEntityName()
      Gets all screen infos referring to entity name.
      Returns:
      the all screen infos referring to entity name
    • getAllServiceInfosReferringToServiceEcaRule

      public Map<ServiceEcaRule,Set<ServiceArtifactInfo>> getAllServiceInfosReferringToServiceEcaRule()
      Gets all service infos referring to service eca rule.
      Returns:
      the all service infos referring to service eca rule
    • getAllFormInfosExtendingForm

      public Map<String,Set<FormWidgetArtifactInfo>> getAllFormInfosExtendingForm()
      Gets all form infos extending form.
      Returns:
      the all form infos extending form
    • getAllScreenInfosReferringToForm

      public Map<String,Set<ScreenWidgetArtifactInfo>> getAllScreenInfosReferringToForm()
      Gets all screen infos referring to form.
      Returns:
      the all screen infos referring to form
    • getAllScreenInfosReferringToScreen

      public Map<String,Set<ScreenWidgetArtifactInfo>> getAllScreenInfosReferringToScreen()
      Gets all screen infos referring to screen.
      Returns:
      the all screen infos referring to screen
    • getAllViewInfosReferringToScreen

      public Map<String,Set<ControllerViewArtifactInfo>> getAllViewInfosReferringToScreen()
      Gets all view infos referring to screen.
      Returns:
      the all view infos referring to screen
    • getAllRequestInfosReferringToView

      public Map<String,Set<ControllerRequestArtifactInfo>> getAllRequestInfosReferringToView()
      Gets all request infos referring to view.
      Returns:
      the all request infos referring to view
    • getAllFormInfosTargetingRequest

      public Map<String,Set<FormWidgetArtifactInfo>> getAllFormInfosTargetingRequest()
      Gets all form infos targeting request.
      Returns:
      the all form infos targeting request
    • getAllFormInfosReferringToRequest

      public Map<String,Set<FormWidgetArtifactInfo>> getAllFormInfosReferringToRequest()
      Gets all form infos referring to request.
      Returns:
      the all form infos referring to request
    • getAllScreenInfosReferringToRequest

      public Map<String,Set<ScreenWidgetArtifactInfo>> getAllScreenInfosReferringToRequest()
      Gets all screen infos referring to request.
      Returns:
      the all screen infos referring to request
    • getAllRequestInfosReferringToRequest

      public Map<String,Set<ControllerRequestArtifactInfo>> 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

      public void prepareAll() throws GeneralException
      Prepare all.
      Throws:
      GeneralException - the general exception
    • getEntityModelReader

      public ModelReader getEntityModelReader()
      Gets entity model reader.
      Returns:
      the entity model reader
    • getDispatchContext

      public DispatchContext getDispatchContext()
      Gets dispatch context.
      Returns:
      the dispatch context
    • getModelEntity

      public ModelEntity getModelEntity(String entityName) throws GenericEntityException
      Gets model entity.
      Parameters:
      entityName - the entity name
      Returns:
      the model entity
      Throws:
      GenericEntityException - the generic entity exception
    • getModelService

      public ModelService getModelService(String serviceName) throws GenericServiceException
      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 exception
      SAXException - the sax exception
      IOException - the io exception
    • getModelForm

      public ModelForm getModelForm(String formName, String formLocation) throws ParserConfigurationException, SAXException, IOException
      Gets model form.
      Parameters:
      formName - the form name
      formLocation - the form location
      Returns:
      the model form
      Throws:
      ParserConfigurationException - the parser configuration exception
      SAXException - the sax exception
      IOException - the io exception
    • getModelScreen

      public ModelScreen getModelScreen(String screenName, String screenLocation) throws ParserConfigurationException, SAXException, IOException
      Gets model screen.
      Parameters:
      screenName - the screen name
      screenLocation - the screen location
      Returns:
      the model screen
      Throws:
      ParserConfigurationException - the parser configuration exception
      SAXException - the sax exception
      IOException - the io exception
    • getControllerRequestMap

      public ConfigXMLReader.RequestMap getControllerRequestMap(URL controllerXmlUrl, String requestUri)
      Gets controller request map.
      Parameters:
      controllerXmlUrl - the controller xml url
      requestUri - the request uri
      Returns:
      the controller request map
    • getControllerViewMap

      public ConfigXMLReader.ViewMap getControllerViewMap(URL controllerXmlUrl, String viewUri)
      Gets controller view map.
      Parameters:
      controllerXmlUrl - the controller xml url
      viewUri - the view uri
      Returns:
      the controller view map
    • getEntityArtifactInfo

      public EntityArtifactInfo getEntityArtifactInfo(String entityName) throws GeneralException
      Gets entity artifact info.
      Parameters:
      entityName - the entity name
      Returns:
      the entity artifact info
      Throws:
      GeneralException - the general exception
    • getServiceArtifactInfo

      public ServiceArtifactInfo getServiceArtifactInfo(String serviceName) throws GeneralException
      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 name
      formLocation - 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 name
      screenLocation - 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 url
      requestUri - 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 url
      viewUri - the view uri
      Returns:
      the controller view artifact info
      Throws:
      GeneralException - the general exception
    • getArtifactInfoByUniqueIdAndType

      public ArtifactInfoBase getArtifactInfoByUniqueIdAndType(String uniqueId, String type)
      Gets artifact info by unique id and type.
      Parameters:
      uniqueId - the unique id
      type - 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 name
      artifactLocation - the artifact location
      type - 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 partial
      type - the type
      Returns:
      the all artifact infos by name partial