Package oracle.iam.platform.entitymgr.vo
Class RelationMetadata
java.lang.Object
oracle.iam.platform.entitymgr.vo.RelationMetadata
- All Implemented Interfaces:
oracle.iam.platform.utils.XmlObject
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for Kernel use to generate the relation metadata from XML only! Use the other constructor RelationMetadata(String relationType) for any other purposes.RelationMetadata(String relationType) Construct an empty relation metadata object. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(AttributeDefinition attrDef) Add or modify an attribute.voidaddAttributeMapping(String attrName, String fieldName) Add or modify an attribute mapping.voidaddField(FieldDefinition fieldDef) Add or modify an target field.voidgenerateObject(Document doc) getAttribute(String attrName) Get a attribute definitionGet the attribute group name for entity 1Get the attribute group name for entity 2Get the attribute mapGet the attribute name for entity 1Get the attribute name for entity 2Get the attribute name in the specified entity type for entity 1Get the attribute name in the specified entity type for entity 2Get all the attribute definitionsGet the entity type for entity 1Get the entity type for entity 2Get a target field definitionGet all the target field definitionsGet the relation provider parameters.Get the relation provider type name.Get the relation typeGet the repository instance name.voidremoveAttribute(String attrName) Remove an attribute.voidremoveAttributeMapping(String attrName) Remove an attribute mapping.voidremoveField(String fieldName) Remove an target field.voidsetAttributeGroupName1(String attrGroupName) Set the attribute group name for entity 1voidsetAttributeGroupName2(String attrGroupName) Set the attribute group name for entity 2voidsetAttributeMap(Map<String, String> attrMap) Set the attribute mapvoidsetAttributeName1(String attrName) Set the attribute name for entity 1voidsetAttributeName2(String attrName) Set the attribute name for entity 2voidsetAttributeNameInEntity1(String attrName) Set the attribute name in the specified entity type for entity 1voidsetAttributeNameInEntity2(String attrName) Set the attribute name in the specified entity type for entity 2voidsetEntityType1(String entityType) Set the entity type for entity 1voidsetEntityType2(String entityType) Set the entity type for entity 2voidsetProviderParameters(Map<String, String> providerParams) Set the relation provider parameters.voidsetProviderType(String providerType) Set the relation provider type name.voidsetRepositoryInstance(String reposInstance) Set the repository instance name.Convert the relation metadata object into a XML document
-
Constructor Details
-
RelationMetadata
public 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
Construct an empty relation metadata object.- Parameters:
relationType- the relation type
-
-
Method Details
-
getRelationType
Get the relation type- Returns:
- the relation type
-
getRepositoryInstance
Get the repository instance name.- Returns:
- the repository instance name
-
setRepositoryInstance
Set the repository instance name.- Parameters:
reposInstance- the repository instance name
-
getProviderType
Get the relation provider type name.- Returns:
- the relation provider type name
-
setProviderType
Set the relation provider type name.- Parameters:
providerType- the relation provider type name
-
getProviderParameters
Get the relation provider parameters.- Returns:
- the relation provider parameters
-
setProviderParameters
Set the relation provider parameters.- Parameters:
providerParams- the relation provider parameters
-
getEntityType1
Get the entity type for entity 1- Returns:
- the entity type for entity 1
-
setEntityType1
Set the entity type for entity 1- Parameters:
entityType- the entity type for entity 1
-
getAttributeName1
Get the attribute name for entity 1- Returns:
- the attribute name for entity 1
-
setAttributeName1
Set the attribute name for entity 1- Parameters:
attrName- the attribute name for entity 1
-
getAttributeNameInEntity1
Get the attribute name in the specified entity type for entity 1- Returns:
- the the attribute name in the specified entity type for entity 1
-
setAttributeNameInEntity1
Set the attribute name in the specified entity type for entity 1- Parameters:
attrName- the the attribute name in the specified entity type for entity 1
-
getAttributeGroupName1
Get the attribute group name for entity 1- Returns:
- the attribute group name for entity 1
-
setAttributeGroupName1
Set the attribute group name for entity 1- Parameters:
attrGroupName- the attribute group name for entity 1
-
getEntityType2
Get the entity type for entity 2- Returns:
- the entity type for entity 2
-
setEntityType2
Set the entity type for entity 2- Parameters:
entityType- the entity type for entity 2
-
getAttributeName2
Get the attribute name for entity 2- Returns:
- the attribute name for entity 2
-
setAttributeName2
Set the attribute name for entity 2- Parameters:
attrName- the attribute name for entity 2
-
getAttributeNameInEntity2
Get the attribute name in the specified entity type for entity 2- Returns:
- the the attribute name in the specified entity type for entity 2
-
setAttributeNameInEntity2
Set the attribute name in the specified entity type for entity 2- Parameters:
attrName- the the attribute name in the specified entity type for entity 2
-
getAttributeGroupName2
Get the attribute group name for entity 2- Returns:
- the attribute group name for entity 2
-
setAttributeGroupName2
Set the attribute group name for entity 2- Parameters:
attrGroupName- the attribute group name for entity 2
-
getAttributes
Get all the attribute definitions- Returns:
- all the attribute definitions
-
getAttribute
Get a attribute definition- Parameters:
attrName- the attribute name- Returns:
- the attribute definition
-
addAttribute
Add or modify an attribute. To modify an existing attribute, make sure the name of the attribute remains the same.- Parameters:
attrDef- the attribute definition to be added/modified
-
removeAttribute
Remove an attribute. Note that removing an attribute will also remove its corresponding attribute mapping if one exist.- Parameters:
attrName- the attribute name to be removed
-
getFields
Get all the target field definitions- Returns:
- all the target field definitions
-
getField
Get a target field definition- Parameters:
fieldName- the target field name- Returns:
- the target field definition
-
addField
Add or modify an target field. To modify an existing target field, make sure the name of the target field remains the same.- Parameters:
fieldDef- the target field definition to be added/modified
-
removeField
Remove an target field. Note that removing an target field will also remove its corresponding attribute mapping if one exist.- Parameters:
fieldName- the target field name to be removed
-
getAttributeMap
Get the attribute map- Returns:
- the attribute map
-
setAttributeMap
Set the attribute map- Parameters:
attrMap- attribute map
-
addAttributeMapping
public void addAttributeMapping(String attrName, String fieldName) throws oracle.iam.platform.entitymgr.UnknownAttributeException Add or modify an attribute mapping. To modify an existing attribute mapping, use the same attribute name of the existing attribute mapping with the new target field name.- Parameters:
attrName- the attribute namefieldName- the target field name- Throws:
oracle.iam.platform.entitymgr.UnknownAttributeException- if the attribute name and/or target field name is not defined
-
removeAttributeMapping
Remove an attribute mapping.- Parameters:
attrName- the attribute name
-
toDocument
Convert the relation metadata object into a XML document- Returns:
- the relation metadata object in XML
- Throws:
ParserConfigurationException- if a DocumentBuilder cannot be created
-
generateXml
- Specified by:
generateXmlin interfaceoracle.iam.platform.utils.XmlObject- Throws:
Exception
-
generateObject
- Specified by:
generateObjectin interfaceoracle.iam.platform.utils.XmlObject
-