Class ServiceArtifactInfo

java.lang.Object
org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoBase
org.apache.ofbiz.webtools.artifactinfo.ServiceArtifactInfo
All Implemented Interfaces:
Comparable<ArtifactInfoBase>

public class ServiceArtifactInfo extends ArtifactInfoBase
  • Constructor Details

  • Method Details

    • populateAll

      public void populateAll() throws GeneralException
      This must be called after creation from the ArtifactInfoFactory after this class has been put into the global Map in order to avoid recursive initialization
      Throws:
      GeneralException
    • populateUsedEntities

      protected void populateUsedEntities() throws GeneralException
      Populate used entities.
      Throws:
      GeneralException - the general exception
    • populateEntitiesFromNameSet

      protected void populateEntitiesFromNameSet(Set<String> allEntityNameSet) throws GeneralException
      Populate entities from name set.
      Parameters:
      allEntityNameSet - the all entity name set
      Throws:
      GeneralException - the general exception
    • populateCalledServices

      protected void populateCalledServices() throws GeneralException
      Populate called services.
      Throws:
      GeneralException - the general exception
    • populateServicesFromNameSet

      protected void populateServicesFromNameSet(Set<String> allServiceNameSet) throws GeneralException
      Populate services from name set.
      Parameters:
      allServiceNameSet - the all service name set
      Throws:
      GeneralException - the general exception
    • populateTriggeredServiceEcas

      protected void populateTriggeredServiceEcas() throws GeneralException
      Populate triggered service ecas.
      Throws:
      GeneralException - the general exception
    • getModelService

      public ModelService getModelService()
      Gets model service.
      Returns:
      the model service
    • setDisplayPrefix

      public void setDisplayPrefix(String displayPrefix)
      Sets display prefix.
      Parameters:
      displayPrefix - the display prefix
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in class ArtifactInfoBase
    • getDisplayPrefixedName

      public String getDisplayPrefixedName()
      Gets display prefixed name.
      Returns:
      the display prefixed name
    • getDisplayType

      public String getDisplayType()
      Specified by:
      getDisplayType in class ArtifactInfoBase
    • getType

      public String getType()
      Specified by:
      getType in class ArtifactInfoBase
    • getUniqueId

      public String getUniqueId()
      Specified by:
      getUniqueId in class ArtifactInfoBase
    • getLocationURL

      public URL getLocationURL() throws MalformedURLException
      Specified by:
      getLocationURL in class ArtifactInfoBase
      Throws:
      MalformedURLException
    • getImplementationLocationURL

      public URL getImplementationLocationURL() throws MalformedURLException
      Gets implementation location url.
      Returns:
      the implementation location url
      Throws:
      MalformedURLException - the malformed url exception
    • getEntitiesUsedByService

      public Set<EntityArtifactInfo> getEntitiesUsedByService()
      Gets entities used by service.
      Returns:
      the entities used by service
    • getServicesCallingService

      public Set<ServiceArtifactInfo> getServicesCallingService()
      Gets services calling service.
      Returns:
      the services calling service
    • getServicesCalledByService

      public Set<ServiceArtifactInfo> getServicesCalledByService()
      Gets services called by service.
      Returns:
      the services called by service
    • getServicesCalledByServiceEcas

      public Set<ServiceArtifactInfo> getServicesCalledByServiceEcas()
      Gets services called by service ecas.
      Returns:
      the services called by service ecas
    • getServiceEcaRulesTriggeredByService

      public Set<ServiceEcaArtifactInfo> getServiceEcaRulesTriggeredByService()
      Gets service eca rules triggered by service.
      Returns:
      the service eca rules triggered by service
    • getServicesCallingServiceByEcas

      public Set<ServiceArtifactInfo> getServicesCallingServiceByEcas()
      Gets services calling service by ecas.
      Returns:
      the services calling service by ecas
    • getServiceEcaRulesCallingService

      public Set<ServiceEcaArtifactInfo> getServiceEcaRulesCallingService()
      Gets service eca rules calling service.
      Returns:
      the service eca rules calling service
    • getFormsCallingService

      public Set<FormWidgetArtifactInfo> getFormsCallingService()
      Gets forms calling service.
      Returns:
      the forms calling service
    • getFormsBasedOnService

      public Set<FormWidgetArtifactInfo> getFormsBasedOnService()
      Gets forms based on service.
      Returns:
      the forms based on service
    • getScreensCallingService

      public Set<ScreenWidgetArtifactInfo> getScreensCallingService()
      Gets screens calling service.
      Returns:
      the screens calling service
    • getRequestsWithEventCallingService

      public Set<ControllerRequestArtifactInfo> getRequestsWithEventCallingService()
      Gets requests with event calling service.
      Returns:
      the requests with event calling service
    • writeServiceCallGraphEoModel

      public void writeServiceCallGraphEoModel(String eomodeldFullPath) throws GeneralException, FileNotFoundException, UnsupportedEncodingException
      Write service call graph eo model.
      Parameters:
      eomodeldFullPath - the eomodeld full path
      Throws:
      GeneralException - the general exception
      FileNotFoundException - the file not found exception
      UnsupportedEncodingException - the unsupported encoding exception
    • createEoModelMap

      public Map<String,Object> createEoModelMap(Set<ServiceArtifactInfo> callingServiceSet, Set<ServiceArtifactInfo> calledServiceSet, Set<ServiceEcaArtifactInfo> callingServiceEcaSet, Set<ServiceEcaArtifactInfo> calledServiceEcaSet, boolean useMoreDetailedNames)
      Create eo model map map.
      Parameters:
      callingServiceSet - the calling service set
      calledServiceSet - the called service set
      callingServiceEcaSet - the calling service eca set
      calledServiceEcaSet - the called service eca set
      useMoreDetailedNames - the use more detailed names
      Returns:
      the map
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class ArtifactInfoBase
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class ArtifactInfoBase