|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.integrations.ExternalRepositoryUpdate
public class ExternalRepositoryUpdate
This class processes messages sent by external systems when synchronized objects are updated or added. The incoming message body is assumed to be a string containing XML describing repository item properties and their new values.
Field Summary | |
---|---|
static java.lang.String |
ADD
Set operationMode to this to do an Add |
static java.lang.String |
CLASS_VERSION
|
static java.lang.String |
UPDATE
Set operationMode to this to do an Update |
static java.lang.String |
UPSERT
Set operationMode to this to do an Upsert |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
ExternalRepositoryUpdate()
|
Method Summary | |
---|---|
protected RepositoryItem |
addItem(java.lang.String pInput)
Adds a repository item according to the input message. |
AddService |
getAddService()
The service that adds a new repository item given an xml document |
java.lang.String |
getExternalIdProperty()
The name of the repository item's external ID property |
java.lang.String |
getIdConfirmedProperty()
The name of the repository item's "external ID is valid" property |
java.lang.String |
getMappingFile()
The mapping file that should be used for the input |
java.lang.String[] |
getMatchProperties()
The name of the properties used to locate a repository item if externalId didn't work |
java.lang.String |
getOperationMode()
This identifies how this component behaves. |
atg.adapter.integrations.IntegrationRepository |
getRepository()
Returns property Repository |
RepositoryXMLTools |
getRepositoryXMLTools()
The tools class for dealing with xml files |
UpdateService |
getUpdateService()
The service that updates a repository item given an xml document |
void |
processMessage(java.lang.String pInput)
Process a repository item update or add. |
void |
setAddService(AddService pAddService)
|
void |
setExternalIdProperty(java.lang.String pExternalIdProperty)
Set the name of the externalIdProperty. |
void |
setIdConfirmedProperty(java.lang.String pIdConfirmedProperty)
Set the name of the property that validates the external ID |
void |
setMappingFile(java.lang.String pMappingFile)
|
void |
setMatchProperties(java.lang.String[] pMatchProperties)
Set the name of the matchProperties. |
void |
setOperationMode(java.lang.String pOperationMode)
|
void |
setRepository(atg.adapter.integrations.IntegrationRepository pRepository)
Sets property Repository |
void |
setRepositoryXMLTools(RepositoryXMLTools pRepositoryXMLTools)
|
void |
setUpdateService(UpdateService pUpdateService)
|
protected void |
updateItem(RepositoryItem pItem,
java.lang.String pInput)
Updates a local repository item according to the input message. |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static final java.lang.String UPSERT
public static final java.lang.String UPDATE
public static final java.lang.String ADD
Constructor Detail |
---|
public ExternalRepositoryUpdate()
Method Detail |
---|
public void setOperationMode(java.lang.String pOperationMode)
public java.lang.String getOperationMode()
public java.lang.String getExternalIdProperty()
public void setExternalIdProperty(java.lang.String pExternalIdProperty)
pExternalIdProperty
- public java.lang.String getIdConfirmedProperty()
public void setIdConfirmedProperty(java.lang.String pIdConfirmedProperty)
pIdConfirmedProperty
- public java.lang.String[] getMatchProperties()
public void setMatchProperties(java.lang.String[] pMatchProperties)
pMatchProperties
- public void setRepository(atg.adapter.integrations.IntegrationRepository pRepository)
public atg.adapter.integrations.IntegrationRepository getRepository()
public void setAddService(AddService pAddService)
public AddService getAddService()
public void setUpdateService(UpdateService pUpdateService)
public UpdateService getUpdateService()
public void setRepositoryXMLTools(RepositoryXMLTools pRepositoryXMLTools)
public RepositoryXMLTools getRepositoryXMLTools()
public void setMappingFile(java.lang.String pMappingFile)
public java.lang.String getMappingFile()
public void processMessage(java.lang.String pInput)
pInput
- XML describing updated propertiesRepositoryXMLTools.getRepositoryItemsFromXML(java.lang.String, java.lang.String[])
,
AddService
,
UpdateService
protected RepositoryItem addItem(java.lang.String pInput) throws AddException, RepositoryException
AddException
RepositoryException
protected void updateItem(RepositoryItem pItem, java.lang.String pInput) throws UpdateException, RepositoryException
UpdateException
RepositoryException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |