Package com.avoka.fc.core.service
Class ServiceFactory
- java.lang.Object
-
- com.avoka.fc.core.service.ServiceFactory
-
public class ServiceFactory extends Object
Provides a service factory which creates all kinds of service objects.
-
-
Constructor Summary
Constructors Constructor Description ServiceFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AbandonmentService
getAbandonmentService()
Return the abandonment service.static UserService
getAdminUserService()
Return the Admin Console UserService instance.static ApplicationPackageService
getApplicationPackageService()
Return an ApplicationPackageService instance.static AsyncMessageService
getAsyncMessageService()
static AttachmentService
getAttachmentService()
Return AttachmentService instance.static AuditLogService
getAuditLogService()
Return AuditLogService instance.static org.springframework.security.authentication.AuthenticationManager
getAuthenticationManager()
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
getAuthenticationService()
Gets the authentication service.static ClientService
getClientService()
Return ClientService instance.static EmailService
getEmailService()
Deprecated.use ServiceLocator.getEmailService() insteadstatic ErrorLogService
getErrorLogService()
Deprecated.use getErrorLogService(String errorType) method insteadstatic ErrorLogService
getErrorLogService(String errorType)
Return ErrorLogService instance.static EventLogService
getEventLogService()
Return EventLogService instance.static FormDataService
getFormDataService()
Gets the authentication service.static FormService
getFormService()
Return FormService instance.static IFormSubmissionAccessController
getFormSubmissionAccessController()
Gets the form submission access controller.static IFormSubmissionAccessController
getFormSubmissionAccessController(boolean enableLogging)
Gets the form submission access controller.static GroovyLogService
getGroovyLogService()
Return GroovyLogService instance.static GroovyLogService
getGroovyLogService(boolean commitChanges)
Return GroovyLogService instance.static ImportActionService
getImportActionService()
Return ImportActionService instance.static JobEventLogService
getJobEventLogService()
Return JobEventLogService instance.static PaymentLogService
getPaymentService()
Return PaymentService instance.static ReceiptDataService
getReceiptDataService()
Return ReceiptDataService instance.static RequestLogService
getRequestLogService()
Return a RequestLogService instance.static SalesForceClient
getSalesForceClient()
Return SalesForceClient instance.static ScheduledJobHistoryService
getScheduledJobHistoryService()
Return the ScheduledJobHistoryService instance.static SchemaSeedService
getSchemaSeedService()
Return an instance of the SchemaSeedService.static ISecurityManagerService
getSecurityManagerService(Portal portal)
Return a SecurityManagerService instance for the given portal.static SubmissionAcknowledgementService
getSubmissionAcknowledgementService()
Return SubmissionAcknowledgementService instance.static SubmissionDataService
getSubmissionDataService()
Return the SubmissionDataService instance.static ISubmissionDeliveryController
getSubmissionDeliveryService()
Return SubmissionDeliveryService instance.static SubmissionExtractDataService
getSubmissionExtractDataService()
Return a SubmissionExtractDataService instance.static ISubmissionReceiptService
getSubmissionReceiptService()
Return ISubmissionReceiptService instance.static SubmissionService
getSubmissionService()
Return the SubmissionService instance.static SubmissionStatusService
getSubmissionStatusService()
Return SubmissionStatusService instance.static SubmissionTargetResolver
getSubmissionTargetResolver()
Return the SubmissionTargetResolver instance.static SubmissionTaskService
getSubmissionTaskService()
Return SubmissionTaskService instance.static SystemAlertService
getSystemAlertService()
Return SystemAlertService instance.static TaskService
getTaskService()
Return TaskService instance.static ITransactionHistoryCreationService
getTransactionHistoryCreationService()
Return a new Transaction History Creation service.static UserAuthEventService
getUserAuthEventService()
Return an instance of theUserAuthEventService
static UserBulkImportService
getUserBulkImportService()
Return an instance of theUserBulkImportService
static UserService
getUserService(Portal portal)
Return UserService instance.
-
-
-
Method Detail
-
getAbandonmentService
public static AbandonmentService getAbandonmentService()
Return the abandonment service.- Returns:
- the abandonment service
- Since:
- 4.0.0
-
getApplicationPackageService
public static ApplicationPackageService getApplicationPackageService()
Return an ApplicationPackageService instance.- Returns:
- a new ApplicationPackageService instance
- Since:
- 4.0.0
-
getAsyncMessageService
public static AsyncMessageService getAsyncMessageService()
- Returns:
- AsyncMessageService instance
- Since:
- 4.3.2
-
getAttachmentService
public static AttachmentService getAttachmentService()
Return AttachmentService instance.- Returns:
- AttachmentService instance
-
getAuditLogService
public static AuditLogService 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
public static IAuthenticationService getAuthenticationService()
Gets the authentication service.- Returns:
- the authentication service
-
getClientService
public static ClientService getClientService()
Return ClientService instance.- Returns:
- ClientService instance
-
getEmailService
public static EmailService 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 public static ErrorLogService getErrorLogService()
Deprecated.use getErrorLogService(String errorType) method insteadReturn ErrorLogService instance.- Returns:
- ErrorLogService instance
-
getErrorLogService
public static ErrorLogService getErrorLogService(String errorType)
Return ErrorLogService instance.- Parameters:
errorType
- the error type- Returns:
- ErrorLogService instance
- Since:
- 4.3.4
-
getEventLogService
public static EventLogService getEventLogService()
Return EventLogService instance.- Returns:
- EventLogService instance
-
getFormService
public static FormService getFormService()
Return FormService instance.- Returns:
- FormService instance
-
getFormDataService
public static FormDataService getFormDataService()
Gets the authentication service.- Returns:
- the authentication service
- Since:
- 4.1.0
-
getGroovyLogService
public static GroovyLogService getGroovyLogService()
Return GroovyLogService instance.- Returns:
- GroovyLogService instance
- Since:
- 4.2.0
-
getGroovyLogService
public static GroovyLogService getGroovyLogService(boolean commitChanges)
Return GroovyLogService instance.- Parameters:
commitChanges
- commit database changes- Returns:
- GroovyLogService instance
- Since:
- 4.3.3.1
-
getImportActionService
public static ImportActionService getImportActionService()
Return ImportActionService instance.- Returns:
- ImportActionService instance
-
getJobEventLogService
public static JobEventLogService getJobEventLogService()
Return JobEventLogService instance.- Returns:
- JobEventLogService instance
- Since:
- 4.0.0
-
getPaymentService
public static PaymentLogService getPaymentService()
Return PaymentService instance.- Returns:
- PaymentService instance
-
getReceiptDataService
public static ReceiptDataService getReceiptDataService()
Return ReceiptDataService instance.- Returns:
- ReceiptDataService instance
-
getRequestLogService
public static RequestLogService 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
public static SalesForceClient getSalesForceClient()
Return SalesForceClient instance.- Returns:
- SalesForceClient instance
- Since:
- 4.2.0
-
getSchemaSeedService
public static SchemaSeedService getSchemaSeedService()
Return an instance of the SchemaSeedService.- Returns:
- a SchemaSeedService instance
-
getSubmissionAcknowledgementService
public static SubmissionAcknowledgementService getSubmissionAcknowledgementService()
Return SubmissionAcknowledgementService instance.- Returns:
- SubmissionAcknowledgementService instance
-
getSubmissionDeliveryService
public static ISubmissionDeliveryController getSubmissionDeliveryService()
Return SubmissionDeliveryService instance.- Returns:
- SubmissionDeliveryService instance
-
getSubmissionExtractDataService
public static SubmissionExtractDataService getSubmissionExtractDataService()
Return a SubmissionExtractDataService instance.- Returns:
- SubmissionExtractDataService instance
-
getSubmissionReceiptService
public static ISubmissionReceiptService getSubmissionReceiptService()
Return ISubmissionReceiptService instance.- Returns:
- ISubmissionReceiptService instance
-
getSubmissionStatusService
public static SubmissionStatusService getSubmissionStatusService()
Return SubmissionStatusService instance.- Returns:
- SubmissionStatusService instance
-
getSubmissionTaskService
public static SubmissionTaskService getSubmissionTaskService()
Return SubmissionTaskService instance.- Returns:
- SubmissionTaskService instance
- Since:
- 4.1.0
-
getSystemAlertService
public static SystemAlertService getSystemAlertService()
Return SystemAlertService instance.- Returns:
- SystemAlertService instance.
- Since:
- 4.1.0
-
getTaskService
public static TaskService getTaskService()
Return TaskService instance.- Returns:
- TaskService instance
-
getFormSubmissionAccessController
public static IFormSubmissionAccessController 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
public static ScheduledJobHistoryService getScheduledJobHistoryService()
Return the ScheduledJobHistoryService instance.- Returns:
- the ScheduledJobHistoryService instance
- Since:
- 4.3.0
-
getSubmissionService
public static SubmissionService getSubmissionService()
Return the SubmissionService instance.- Returns:
- the SubmissionService instance
-
getSubmissionDataService
public static SubmissionDataService getSubmissionDataService()
Return the SubmissionDataService instance.- Returns:
- the SubmissionDataService instance
- Since:
- 4.1.0
-
getSubmissionTargetResolver
public static SubmissionTargetResolver getSubmissionTargetResolver()
Return the SubmissionTargetResolver instance.- Returns:
- the SubmissionTargetResolver instance
- Since:
- 4.1.0
-
getTransactionHistoryCreationService
public static ITransactionHistoryCreationService getTransactionHistoryCreationService()
Return a new Transaction History Creation service.- Returns:
- a new Transaction History Creation service
- Since:
- 4.3.3
-
getAdminUserService
public static UserService getAdminUserService()
Return the Admin Console UserService instance.- Returns:
- UserService instance
-
getUserService
public static UserService getUserService(Portal portal)
Return UserService instance.- Parameters:
portal
- the portal to initialize the user service with- Returns:
- UserService instance
-
getUserAuthEventService
public static UserAuthEventService getUserAuthEventService()
Return an instance of theUserAuthEventService
- Returns:
- an user auth event service instance
- Since:
- 4.3.1
-
getUserBulkImportService
public static UserBulkImportService getUserBulkImportService()
Return an instance of theUserBulkImportService
- Returns:
- the user bulk import service instance
- Since:
- 3.6.0
-
-