public class ImportScheduleDefinition extends Object
ImportProcessExecutor}
Modifier and Type | Field and Description |
---|---|
protected Long |
catalogId |
protected String |
filename |
protected ImportType |
importType |
protected Long |
sandboxId |
protected Long |
siteId |
protected ImportSpecification |
specification |
Constructor and Description |
---|
ImportScheduleDefinition(ImportSpecification specification,
ImportType importType)
Which admin ceiling class the import should go into
|
Modifier and Type | Method and Description |
---|---|
protected String |
generateFilename() |
Long |
getCatalogId() |
String |
getFilename() |
ImportType |
getImportType() |
Long |
getSandboxId() |
Long |
getSiteId() |
ImportSpecification |
getSpecification() |
ImportScheduleDefinition |
withCatalog(Long catalogId)
Optional ability to import into a given catalog.
|
ImportScheduleDefinition |
withFilename(String filename)
If null, defaults to a filename that has the format %1-import-%2.%3 where:
%1 - the
getImportType() type
%2 - the current timestamp of the format yyyy.MM.dd.HH.mm.ss
%3 - the getSpecification() type
|
ImportScheduleDefinition |
withSandboxId(Long sandboxId)
Optional ability to import into a sandbox.
|
ImportScheduleDefinition |
withSite(Long siteId)
Optional ability to import into a given site.
|
protected ImportSpecification specification
protected ImportType importType
protected String filename
protected Long sandboxId
protected Long siteId
protected Long catalogId
public ImportScheduleDefinition(@Nonnull ImportSpecification specification, @Nonnull ImportType importType)
public ImportSpecification getSpecification()
public ImportType getImportType()
public ImportScheduleDefinition withFilename(String filename)
getImportType()
typegetSpecification()
type
public String getFilename()
protected String generateFilename()
public ImportScheduleDefinition withSandboxId(Long sandboxId)
public Long getSandboxId()
public ImportScheduleDefinition withSite(Long siteId)
BroadleafRequestContext.getNonPersistentSite()
public Long getSiteId()
public ImportScheduleDefinition withCatalog(Long catalogId)
BroadleafRequestContext.getCurrentCatalog()
public Long getCatalogId()
Copyright © 2020. All rights reserved.