Class ImportSettings
- java.lang.Object
-
- org.silverpeas.core.importexport.control.ImportSettings
-
-
Field Summary
Fields Modifier and Type Field Description static int
FROM_DRAGNDROP
static int
FROM_MANUAL
static int
FROM_XML
-
Constructor Summary
Constructors Constructor Description ImportSettings(String pathToImport, UserDetail user, String componentId, String folderId, boolean draftUsed, boolean poiUsed, int method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportSettings
clone()
String
getComponentId()
String
getContentLanguage()
String
getFolderId()
int
getMethod()
String
getPathToImport()
PublicationDetail
getPublicationForAllFiles()
Gets the instance ofPublicationDetail
that stores the following data in case of creation of one publication for all imported files: the name of the publication.String
getPublicationName(String filename)
String
getTargetValidatorIds()
UserDetail
getUser()
int
getVersionType()
boolean
isDraftUsed()
boolean
isPoiUsed()
boolean
isPublicationMergeEnabled()
boolean
isVersioningUsed()
boolean
mustCreateOnePublicationForAllFiles()
Indicates that it must be created one publication for all files.void
setContentLanguage(String contentLanguage)
void
setFolderId(String folderId)
void
setFrom(int from)
void
setPathToImport(String path)
void
setTargetValidatorIds(String targetValidatorIds)
void
setVersioningUsed(boolean versioningUsed)
void
setVersionType(int versionType)
boolean
useFileDates()
-
-
-
Field Detail
-
FROM_XML
public static final int FROM_XML
- See Also:
- Constant Field Values
-
FROM_DRAGNDROP
public static final int FROM_DRAGNDROP
- See Also:
- Constant Field Values
-
FROM_MANUAL
public static final int FROM_MANUAL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ImportSettings
public ImportSettings(String pathToImport, UserDetail user, String componentId, String folderId, boolean draftUsed, boolean poiUsed, int method)
-
-
Method Detail
-
getPathToImport
public String getPathToImport()
-
setPathToImport
public void setPathToImport(String path)
-
getUser
public UserDetail getUser()
-
getComponentId
public String getComponentId()
-
getFolderId
public String getFolderId()
-
setFolderId
public void setFolderId(String folderId)
-
isDraftUsed
public boolean isDraftUsed()
-
isPoiUsed
public boolean isPoiUsed()
-
setVersioningUsed
public void setVersioningUsed(boolean versioningUsed)
-
isVersioningUsed
public boolean isVersioningUsed()
-
setFrom
public void setFrom(int from)
-
getMethod
public int getMethod()
-
isPublicationMergeEnabled
public boolean isPublicationMergeEnabled()
-
mustCreateOnePublicationForAllFiles
public boolean mustCreateOnePublicationForAllFiles()
Indicates that it must be created one publication for all files.PLEASE notice that the creation of one publication for all files is compatible only with
getMethod()
returningFROM_DRAGNDROP
. The code has to be adjusted for other processes.- Returns:
- true if one publication only must be created.
-
getPublicationForAllFiles
public PublicationDetail getPublicationForAllFiles()
Gets the instance ofPublicationDetail
that stores the following data in case of creation of one publication for all imported files:- the name of the publication. If it exists then the method
mustCreateOnePublicationForAllFiles()
will indicate that all files will be attached to a same publication - the description of a publication
- the keywords of a publication
- Returns:
- a string that represents the publication description.
- the name of the publication. If it exists then the method
-
setVersionType
public void setVersionType(int versionType)
-
getVersionType
public int getVersionType()
-
getContentLanguage
public String getContentLanguage()
-
setContentLanguage
public void setContentLanguage(String contentLanguage)
-
getTargetValidatorIds
public String getTargetValidatorIds()
-
setTargetValidatorIds
public void setTargetValidatorIds(String targetValidatorIds)
-
useFileDates
public boolean useFileDates()
-
clone
public ImportSettings clone()
-
-