public class ExternalRepositoryUpdate extends GenericService
Modifier and Type | Field and Description |
---|---|
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
|
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
ExternalRepositoryUpdate() |
Modifier and Type | Method and Description |
---|---|
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.
|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
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
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