Package com.avoka.fc.core.service
Class ServiceFactory
java.lang.Object
com.avoka.fc.core.service.ServiceFactory
Provides a service factory which creates all kinds of service objects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AbandonmentService
Return the abandonment service.static UserService
Return the Admin Console UserService instance.static ApplicationPackageService
Return an ApplicationPackageService instance.static AsyncMessageService
static AttachmentService
Return AttachmentService instance.static AuditLogService
Return AuditLogService instance.static org.springframework.security.authentication.AuthenticationManager
Return the Spring Security Authentication Provider manager.static org.springframework.security.authentication.AuthenticationManager
getAuthenticationManager
(Portal portal) Return the Spring Security Authentication Provider manager for the portal.static IAuthenticationService
Gets the authentication service.static ClientService
Return ClientService instance.static EmailService
Deprecated.use ServiceLocator.getEmailService() insteadstatic ErrorLogService
Deprecated.use getErrorLogService(String errorType) method insteadstatic ErrorLogService
getErrorLogService
(String errorType) Return ErrorLogService instance.static EventInboxService
Return EventInboxService instance.static EventLogService
Return EventLogService instance.static EventOutboxService
Return EventOutboxService instance.static FormDataService
Gets the authentication service.static FormService
Return FormService instance.Gets the form submission access controller.getFormSubmissionAccessController
(boolean enableLogging) Gets the form submission access controller.static GroovyLogService
Return GroovyLogService instance.static GroovyLogService
getGroovyLogService
(boolean commitChanges) Return GroovyLogService instance.static ImportActionService
Return ImportActionService instance.static IntegrityCheckerLogService
Return IntegrityCheckerLogService instance.static JobEventLogService
Return JobEventLogService instance.static PaymentLogService
Return PaymentService instance.static ReceiptDataService
Return ReceiptDataService instance.static RequestLogService
Return a RequestLogService instance.static SalesForceClient
Return SalesForceClient instance.static ScheduledJobHistoryService
Return the ScheduledJobHistoryService instance.static SchemaSeedService
Return an instance of the SchemaSeedService.static ISecurityManagerService
getSecurityManagerService
(Portal portal) Return a SecurityManagerService instance for the given portal.Return SubmissionAcknowledgementService instance.static SubmissionDataService
Return the SubmissionDataService instance.Return SubmissionDeliveryService instance.static SubmissionExtractDataService
Return a SubmissionExtractDataService instance.static ISubmissionReceiptService
Return ISubmissionReceiptService instance.static SubmissionService
Return the SubmissionService instance.static SubmissionStatusService
Return SubmissionStatusService instance.static SubmissionTargetResolver
Return the SubmissionTargetResolver instance.static SubmissionTaskService
Return SubmissionTaskService instance.static SystemAlertService
Return SystemAlertService instance.static TaskService
Return TaskService instance.Return a new Transaction History Creation service.static UserAuthEventService
Return an instance of theUserAuthEventService
static UserBulkImportService
Return an instance of theUserBulkImportService
static UserService
getUserService
(Portal portal) Return UserService instance.
-
Constructor Details
-
ServiceFactory
public ServiceFactory()
-
-
Method Details
-
getAbandonmentService
Return the abandonment service.- Returns:
- the abandonment service
- Since:
- 4.0.0
-
getApplicationPackageService
Return an ApplicationPackageService instance.- Returns:
- a new ApplicationPackageService instance
- Since:
- 4.0.0
-
getAsyncMessageService
- Returns:
- AsyncMessageService instance
- Since:
- 4.3.2
-
getAttachmentService
Return AttachmentService instance.- Returns:
- AttachmentService instance
-
getAuditLogService
Return AuditLogService instance.- Returns:
- AuditLogService instance
-
getAuthenticationManager
public static org.springframework.security.authentication.AuthenticationManager getAuthenticationManager()Return the Spring Security Authentication Provider manager.- Returns:
- the Spring Security Authentication Provider manager
-
getAuthenticationManager
public static org.springframework.security.authentication.AuthenticationManager getAuthenticationManager(Portal portal) Return the Spring Security Authentication Provider manager for the portal.- Parameters:
portal
- the portal entity- Returns:
- the Spring Security Authentication Provider manager for the portal
- Since:
- 19.5.0
-
getAuthenticationService
Gets the authentication service.- Returns:
- the authentication service
-
getClientService
Return ClientService instance.- Returns:
- ClientService instance
-
getEmailService
Deprecated.use ServiceLocator.getEmailService() insteadReturn the Email Service instance. Note this may not be the default email service, please use ServiceLocator.getEmailService() instead.- Returns:
- EmailService instance
-
getErrorLogService
Deprecated.use getErrorLogService(String errorType) method insteadReturn ErrorLogService instance.- Returns:
- ErrorLogService instance
-
getErrorLogService
Return ErrorLogService instance.- Parameters:
errorType
- the error type- Returns:
- ErrorLogService instance
- Since:
- 4.3.4
-
getEventInboxService
Return EventInboxService instance.- Returns:
- EventInboxService instance
- Since:
- 24.4.0
-
getEventLogService
Return EventLogService instance.- Returns:
- EventLogService instance
-
getEventOutboxService
Return EventOutboxService instance.- Returns:
- EventOutboxService instance
-
getFormService
Return FormService instance.- Returns:
- FormService instance
-
getFormDataService
Gets the authentication service.- Returns:
- the authentication service
- Since:
- 4.1.0
-
getGroovyLogService
Return GroovyLogService instance.- Returns:
- GroovyLogService instance
- Since:
- 4.2.0
-
getGroovyLogService
Return GroovyLogService instance.- Parameters:
commitChanges
- commit database changes- Returns:
- GroovyLogService instance
- Since:
- 4.3.3.1
-
getImportActionService
Return ImportActionService instance.- Returns:
- ImportActionService instance
-
getIntegrityCheckerLogService
Return IntegrityCheckerLogService instance.- Returns:
- IntegrityCheckerLogService instance
- Since:
- 23.10.0
-
getJobEventLogService
Return JobEventLogService instance.- Returns:
- JobEventLogService instance
- Since:
- 4.0.0
-
getPaymentService
Return PaymentService instance.- Returns:
- PaymentService instance
-
getReceiptDataService
Return ReceiptDataService instance.- Returns:
- ReceiptDataService instance
-
getRequestLogService
Return a RequestLogService instance. Note that a Spring bean named requestLogService is loaded first; if this does not succeed, a new RequestLogService instance is returned- Returns:
- a RequestLogService instance
-
getSecurityManagerService
public static ISecurityManagerService getSecurityManagerService(Portal portal) throws ApplicationException Return a SecurityManagerService instance for the given portal.- Parameters:
portal
- the associated portal (required)- Returns:
- SecurityManagerService instance for the given portal.
- Throws:
ApplicationException
- if no security manager is defined for the portal (implying that no default security manager is set)
-
getSalesForceClient
Return SalesForceClient instance.- Returns:
- SalesForceClient instance
- Since:
- 4.2.0
-
getSchemaSeedService
Return an instance of the SchemaSeedService.- Returns:
- a SchemaSeedService instance
-
getSubmissionAcknowledgementService
Return SubmissionAcknowledgementService instance.- Returns:
- SubmissionAcknowledgementService instance
-
getSubmissionDeliveryService
Return SubmissionDeliveryService instance.- Returns:
- SubmissionDeliveryService instance
-
getSubmissionExtractDataService
Return a SubmissionExtractDataService instance.- Returns:
- SubmissionExtractDataService instance
-
getSubmissionReceiptService
Return ISubmissionReceiptService instance.- Returns:
- ISubmissionReceiptService instance
-
getSubmissionStatusService
Return SubmissionStatusService instance.- Returns:
- SubmissionStatusService instance
-
getSubmissionTaskService
Return SubmissionTaskService instance.- Returns:
- SubmissionTaskService instance
- Since:
- 4.1.0
-
getSystemAlertService
Return SystemAlertService instance.- Returns:
- SystemAlertService instance.
- Since:
- 4.1.0
-
getTaskService
Return TaskService instance.- Returns:
- TaskService instance
-
getFormSubmissionAccessController
Gets the form submission access controller.- Returns:
- the form submission access controller
-
getFormSubmissionAccessController
public static IFormSubmissionAccessController getFormSubmissionAccessController(boolean enableLogging) Gets the form submission access controller.- Parameters:
enableLogging
- enable security event logging- Returns:
- the form submission access controller
- Since:
- 4.3.1
-
getScheduledJobHistoryService
Return the ScheduledJobHistoryService instance.- Returns:
- the ScheduledJobHistoryService instance
- Since:
- 4.3.0
-
getSubmissionService
Return the SubmissionService instance.- Returns:
- the SubmissionService instance
-
getSubmissionDataService
Return the SubmissionDataService instance.- Returns:
- the SubmissionDataService instance
- Since:
- 4.1.0
-
getSubmissionTargetResolver
Return the SubmissionTargetResolver instance.- Returns:
- the SubmissionTargetResolver instance
- Since:
- 4.1.0
-
getTransactionHistoryCreationService
Return a new Transaction History Creation service.- Returns:
- a new Transaction History Creation service
- Since:
- 4.3.3
-
getAdminUserService
Return the Admin Console UserService instance.- Returns:
- UserService instance
-
getUserService
Return UserService instance.- Parameters:
portal
- the portal to initialize the user service with- Returns:
- UserService instance
-
getUserAuthEventService
Return an instance of theUserAuthEventService
- Returns:
- an user auth event service instance
- Since:
- 4.3.1
-
getUserBulkImportService
Return an instance of theUserBulkImportService
- Returns:
- the user bulk import service instance
- Since:
- 3.6.0
-