public class ImportOptions
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
REVISION  | 
| Constructor and Description | 
|---|
ImportOptions()  | 
| Modifier and Type | Method and Description | 
|---|---|
ImportOptions | 
addOption(java.lang.String key,
         java.lang.Object value)
Add a custom option. 
 | 
Member | 
getImportAuthor()
Returns the author used for new imported publications. 
 | 
Workspace | 
getImportWorkspace()
Returns the workspace used for new imported publications. 
 | 
java.lang.Object | 
getOption(java.lang.String key)
Returns the value of a custom option. 
 | 
java.util.Map | 
getOptionMap()
Returns the map of custom options. 
 | 
boolean | 
isAppendMilestone()
Returns true if milestones must be append in the store before and after the import process. 
 | 
boolean | 
isImportAsLocal()
Returns true if the imported data must be convert to local data. 
 | 
boolean | 
isImportCategories()
Returns true if the categories have to be imported. 
 | 
boolean | 
isImportFiles()
Returns true if the attached files have to be imported. 
 | 
boolean | 
isSelfImport()
Returns true import is being performed from data of the same webapp. 
 | 
ImportOptions | 
removeOption(java.lang.String key)
Remove a custom option. 
 | 
ImportOptions | 
setAppendMilestone(boolean appendMilestone)
Indicates if milestones must be append in the store before and after the import process. 
 | 
ImportOptions | 
setImportAsLocal(boolean importAsLocal)
Indicates if the imported data must be converted to local data. 
 | 
ImportOptions | 
setImportAuthor(Member importAuthor)
Sets the author used for new imported publications. 
 | 
ImportOptions | 
setImportCategories(boolean importCategories)
Indicates if the categories have to be imported. 
 | 
ImportOptions | 
setImportFiles(boolean importFiles)
Indicates if the attached files have to be imported. 
 | 
ImportOptions | 
setImportWorkspace(Workspace importWorkspace)
Sets the workspace used for new imported publications. 
 | 
ImportOptions | 
setSelfImport(boolean selfImport)
Indicates that import is being performed from data of the same webapp. 
 | 
java.lang.String | 
toString()  | 
public static final java.lang.String REVISION
public java.lang.String toString()
toString in class java.lang.Objectpublic Workspace getImportWorkspace()
public ImportOptions setImportWorkspace(Workspace importWorkspace)
importWorkspace - the workspace to used for new imported publications.public Member getImportAuthor()
public ImportOptions setImportAuthor(Member importAuthor)
importAuthor - the author to used for new imported publication.public boolean isImportFiles()
public ImportOptions setImportFiles(boolean importFiles)
importFiles - if true the attached files will be imported.public boolean isImportCategories()
public ImportOptions setImportCategories(boolean importCategories)
importCategories - if true the categories will be imported.public boolean isImportAsLocal()
public ImportOptions setImportAsLocal(boolean importAsLocal)
importAsLocal - if true the imported data will be converted to local data.public ImportOptions addOption(java.lang.String key, java.lang.Object value)
key - the option's key.value - the option's value.public ImportOptions removeOption(java.lang.String key)
key - the option's keypublic java.lang.Object getOption(java.lang.String key)
key - the option's key.public java.util.Map getOptionMap()
public boolean isAppendMilestone()
public ImportOptions setAppendMilestone(boolean appendMilestone)
appendMilestone - if true milestones will be added.public ImportOptions setSelfImport(boolean selfImport)
 Default value is false.
 When enabled, all Data referenced with their id will be retrieved from local webapp.
selfImport - true if will be added.public boolean isSelfImport()
 Default value is false.
 When enabled, all Data referenced with their id will be retrieved from local webapp.
Copyright © 2001-2018 Jalios SA. All Rights Reserved.