Package com.jalios.jcms.mashup
Class ImportOptions
java.lang.Object
com.jalios.jcms.mashup.ImportOptions
This class contains the options used during an import.
- Since:
- jcms-5.7.3
- Author:
- Olivier Dedieu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd a custom option.Returns the author used for new imported publications.Returns the workspace used for new imported publications.Returns the value of a custom option.Returns the map of custom options.booleanReturns true if milestones must be append in the store before and after the import process.booleanReturns true if the imported data must be convert to local data.booleanReturns true if the categories have to be imported.booleanReturns true if the attached files have to be imported.booleanReturns true import is being performed from data of the same webapp.removeOption(String key) Remove a custom option.setAppendMilestone(boolean appendMilestone) Indicates if milestones must be append in the store before and after the import process.setImportAsLocal(boolean importAsLocal) Indicates if the imported data must be converted to local data.setImportAuthor(Member importAuthor) Sets the author used for new imported publications.setImportCategories(boolean importCategories) Indicates if the categories have to be imported.setImportFiles(boolean importFiles) Indicates if the attached files have to be imported.setImportWorkspace(Workspace importWorkspace) Sets the workspace used for new imported publications.setSelfImport(boolean selfImport) Indicates that import is being performed from data of the same webapp.toString()
-
Constructor Details
-
ImportOptions
public ImportOptions()
-
-
Method Details
-
toString
-
getImportWorkspace
Returns the workspace used for new imported publications.- Returns:
- the import workspace.
- Since:
- jcms-5.7.3
-
setImportWorkspace
Sets the workspace used for new imported publications. By default, ImportManager.getImportWorkspace() is used.- Parameters:
importWorkspace- the workspace to used for new imported publications.- Returns:
- itself for convenient method chaining
- Since:
- jcms-5.7.3
-
getImportAuthor
Returns the author used for new imported publications.- Returns:
- the import author.
- Since:
- jcms-5.7.3
-
setImportAuthor
Sets the author used for new imported publications. By default, ImportManager.getImportAuthor() is used.- Parameters:
importAuthor- the author to used for new imported publication.- Returns:
- itself for convenient method chaining
- Since:
- jcms-5.7.3
-
isImportFiles
public boolean isImportFiles()Returns true if the attached files have to be imported.- Returns:
- true if the attached files have to be imported.
- Since:
- jcms-5.7.3
-
setImportFiles
Indicates if the attached files have to be imported.- Parameters:
importFiles- if true the attached files will be imported.- Returns:
- itself for convenient method chaining
- Since:
- jcms-5.7.3
-
isImportCategories
public boolean isImportCategories()Returns true if the categories have to be imported.- Returns:
- true if the categories have to be imported.
- Since:
- jcms-5.7.3
-
setImportCategories
Indicates if the categories have to be imported.- Parameters:
importCategories- if true the categories will be imported.- Returns:
- itself for convenient method chaining
- Since:
- jcms-5.7.3
-
isImportAsLocal
public boolean isImportAsLocal()Returns true if the imported data must be convert to local data.- Returns:
- true if the imported data must be convert to local data.
- Since:
- jcms-5.7.3
-
setImportAsLocal
Indicates if the imported data must be converted to local data.- Parameters:
importAsLocal- if true the imported data will be converted to local data.- Returns:
- itself for convenient method chaining
- Since:
- jcms-5.7.3
-
addOption
Add a custom option.- Parameters:
key- the option's key.value- the option's value.- Returns:
- itself for convenient method chaining
- Since:
- jcms-5.7.3
-
removeOption
Remove a custom option.- Parameters:
key- the option's key- Returns:
- itself for convenient method chaining
- Since:
- jcms-5.7.3
-
getOption
Returns the value of a custom option.- Parameters:
key- the option's key.- Returns:
- the value of the custom option.
- Since:
- jcms-5.7.3
-
getOptionMap
Returns the map of custom options.- Returns:
- the map of custom options.
- Since:
- jcms-5.7.3
-
isAppendMilestone
public boolean isAppendMilestone()Returns true if milestones must be append in the store before and after the import process.- Returns:
- true if milestones must be append in the store before and after the import process.
- Since:
- jcms-5.7.3
-
setAppendMilestone
Indicates if milestones must be append in the store before and after the import process.- Parameters:
appendMilestone- if true milestones will be added.- Returns:
- itself for convenient method chaining
- Since:
- jcms-5.7.3
-
setSelfImport
Indicates that import is being performed from data of the same webapp.Default value is false.
When enabled, all Data referenced with their id will be retrieved from local webapp.- Parameters:
selfImport- true if will be added.- Returns:
- itself for convenient method chaining
- Since:
- jcms-9.0.0
-
isSelfImport
public boolean isSelfImport()Returns true import is being performed from data of the same webapp.Default value is false.
When enabled, all Data referenced with their id will be retrieved from local webapp.- Returns:
- true to retrieve data from local webapp, false to import data from remote information
- Since:
- jcms-9.0.0
-