public class Uddiuddiorgidentifierisreplacedby extends Object implements ValueSetValidator
The keyValues in keyedReferences that refer to this tModel must be tModelKeys or businessKeys. Such a keyValue specifies the entity that is the replacement for the entity in which the keyedReference appears. The above and further validation requirements are as follows:
a. In the case where a reference is made from an obsolete business entity the following validation rules apply:
1. reference to a new business entity; this is a valid operation
2. reference to self; this is invalid
3. reference to a service, binding or tModel; this is an invalid operation given that the entity being pointed to must be a business
4. reference to another publisher’s business; this is a valid operation; no ownership check is made
5. reference to another publisher’s service, binding or tModel; this is an invalid operation because of a.3 above
6. reference to invalid keys; this is an invalid operation; a key must be valid.
b. In the case where a reference is made from an obsolete tModel the following validation rules apply:
1. reference to a new tModel; this is a valid operation
2. reference to self; this is invalid
3. reference to a service, binding or business; this is an invalid operation given that the entity being pointed to must be a tModel
4. reference to another publisher’s tModel; this is a valid operation; no ownership check is made
5. reference to another publisher’s service, binding or business; this is an invalid operation because of b.3 above
6. reference to invalid keys; this is an invalid operation; a key must be valid.
7. reference to a hidden tModel; this is a valid operation
c. Adding isReplacedBy to a service’s or binding’s category bag: this is a semantically wrong operation and will be rejected.
When returning an error encountered in the above, E_invalidValue will be returned to indicate that a value that was passed in a keyValue attribute did not pass validation.
While this validation is intended at save time, references to replacing business entities may become invalid if (A) the business is deleted and (B) in V3 the business is deleted and then the key is re-used for a different entity. As such, in a replicating registry, nodes processing changeRecords related to business entities or tModels that refer to (now) invalid or missing business or tModels entity keys respectively, MUST NOT raise replication errors.
Constructor and Description |
---|
Uddiuddiorgidentifierisreplacedby() |
Modifier and Type | Method and Description |
---|---|
String |
getMyKey() |
List<String> |
getValidValues() |
void |
validateTmodelInstanceDetails(List<TModelInstanceInfo> tModelInstanceInfo,
String xpath) |
void |
validateValuesBindingTemplate(List<BindingTemplate> items,
String xpath) |
void |
validateValuesBusinessEntity(List<BusinessEntity> items) |
void |
validateValuesBusinessService(List<BusinessService> items,
String xpath) |
void |
validateValuesPublisherAssertion(List<PublisherAssertion> items) |
void |
validateValuesTModel(List<TModel> items) |
public String getMyKey()
public void validateValuesBindingTemplate(List<BindingTemplate> items, String xpath) throws DispositionReportFaultMessage
validateValuesBindingTemplate
in interface ValueSetValidator
DispositionReportFaultMessage
public void validateValuesBusinessEntity(List<BusinessEntity> items) throws DispositionReportFaultMessage
validateValuesBusinessEntity
in interface ValueSetValidator
DispositionReportFaultMessage
public void validateValuesBusinessService(List<BusinessService> items, String xpath) throws DispositionReportFaultMessage
validateValuesBusinessService
in interface ValueSetValidator
DispositionReportFaultMessage
public void validateValuesPublisherAssertion(List<PublisherAssertion> items) throws DispositionReportFaultMessage
validateValuesPublisherAssertion
in interface ValueSetValidator
DispositionReportFaultMessage
public void validateTmodelInstanceDetails(List<TModelInstanceInfo> tModelInstanceInfo, String xpath) throws DispositionReportFaultMessage
validateTmodelInstanceDetails
in interface ValueSetValidator
DispositionReportFaultMessage
public void validateValuesTModel(List<TModel> items) throws DispositionReportFaultMessage
validateValuesTModel
in interface ValueSetValidator
DispositionReportFaultMessage
public List<String> getValidValues()
getValidValues
in interface ValueSetValidator
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.