public class RelationMetadata
extends java.lang.Object
implements oracle.iam.platform.utils.XmlObject
Constructor and Description |
---|
RelationMetadata()
Constructor for Kernel use to generate the relation metadata from XML only!
Use the other constructor RelationMetadata(String relationType) for any other
purposes.
|
RelationMetadata(java.lang.String relationType)
Construct an empty relation metadata object.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(AttributeDefinition attrDef)
Add or modify an attribute.
|
void |
addAttributeMapping(java.lang.String attrName,
java.lang.String fieldName)
Add or modify an attribute mapping.
|
void |
addField(FieldDefinition fieldDef)
Add or modify an target field.
|
void |
generateObject(org.w3c.dom.Document doc) |
org.w3c.dom.Document |
generateXml() |
AttributeDefinition |
getAttribute(java.lang.String attrName)
Get a attribute definition
|
java.lang.String |
getAttributeGroupName1()
Get the attribute group name for entity 1
|
java.lang.String |
getAttributeGroupName2()
Get the attribute group name for entity 2
|
java.util.Map |
getAttributeMap()
Get the attribute map
|
java.lang.String |
getAttributeName1()
Get the attribute name for entity 1
|
java.lang.String |
getAttributeName2()
Get the attribute name for entity 2
|
java.lang.String |
getAttributeNameInEntity1()
Get the attribute name in the specified entity type for entity 1
|
java.lang.String |
getAttributeNameInEntity2()
Get the attribute name in the specified entity type for entity 2
|
java.util.Map |
getAttributes()
Get all the attribute definitions
|
java.lang.String |
getEntityType1()
Get the entity type for entity 1
|
java.lang.String |
getEntityType2()
Get the entity type for entity 2
|
FieldDefinition |
getField(java.lang.String fieldName)
Get a target field definition
|
java.util.Map |
getFields()
Get all the target field definitions
|
java.util.Map |
getProviderParameters()
Get the relation provider parameters.
|
java.lang.String |
getProviderType()
Get the relation provider type name.
|
java.lang.String |
getRelationType()
Get the relation type
|
java.lang.String |
getRepositoryInstance()
Get the repository instance name.
|
void |
removeAttribute(java.lang.String attrName)
Remove an attribute.
|
void |
removeAttributeMapping(java.lang.String attrName)
Remove an attribute mapping.
|
void |
removeField(java.lang.String fieldName)
Remove an target field.
|
void |
setAttributeGroupName1(java.lang.String attrGroupName)
Set the attribute group name for entity 1
|
void |
setAttributeGroupName2(java.lang.String attrGroupName)
Set the attribute group name for entity 2
|
void |
setAttributeMap(java.util.Map attrMap)
Set the attribute map
|
void |
setAttributeName1(java.lang.String attrName)
Set the attribute name for entity 1
|
void |
setAttributeName2(java.lang.String attrName)
Set the attribute name for entity 2
|
void |
setAttributeNameInEntity1(java.lang.String attrName)
Set the attribute name in the specified entity type for entity 1
|
void |
setAttributeNameInEntity2(java.lang.String attrName)
Set the attribute name in the specified entity type for entity 2
|
void |
setEntityType1(java.lang.String entityType)
Set the entity type for entity 1
|
void |
setEntityType2(java.lang.String entityType)
Set the entity type for entity 2
|
void |
setProviderParameters(java.util.Map providerParams)
Set the relation provider parameters.
|
void |
setProviderType(java.lang.String providerType)
Set the relation provider type name.
|
void |
setRepositoryInstance(java.lang.String reposInstance)
Set the repository instance name.
|
org.w3c.dom.Document |
toDocument()
Convert the relation metadata object into a XML document
|
public RelationMetadata()
public RelationMetadata(java.lang.String relationType)
relationType
- the relation typepublic java.lang.String getRelationType()
public java.lang.String getRepositoryInstance()
public void setRepositoryInstance(java.lang.String reposInstance)
reposInstance
- the repository instance namepublic java.lang.String getProviderType()
public void setProviderType(java.lang.String providerType)
providerType
- the relation provider type namepublic java.util.Map getProviderParameters()
public void setProviderParameters(java.util.Map providerParams)
providerParams
- the relation provider parameterspublic java.lang.String getEntityType1()
public void setEntityType1(java.lang.String entityType)
entityType
- the entity type for entity 1public java.lang.String getAttributeName1()
public void setAttributeName1(java.lang.String attrName)
attrName
- the attribute name for entity 1public java.lang.String getAttributeNameInEntity1()
public void setAttributeNameInEntity1(java.lang.String attrName)
attrName
- the the attribute name in the specified entity type for entity 1public java.lang.String getAttributeGroupName1()
public void setAttributeGroupName1(java.lang.String attrGroupName)
attrGroupName
- the attribute group name for entity 1public java.lang.String getEntityType2()
public void setEntityType2(java.lang.String entityType)
entityType
- the entity type for entity 2public java.lang.String getAttributeName2()
public void setAttributeName2(java.lang.String attrName)
attrName
- the attribute name for entity 2public java.lang.String getAttributeNameInEntity2()
public void setAttributeNameInEntity2(java.lang.String attrName)
attrName
- the the attribute name in the specified entity type for entity 2public java.lang.String getAttributeGroupName2()
public void setAttributeGroupName2(java.lang.String attrGroupName)
attrGroupName
- the attribute group name for entity 2public java.util.Map getAttributes()
public AttributeDefinition getAttribute(java.lang.String attrName)
attrName
- the attribute namepublic void addAttribute(AttributeDefinition attrDef)
attrDef
- the attribute definition to be added/modifiedpublic void removeAttribute(java.lang.String attrName)
attrName
- the attribute name to be removedpublic java.util.Map getFields()
public FieldDefinition getField(java.lang.String fieldName)
fieldName
- the target field namepublic void addField(FieldDefinition fieldDef)
fieldDef
- the target field definition to be added/modifiedpublic void removeField(java.lang.String fieldName)
fieldName
- the target field name to be removedpublic java.util.Map getAttributeMap()
public void setAttributeMap(java.util.Map attrMap)
attrMap
- attribute mappublic void addAttributeMapping(java.lang.String attrName, java.lang.String fieldName) throws oracle.iam.platform.entitymgr.UnknownAttributeException
attrName
- the attribute namefieldName
- the target field nameoracle.iam.platform.entitymgr.UnknownAttributeException
- if the attribute name and/or target field name is not definedpublic void removeAttributeMapping(java.lang.String attrName)
attrName
- the attribute namepublic org.w3c.dom.Document toDocument() throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
- if a DocumentBuilder cannot be createdpublic org.w3c.dom.Document generateXml() throws java.lang.Exception
generateXml
in interface oracle.iam.platform.utils.XmlObject
java.lang.Exception
public void generateObject(org.w3c.dom.Document doc)
generateObject
in interface oracle.iam.platform.utils.XmlObject