org.bonitasoft.engine.service.ServiceAccessor Maven / Gradle / Ivy
The newest version!
/**
* Copyright (C) 2019 Bonitasoft S.A.
* Bonitasoft, 32 rue Gustave Eiffel - 38000 Grenoble
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation
* version 2.1 of the License.
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public License along with this
* program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301, USA.
**/
package org.bonitasoft.engine.service;
import org.bonitasoft.engine.actor.mapping.ActorMappingService;
import org.bonitasoft.engine.api.impl.resolver.BusinessArchiveArtifactsManager;
import org.bonitasoft.engine.archive.ArchiveService;
import org.bonitasoft.engine.authentication.GenericAuthenticationService;
import org.bonitasoft.engine.authorization.PermissionService;
import org.bonitasoft.engine.bar.BusinessArchiveService;
import org.bonitasoft.engine.bpm.model.impl.BPMInstancesCreator;
import org.bonitasoft.engine.business.application.ApplicationService;
import org.bonitasoft.engine.business.application.importer.ApplicationImporter;
import org.bonitasoft.engine.business.data.BusinessDataModelRepository;
import org.bonitasoft.engine.business.data.BusinessDataRepository;
import org.bonitasoft.engine.business.data.BusinessDataService;
import org.bonitasoft.engine.cache.CacheService;
import org.bonitasoft.engine.classloader.ClassLoaderService;
import org.bonitasoft.engine.command.CommandService;
import org.bonitasoft.engine.connector.ConnectorExecutor;
import org.bonitasoft.engine.core.category.CategoryService;
import org.bonitasoft.engine.core.connector.ConnectorInstanceService;
import org.bonitasoft.engine.core.connector.ConnectorService;
import org.bonitasoft.engine.core.contract.data.ContractDataService;
import org.bonitasoft.engine.core.data.instance.TransientDataService;
import org.bonitasoft.engine.core.document.api.DocumentService;
import org.bonitasoft.engine.core.expression.control.api.ExpressionResolverService;
import org.bonitasoft.engine.core.filter.UserFilterService;
import org.bonitasoft.engine.core.form.FormMappingService;
import org.bonitasoft.engine.core.login.LoginService;
import org.bonitasoft.engine.core.login.TechnicalUser;
import org.bonitasoft.engine.core.operation.OperationService;
import org.bonitasoft.engine.core.platform.login.PlatformLoginService;
import org.bonitasoft.engine.core.process.comment.api.SCommentService;
import org.bonitasoft.engine.core.process.definition.ProcessDefinitionService;
import org.bonitasoft.engine.core.process.instance.api.ActivityInstanceService;
import org.bonitasoft.engine.core.process.instance.api.GatewayInstanceService;
import org.bonitasoft.engine.core.process.instance.api.ProcessInstanceService;
import org.bonitasoft.engine.core.process.instance.api.RefBusinessDataService;
import org.bonitasoft.engine.core.process.instance.api.event.EventInstanceRepository;
import org.bonitasoft.engine.core.process.instance.api.event.EventInstanceService;
import org.bonitasoft.engine.data.instance.api.DataInstanceService;
import org.bonitasoft.engine.data.instance.api.ParentContainerResolver;
import org.bonitasoft.engine.dependency.DependencyService;
import org.bonitasoft.engine.events.EventService;
import org.bonitasoft.engine.exception.NotFoundException;
import org.bonitasoft.engine.execution.ContainerRegistry;
import org.bonitasoft.engine.execution.FlowNodeExecutor;
import org.bonitasoft.engine.execution.ProcessExecutor;
import org.bonitasoft.engine.execution.ProcessInstanceInterruptor;
import org.bonitasoft.engine.execution.ProcessStarterVerifier;
import org.bonitasoft.engine.execution.archive.BPMArchiverService;
import org.bonitasoft.engine.execution.event.EventsHandler;
import org.bonitasoft.engine.execution.state.FlowNodeStateManager;
import org.bonitasoft.engine.execution.work.BPMWorkFactory;
import org.bonitasoft.engine.expression.ExpressionService;
import org.bonitasoft.engine.external.identity.mapping.ExternalIdentityMappingService;
import org.bonitasoft.engine.identity.IconService;
import org.bonitasoft.engine.identity.IdentityService;
import org.bonitasoft.engine.incident.IncidentService;
import org.bonitasoft.engine.lock.LockService;
import org.bonitasoft.engine.message.MessagesHandlingService;
import org.bonitasoft.engine.page.PageMappingService;
import org.bonitasoft.engine.page.PageService;
import org.bonitasoft.engine.parameter.ParameterService;
import org.bonitasoft.engine.persistence.ReadPersistenceService;
import org.bonitasoft.engine.platform.PlatformManager;
import org.bonitasoft.engine.platform.PlatformRetriever;
import org.bonitasoft.engine.platform.PlatformService;
import org.bonitasoft.engine.platform.authentication.PlatformAuthenticationService;
import org.bonitasoft.engine.platform.command.PlatformCommandService;
import org.bonitasoft.engine.platform.configuration.NodeConfiguration;
import org.bonitasoft.engine.platform.session.PlatformSessionService;
import org.bonitasoft.engine.profile.ProfileService;
import org.bonitasoft.engine.profile.ProfilesExporter;
import org.bonitasoft.engine.profile.ProfilesImporter;
import org.bonitasoft.engine.recorder.Recorder;
import org.bonitasoft.engine.resources.ProcessResourcesService;
import org.bonitasoft.engine.resources.TenantResourcesService;
import org.bonitasoft.engine.scheduler.JobService;
import org.bonitasoft.engine.scheduler.SchedulerService;
import org.bonitasoft.engine.search.descriptor.SearchEntitiesDescriptor;
import org.bonitasoft.engine.services.QueriableLoggerService;
import org.bonitasoft.engine.session.SessionService;
import org.bonitasoft.engine.sessionaccessor.SessionAccessor;
import org.bonitasoft.engine.supervisor.mapping.SupervisorMappingService;
import org.bonitasoft.engine.synchro.SynchroService;
import org.bonitasoft.engine.temporary.content.TemporaryContentService;
import org.bonitasoft.engine.tenant.TenantServicesManager;
import org.bonitasoft.engine.tenant.TenantStateManager;
import org.bonitasoft.engine.tracking.TimeTracker;
import org.bonitasoft.engine.transaction.TransactionService;
import org.bonitasoft.engine.transaction.UserTransactionService;
import org.bonitasoft.engine.work.WorkExecutorService;
import org.bonitasoft.engine.work.WorkService;
import org.springframework.context.ApplicationContext;
import org.springframework.core.env.Environment;
/**
* @author Matthieu Chaffotte
*/
public interface ServiceAccessor {
long getTenantId();
ParentContainerResolver getParentContainerResolver();
SessionService getSessionService();
IdentityService getIdentityService();
IconService getIconService();
LoginService getLoginService();
QueriableLoggerService getQueriableLoggerService();
UserTransactionService getUserTransactionService();
ProcessDefinitionService getProcessDefinitionService();
ProcessInstanceService getProcessInstanceService();
ActivityInstanceService getActivityInstanceService();
BPMInstancesCreator getBPMInstancesCreator();
FlowNodeExecutor getFlowNodeExecutor();
ProcessExecutor getProcessExecutor();
FlowNodeStateManager getFlowNodeStateManager();
ActorMappingService getActorMappingService();
ArchiveService getArchiveService();
CategoryService getCategoryService();
ExpressionService getExpressionService();
CommandService getCommandService();
ClassLoaderService getClassLoaderService();
DependencyService getDependencyService();
DependencyService getPlatformDependencyService();
EventInstanceService getEventInstanceService();
EventInstanceRepository getEventInstanceRepository();
ConnectorService getConnectorService();
ConnectorInstanceService getConnectorInstanceService();
DocumentService getDocumentService();
ProfileService getProfileService();
ProfilesImporter getProfilesImporter();
ProfilesExporter getProfilesExporter();
DataInstanceService getDataInstanceService();
TransientDataService getTransientDataService();
ExpressionResolverService getExpressionResolverService();
OperationService getOperationService();
SupervisorMappingService getSupervisorService();
ExternalIdentityMappingService getExternalIdentityMappingService();
UserFilterService getUserFilterService();
SearchEntitiesDescriptor getSearchEntitiesDescriptor();
SCommentService getCommentService();
ContainerRegistry getContainerRegistry();
LockService getLockService();
EventsHandler getEventsHandler();
EventService getEventService();
ConnectorExecutor getConnectorExecutor();
CacheService getCacheService();
BusinessArchiveArtifactsManager getBusinessArchiveArtifactsManager();
WorkService getWorkService();
WorkExecutorService getWorkExecutorService();
SessionAccessor getSessionAccessor();
SynchroService getSynchroService();
IncidentService getIncidentService();
SchedulerService getSchedulerService();
JobService getJobService();
T lookup(String serviceName) throws NotFoundException;
T lookup(Class beanClass) throws NotFoundException;
GatewayInstanceService getGatewayInstanceService();
void destroy();
TimeTracker getTimeTracker();
PermissionService getPermissionService();
ContractDataService getContractDataService();
ParameterService getParameterService();
PageService getPageService();
ApplicationService getApplicationService();
FormMappingService getFormMappingService();
BusinessDataRepository getBusinessDataRepository();
BusinessDataService getBusinessDataService();
BusinessDataModelRepository getBusinessDataModelRepository();
RefBusinessDataService getRefBusinessDataService();
PageMappingService getPageMappingService();
GenericAuthenticationService getAuthenticationService();
ReadPersistenceService getReadPersistenceService();
Recorder getRecorder();
BusinessArchiveService getBusinessArchiveService();
ProcessResourcesService getProcessResourcesService();
TenantResourcesService getTenantResourcesService();
MessagesHandlingService getMessagesHandlingService();
ProcessInstanceInterruptor getProcessInstanceInterruptor();
BPMWorkFactory getBPMWorkFactory();
TechnicalUser getTechnicalUser();
TenantStateManager getTenantStateManager();
TenantServicesManager getTenantServicesManager();
BPMArchiverService getBPMArchiverService();
ApplicationImporter getApplicationImporter();
PlatformService getPlatformService();
PlatformLoginService getPlatformLoginService();
TransactionService getTransactionService();
TenantServiceAccessor getTenantServiceAccessor();
PlatformSessionService getPlatformSessionService();
PlatformCommandService getPlatformCommandService();
NodeConfiguration getPlatformConfiguration();
PlatformManager getPlatformManager();
CacheService getPlatformCacheService();
TemporaryContentService getTemporaryContentService();
BroadcastService getBroadcastService();
PlatformAuthenticationService getPlatformAuthenticationService();
ServicesResolver getServicesResolver();
void publishEvent(Object event);
ApplicationContext getContext();
PlatformRetriever getPlatformRetriever();
InstallationService getInstallationService();
ProcessStarterVerifier getProcessStarterVerifier();
Environment getSpringEnvironment();
}