public class DefaultIncomingAppService extends Object implements IncomingAppService
Default implementation of the IncomingAppService interface.
| Constructor and Description |
|---|
DefaultIncomingAppService() |
| Modifier and Type | Method and Description |
|---|---|
AppReaderService |
getAppReaderService() |
CurrentTenantService |
getCurrentTenantService() |
TenantLookupService |
getTenantLookupService() |
void |
importFromResource(org.springframework.core.io.Resource resource,
boolean isSystemApp,
boolean isEditable,
boolean forceAppImport,
boolean ignoreImportErrors,
List<String> tenantNames)
Import the system app from the given zip resource into the current tenant.
|
void |
importSystemAppIntoCurrentTenant(org.springframework.core.io.Resource resource,
boolean isEditable,
boolean forceAppImport)
Import the system app from the given zip resource into the current tenant.
|
void |
processResource(org.springframework.messaging.Message<org.springframework.core.io.Resource> message)
Process a resource message from an incoming app channel.
|
public void importSystemAppIntoCurrentTenant(org.springframework.core.io.Resource resource,
boolean isEditable,
boolean forceAppImport)
IncomingAppServiceImport the system app from the given zip resource into the current tenant.
This entry point is used by the tenant initialization code and assumes that the current tenant is set and that a transaction is already configured if required.
importSystemAppIntoCurrentTenant in interface IncomingAppServiceresource - the system app zip resourceisEditable - if the resulting system app should be editableforceAppImport - if the import should be forced (local changes are overridden)@ServiceActivator(inputChannel="resourceAppChannel") public void processResource(org.springframework.messaging.Message<org.springframework.core.io.Resource> message)
IncomingAppServiceProcess a resource message from an incoming app channel.
processResource in interface IncomingAppServicemessage - a Resource referencing an app archivepublic void importFromResource(org.springframework.core.io.Resource resource,
boolean isSystemApp,
boolean isEditable,
boolean forceAppImport,
boolean ignoreImportErrors,
List<String> tenantNames)
IncomingAppServiceImport the system app from the given zip resource into the current tenant.
importFromResource in interface IncomingAppServiceresource - zip app import resourceisSystemApp - if the application is imported as a system applicationisEditable - if the resulting system app should be editableforceAppImport - if the import should be forced (local changes are overridden)ignoreImportErrors - if the errors during the import should be ignoredtenantNames - list of tenant names to which application should be importedpublic CurrentTenantService getCurrentTenantService()
public TenantLookupService getTenantLookupService()
public AppReaderService getAppReaderService()
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.