public class LocationDataTypeDef extends ResourceTypeDef<LocationData>
NON_INDEXABLE_KEY_PREFIX
Constructor and Description |
---|
LocationDataTypeDef() |
Modifier and Type | Method and Description |
---|---|
LocationData |
changeIdentity(Ref oldref, Ref newref, LocationData data)
Changes the identity of an instance of this type to a new identity.
|
void |
checkWellFormed(Ref refToData, java.lang.Object data, Diagnostics diags, ValidationContext context)
Verifies that the data is well formed.
|
java.util.Set<Ref> |
computeExternalReferences(Ref ref, LocationData data)
Returns a set of Ref object representing the external references found in the given data.
|
LocationData |
getCopyOf(Ref ref, LocationData data)
Returns a copy of the given data.
|
java.util.Collection<NonQualifiedEnvValue> |
getEnvValues(Ref ref, LocationData data)
Returns a collection of instances of environment dependent values in the given data.
|
ValueRepresentation<LocationData> |
getExportedValueRepresentation()
Returns the exported value representation.
|
ValueRepresentation<LocationData> |
getPersistedValueRepresentation()
Returns the persisted value representation.
|
boolean |
hasSensitiveInformation(Ref ref, LocationData data)
Returns true if the data has information that is considered sensitive, such as user names and passwords.
|
LocationData |
modifyReferences(Ref ref, LocationData data, java.util.Map<Ref,Ref> mapping)
changes references in the given data according to the given map and returns the result.
|
LocationData |
setEnvValues(Ref ref, LocationData data, java.util.Collection<EnvValueAction> envValues)
Processes the given collection of environment value actions in the data.
|
void |
validate(Ref refToData, LocationData data, Diagnostics diags, ValidationContext context)
Validates the data, and adds and diagnostics (warnings, errors) to the diags list.
|
checkcontentequality, checkWellFormedClass, getDeltaHandler, getFileExtension, getFingerprint, getSourceValueRepresentation, getValidationGroups
computeIndexValues, getKeyIndex, getKeyNames, getKeyValue, getKeyValues, getTypeId, hasIndex, keyExists
public void checkWellFormed(Ref refToData, java.lang.Object data, Diagnostics diags, ValidationContext context)
ResourceTypeDef
ResourceTypeDef.validate(com.bea.wli.config.Ref, T, com.bea.wli.config.resource.Diagnostics, com.bea.wli.config.spi.ValidationContext)
method. This method is called once when a resource is created or updated.checkWellFormed
in class ResourceTypeDef<LocationData>
refToData
- reference to the resourcedata
- the resource data whose well-formedness is being testeddiags
- extra information about the error/reason must be added here.context
- the diagnostic context containing extra informationpublic java.util.Set<Ref> computeExternalReferences(Ref ref, LocationData data)
ResourceTypeDef
computeExternalReferences
in class ResourceTypeDef<LocationData>
public LocationData modifyReferences(Ref ref, LocationData data, java.util.Map<Ref,Ref> mapping) throws java.lang.Exception
ResourceTypeDef
modifyReferences
in class ResourceTypeDef<LocationData>
data
- Copy data containing the old referencesmapping
- mapping from old references to the new onesjava.lang.Exception
public java.util.Collection<NonQualifiedEnvValue> getEnvValues(Ref ref, LocationData data)
ResourceTypeDef
getEnvValues
in class ResourceTypeDef<LocationData>
public LocationData setEnvValues(Ref ref, LocationData data, java.util.Collection<EnvValueAction> envValues)
ResourceTypeDef
setEnvValues
in class ResourceTypeDef<LocationData>
public void validate(Ref refToData, LocationData data, Diagnostics diags, ValidationContext context)
ResourceTypeDef
This method may be called even if the resource has not been updated. Validation will occur in the following cases
validate
in class ResourceTypeDef<LocationData>
refToData
- reference of the resource to validatedata
- value of the resource to validatediags
- diagnostics list where the warnings, errors etc should be addedcontext
- the diagnostic context containing extra informationpublic LocationData changeIdentity(Ref oldref, Ref newref, LocationData data)
ResourceTypeDef
changeIdentity
in class ResourceTypeDef<LocationData>
oldref
- old identitynewref
- new identitydata
- data whose identity is being changedpublic LocationData getCopyOf(Ref ref, LocationData data)
ResourceTypeDef
getCopyOf
in class ResourceTypeDef<LocationData>
public ValueRepresentation<LocationData> getPersistedValueRepresentation()
ResourceTypeDef
getPersistedValueRepresentation
in class ResourceTypeDef<LocationData>
public ValueRepresentation<LocationData> getExportedValueRepresentation()
ResourceTypeDef
getExportedValueRepresentation
in class ResourceTypeDef<LocationData>
public boolean hasSensitiveInformation(Ref ref, LocationData data)
ResourceTypeDef
hasSensitiveInformation
in class ResourceTypeDef<LocationData>
ref
- the reference to the resourcedata
- the data