|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.synchronize.CmsSynchronizeSettings
public class CmsSynchronizeSettings
Contains the settings for the synchronization.
Constructor Summary | |
---|---|
CmsSynchronizeSettings()
Empty constructor, called from the configuration. |
Method Summary | |
---|---|
void |
checkValues(CmsObject cms)
Performs a check if the values that have been set are valid. |
java.lang.String |
getDestinationPathInRfs()
Returns the destination path of the synchronization in the "real" file system. |
java.util.List |
getSourceListInVfs()
Returns the source path list of the synchronization in the OpenCms VFS. |
boolean |
isEnabled()
Returns the enabled flag which indicates if this synchronize settings are enabled or not. |
boolean |
isSyncEnabled()
Returns true if the synchonization is enabled. |
protected java.util.List |
optimizeSourceList(java.util.List sourceListInVfs)
Optimizes the list of VFS source files by removing all resources that have a parent resource already included in the list. |
void |
setDestinationPathInRfs(java.lang.String destinationPathInRfs)
Sets the destination path of the synchronization in the "real" file system. |
void |
setEnabled(boolean enabled)
Sets the enabled flag which indicates if this synchronize settings are enabled or not. |
void |
setSourceListInVfs(java.util.List sourceListInVfs)
Sets the source path list of the synchronization in the OpenCms VFS. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CmsSynchronizeSettings()
Method Detail |
---|
public void checkValues(CmsObject cms) throws CmsException
cms
- the current users OpenCms context
CmsException
- in case the values are not validpublic java.lang.String getDestinationPathInRfs()
public java.util.List getSourceListInVfs()
The objects in the list are of type
.
String
public boolean isEnabled()
public boolean isSyncEnabled()
true
if the synchonization is enabled.The synchonization is enabled if both source and destination path is set, and also the enabled flag is true.
true
if the synchonization is enabledpublic void setDestinationPathInRfs(java.lang.String destinationPathInRfs)
destinationPathInRfs
- the destination path of the synchronization in the "real" file system to setpublic void setEnabled(boolean enabled)
enabled
- the enabled flag to setpublic void setSourceListInVfs(java.util.List sourceListInVfs)
The objects in the list must be of type
.
String
sourceListInVfs
- the source path list of the synchronization in the OpenCms VFS to setpublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
protected java.util.List optimizeSourceList(java.util.List sourceListInVfs)
sourceListInVfs
- the list of VFS resources to optimize
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |