public class LocalZipFileOutgoingAppChannelAdapter extends Object
Outgoing app channel adapter which stores the app model as ZIP file on the local file system.
Constructor and Description |
---|
LocalZipFileOutgoingAppChannelAdapter(WorkObjectService workObjectService,
CurrentTenantService currentTenantService,
TenantLookupService tenantLookupService,
TimeProvider timeProvider,
GearExpressionResolver gearExpressionResolver,
AppExporter appExporter,
AppWriterFactory writerFactory,
String name,
Path basePath,
org.springframework.messaging.MessageChannel messageChannel) |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the localized channel name.
|
void |
sendApp(String appModelId,
String comment)
Sends the app with the given ID into the outgoing channel.
|
void |
setExportedAppNameExpression(String exportedAppNameExpression)
Set the expression which evaluates the name of the exported app (depends on the concrete implementation).
|
void |
setMessageSendTimeout(long messageSendTimeout)
Set the timeout of the
MessageChannel for sending the message in milliseconds. |
void |
setUseTenantSubdirectories(boolean useTenantSubdirectories)
True if the app should be exported into a parent folder named by the tenant name.
|
@Autowired public LocalZipFileOutgoingAppChannelAdapter(WorkObjectService workObjectService, CurrentTenantService currentTenantService, TenantLookupService tenantLookupService, TimeProvider timeProvider, GearExpressionResolver gearExpressionResolver, AppExporter appExporter, AppWriterFactory writerFactory, String name, Path basePath, org.springframework.messaging.MessageChannel messageChannel)
public String getName()
OutgoingAppChannelAdapter
Returns the localized channel name.
getName
in interface OutgoingAppChannelAdapter
public void sendApp(String appModelId, String comment)
OutgoingAppChannelAdapter
Sends the app with the given ID into the outgoing channel.
sendApp
in interface OutgoingAppChannelAdapter
appModelId
- the ID of the app to be sentcomment
- the distribution commentpublic void setUseTenantSubdirectories(boolean useTenantSubdirectories)
AbstractOutgoingAppChannelAdapter.basePath
.useTenantSubdirectories
- True if a parent tenant folder should be created, false otherwisepublic void setMessageSendTimeout(long messageSendTimeout)
MessageChannel
for sending the message in milliseconds. The default is 60000 milliseconds.messageSendTimeout
- the message channel send timeout in millisecondsMessageChannel.send(Message, long)
public void setExportedAppNameExpression(String exportedAppNameExpression)
globalId
.exportedAppNameExpression
- the expression which evaluates the name of the exported appCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.