org.ofbiz.webtools.artifactinfo
Class ServiceArtifactInfo

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

public class ServiceArtifactInfo
extends ArtifactInfoBase


Field Summary
protected  java.lang.String displayPrefix
           
protected  ModelService modelService
           
static java.lang.String module
           
 
Fields inherited from class org.ofbiz.webtools.artifactinfo.ArtifactInfoBase
aif
 
Constructor Summary
ServiceArtifactInfo(java.lang.String serviceName, ArtifactInfoFactory aif)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> createEoModelMap(java.util.Set<ServiceArtifactInfo> callingServiceSet, java.util.Set<ServiceArtifactInfo> calledServiceSet, java.util.Set<ServiceEcaArtifactInfo> callingServiceEcaSet, java.util.Set<ServiceEcaArtifactInfo> calledServiceEcaSet, boolean useMoreDetailedNames)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDisplayName()
           
 java.lang.String getDisplayPrefixedName()
           
 java.lang.String getDisplayType()
           
 java.util.Set<EntityArtifactInfo> getEntitiesUsedByService()
           
 java.util.Set<FormWidgetArtifactInfo> getFormsBasedOnService()
           
 java.util.Set<FormWidgetArtifactInfo> getFormsCallingService()
           
 java.net.URL getImplementationLocationURL()
           
 java.net.URL getLocationURL()
           
 ModelService getModelService()
           
 java.util.Set<ControllerRequestArtifactInfo> getRequestsWithEventCallingService()
           
 java.util.Set<ScreenWidgetArtifactInfo> getScreensCallingService()
           
 java.util.Set<ServiceEcaArtifactInfo> getServiceEcaRulesCallingService()
           
 java.util.Set<ServiceEcaArtifactInfo> getServiceEcaRulesTriggeredByService()
           
 java.util.Set<ServiceArtifactInfo> getServicesCalledByService()
           
 java.util.Set<ServiceArtifactInfo> getServicesCalledByServiceEcas()
           
 java.util.Set<ServiceArtifactInfo> getServicesCallingService()
           
 java.util.Set<ServiceArtifactInfo> getServicesCallingServiceByEcas()
           
 java.lang.String getType()
           
 java.lang.String getUniqueId()
           
 void populateAll()
          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
protected  void populateCalledServices()
           
protected  void populateEntitiesFromNameSet(java.util.Set<java.lang.String> allEntityNameSet)
           
protected  void populateServicesFromNameSet(java.util.Set<java.lang.String> allServiceNameSet)
           
protected  void populateTriggeredServiceEcas()
           
protected  void populateUsedEntities()
           
 void setDisplayPrefix(java.lang.String displayPrefix)
           
 void writeServiceCallGraphEoModel(java.lang.String eomodeldFullPath)
           
 
Methods inherited from class org.ofbiz.webtools.artifactinfo.ArtifactInfoBase
compareTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

modelService

protected ModelService modelService

displayPrefix

protected java.lang.String displayPrefix
Constructor Detail

ServiceArtifactInfo

public ServiceArtifactInfo(java.lang.String serviceName,
                           ArtifactInfoFactory aif)
                    throws GeneralException
Throws:
GeneralException
Method Detail

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
Throws:
GeneralException

populateEntitiesFromNameSet

protected void populateEntitiesFromNameSet(java.util.Set<java.lang.String> allEntityNameSet)
                                    throws GeneralException
Throws:
GeneralException

populateCalledServices

protected void populateCalledServices()
                               throws GeneralException
Throws:
GeneralException

populateServicesFromNameSet

protected void populateServicesFromNameSet(java.util.Set<java.lang.String> allServiceNameSet)
                                    throws GeneralException
Throws:
GeneralException

populateTriggeredServiceEcas

protected void populateTriggeredServiceEcas()
                                     throws GeneralException
Throws:
GeneralException

getModelService

public ModelService getModelService()

setDisplayPrefix

public void setDisplayPrefix(java.lang.String displayPrefix)

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in class ArtifactInfoBase

getDisplayPrefixedName

public java.lang.String getDisplayPrefixedName()

getDisplayType

public java.lang.String getDisplayType()
Specified by:
getDisplayType in class ArtifactInfoBase

getType

public java.lang.String getType()
Specified by:
getType in class ArtifactInfoBase

getUniqueId

public java.lang.String getUniqueId()
Specified by:
getUniqueId in class ArtifactInfoBase

getLocationURL

public java.net.URL getLocationURL()
                            throws java.net.MalformedURLException
Specified by:
getLocationURL in class ArtifactInfoBase
Throws:
java.net.MalformedURLException

getImplementationLocationURL

public java.net.URL getImplementationLocationURL()
                                          throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

getEntitiesUsedByService

public java.util.Set<EntityArtifactInfo> getEntitiesUsedByService()

getServicesCallingService

public java.util.Set<ServiceArtifactInfo> getServicesCallingService()

getServicesCalledByService

public java.util.Set<ServiceArtifactInfo> getServicesCalledByService()

getServicesCalledByServiceEcas

public java.util.Set<ServiceArtifactInfo> getServicesCalledByServiceEcas()

getServiceEcaRulesTriggeredByService

public java.util.Set<ServiceEcaArtifactInfo> getServiceEcaRulesTriggeredByService()

getServicesCallingServiceByEcas

public java.util.Set<ServiceArtifactInfo> getServicesCallingServiceByEcas()

getServiceEcaRulesCallingService

public java.util.Set<ServiceEcaArtifactInfo> getServiceEcaRulesCallingService()

getFormsCallingService

public java.util.Set<FormWidgetArtifactInfo> getFormsCallingService()

getFormsBasedOnService

public java.util.Set<FormWidgetArtifactInfo> getFormsBasedOnService()

getScreensCallingService

public java.util.Set<ScreenWidgetArtifactInfo> getScreensCallingService()

getRequestsWithEventCallingService

public java.util.Set<ControllerRequestArtifactInfo> getRequestsWithEventCallingService()

writeServiceCallGraphEoModel

public void writeServiceCallGraphEoModel(java.lang.String eomodeldFullPath)
                                  throws GeneralException,
                                         java.io.FileNotFoundException,
                                         java.io.UnsupportedEncodingException
Throws:
GeneralException
java.io.FileNotFoundException
java.io.UnsupportedEncodingException

createEoModelMap

public java.util.Map<java.lang.String,java.lang.Object> createEoModelMap(java.util.Set<ServiceArtifactInfo> callingServiceSet,
                                                                         java.util.Set<ServiceArtifactInfo> calledServiceSet,
                                                                         java.util.Set<ServiceEcaArtifactInfo> callingServiceEcaSet,
                                                                         java.util.Set<ServiceEcaArtifactInfo> calledServiceEcaSet,
                                                                         boolean useMoreDetailedNames)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class ArtifactInfoBase