Class ExecutionContext


  • public class ExecutionContext
    extends Object
    Context container class to hold all parts involved in execution. It makes code cleaner to pass less parameters where they needed.
    • Method Detail

      • initialize

        public void initialize​(String userId)
      • initializeSoftwareServerCapability

        public void initializeSoftwareServerCapability​(String userId,
                                                       String softwareServerCapabilityName,
                                                       String softwareServerCapabilityGUID)
                                                throws AnalyticsModelingCheckedException
        Get software server capability by GUID, name, or create.
        Parameters:
        userId - of the request.
        softwareServerCapabilityName - to get.
        softwareServerCapabilityGUID - to get.
        Throws:
        AnalyticsModelingCheckedException - in case of an errors.
      • getUserId

        public String getUserId()
        Returns:
        the userId
      • setUserId

        public void setUserId​(String value)
        Set the userId.
        Parameters:
        value - to set.
      • getServiceName

        public String getServiceName()
        Get service name.
        Returns:
        the serviceName
      • getServerName

        public String getServerName()
        Get server name.
        Returns:
        the serverName
      • getInvalidParameterHandler

        public InvalidParameterHandler getInvalidParameterHandler()
        Get invalid parameter handler.
        Returns:
        the invalidParameterHandler
      • getRepositoryHandler

        public RepositoryHandler getRepositoryHandler()
        Get repository handler.
        Returns:
        the repositoryHandler
      • getRepositoryHelper

        public OMRSRepositoryHelper getRepositoryHelper()
        Get repository helper.
        Returns:
        the repositoryHelper
      • getLocalServerUserId

        public String getLocalServerUserId()
        Returns:
        the localServerUserId
      • getSupportedZones

        public List<String> getSupportedZones()
        Returns:
        the supportedZones
      • getDefaultZones

        public List<String> getDefaultZones()
        Returns:
        the defaultZones
      • getPublishZones

        public List<String> getPublishZones()
        Returns:
        the publishZones
      • getAuditLog

        public AuditLog getAuditLog()
        Returns:
        the auditLog
      • getStringProperty

        public String getStringProperty​(String propName,
                                        InstanceProperties properties,
                                        String methodName)
        Helper function to get string property from property collection of the entity.
        Parameters:
        propName - property name to retrieve.
        properties - collection.
        methodName - requested the operation.
        Returns:
        property value.
      • addTableWithoutColumns

        public void addTableWithoutColumns​(String name)
      • addIgnoredTableColumn

        public void addIgnoredTableColumn​(String nameTable,
                                          String nameColumn)
      • getMessages

        public Messages getMessages()