public class ContentManagedFileEARUpdateImpl extends java.lang.Object implements ContentManagedFileEARUpdate
ContentManagedFileEARUpdate
. ContentManagedFileEARUpdate
retrieves predefined criteria from the instance configuration
XML, evaluates them and then decides if an update to the Commerce EAR is needed. If such an action is
required, it will retrieve a list of content managed files for update. And then the
EAR Updaterwill use these content managed files to update and commit them into the Commerce EAR. At the end of the operation the list of content managed files will be updated. This will indicate that these files have been committed to the Commerce EAR.
IEARUpdater
ContentManagedFileHandler
ContentManagedFile
UpdateContentManagedFileInEARUtil
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
Define the CLASSNAME.
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
NAME
Constructor and Description |
---|
ContentManagedFileEARUpdateImpl()
Default constructor for the
ContentManagedFileEARUpdateImpl . |
Modifier and Type | Method and Description |
---|---|
void |
update()
Call
update(null, true, false) . |
void |
update(java.lang.String astrProductionServerApplicationName,
boolean aboolUpdateCurrentEAR,
boolean aboolImmediateUpdate)
Determine if content managed files need to be updated to the Commerce EAR.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public ContentManagedFileEARUpdateImpl() throws ECException
ContentManagedFileEARUpdateImpl
.
The following are set with the default constructor:
ECException
- Any exception captured.public void update() throws ECException
update(null, true, false)
. This will set the following parameters:
update
in interface ContentManagedFileEARUpdate
ECException
- Any exception captured. Possible exceptions include error in obtaining evaluation criteria or error in evaluating the criteria.
Problems in updating the Commerce EAR may also cause exception.public void update(java.lang.String astrProductionServerApplicationName, boolean aboolUpdateCurrentEAR, boolean aboolImmediateUpdate) throws ECException
update
in interface ContentManagedFileEARUpdate
astrProductionServerApplicationName
- The application name in the production serveraboolUpdateCurrentEAR
- The option to update the current EARaboolImmediateUpdate
- The option to update immediatelyECException
- Any exception captured. Possible exceptions include error in obtaining evaluation criteria or error in evaluating the criteria.
Problems in updating the Commerce EAR may also cause exception.