com.silverpeas.importExport.control
Class ImportSettings
java.lang.Object
com.silverpeas.importExport.control.ImportSettings
- All Implemented Interfaces:
- Cloneable
public class ImportSettings
- extends Object
- implements Cloneable
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
ImportSettings
public ImportSettings(String pathToImport,
UserDetail user,
String componentId,
String folderId,
boolean draftUsed,
boolean poiUsed,
int method)
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()
returning FROM_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 of
PublicationDetail
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.
getPublicationName
public String getPublicationName(String filename)
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()
- Overrides:
clone
in class Object
Copyright © 2016 Silverpeas. All Rights Reserved.