|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.itim.dataservices.model.ModelMetaDataBridge
public class ModelMetaDataBridge
Field Summary |
---|
Fields inherited from interface com.ibm.itim.dataservices.model.IModelMetaData |
---|
modelFileName, NAME |
Constructor Summary | |
---|---|
ModelMetaDataBridge()
|
Method Summary | |
---|---|
void |
defineClass(java.lang.Class cl)
Defines a new class in the data model. |
void |
defineEntity(java.lang.String cl,
java.lang.String auxClassName,
java.lang.String category)
Defines a relationship for a given class. |
void |
defineRelationship(java.lang.Class cl,
java.lang.String relationshipName,
java.lang.Class rel)
Defines a relationship for a given class. |
void |
defineRelationship(java.lang.String cl,
java.lang.String relationshipName,
java.lang.Class rel)
Defines a relationship for a given class. |
java.util.Collection<java.lang.String> |
getClasses()
Returns the names of all classes defined for the data model. |
java.lang.Class |
getEntity(java.util.Collection<java.lang.String> objClasses)
Retrieves the entity class with the given set of LDAP auxiliary class names. |
java.lang.String |
getEntityCategory(java.util.Collection<java.lang.String> objClasses)
Retrieves the entity category with the given set of LDAP auxiliary class names. |
java.lang.Class |
getRelationship(java.lang.Class cl,
java.lang.String relationshipName)
Retrieves the relationship with the given name for a given class. |
java.util.Set<java.lang.String> |
getSubjectCategories(java.lang.String relationshipName)
Returns a set of category names, whose implementation classes support the given relationship. |
java.util.Collection<java.lang.String> |
getSupportedRelationships(java.lang.Class cl)
Returns the names of the supported relationships for the given class. |
void |
loadTable()
Loads the table from the enRoleModel.xml file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModelMetaDataBridge()
Method Detail |
---|
public void defineClass(java.lang.Class cl) throws ModelIntegrityException
IModelMetaData
defineClass
in interface IModelMetaData
cl
- Class to add to the data model.
ModelIntegrityException
public void defineEntity(java.lang.String cl, java.lang.String auxClassName, java.lang.String category) throws java.lang.ClassNotFoundException, ModelIntegrityException
IModelMetaData
defineEntity
in interface IModelMetaData
cl
- Name of the Subject Class of the relationship.auxClassName
- Name of the relationship being defined.category
- Implementation class implementing the Relationship interface.
The category can be found at ObjectProfileCategory class.
java.lang.ClassNotFoundException
- Name of the Subject class of the relationship cannot be
found.
ModelIntegrityException
ObjectProfileCategory
public void defineRelationship(java.lang.Class cl, java.lang.String relationshipName, java.lang.Class rel) throws ModelIntegrityException
IModelMetaData
defineRelationship
in interface IModelMetaData
cl
- Subject Class of the relationship.relationshipName
- Name of the relationship being defined.rel
- Implementation class implementing the Relationship interface.
ModelIntegrityException
public void defineRelationship(java.lang.String cl, java.lang.String relationshipName, java.lang.Class rel) throws ModelIntegrityException
IModelMetaData
defineRelationship
in interface IModelMetaData
cl
- Name of the Subject Class of the relationship.relationshipName
- Name of the relationship being defined.rel
- Implementation class implementing the Relationship interface.
ModelIntegrityException
public java.util.Collection<java.lang.String> getClasses() throws ModelIntegrityException
IModelMetaData
getClasses
in interface IModelMetaData
ModelIntegrityException
public java.lang.Class getEntity(java.util.Collection<java.lang.String> objClasses) throws ObjectNotFoundException, ModelIntegrityException
IModelMetaData
getEntity
in interface IModelMetaData
objClasses
- Collection of the LDAP auxiliary class.
ObjectNotFoundException
- Thrown if unable to find a matching Entity implementation.
ModelIntegrityException
public java.lang.String getEntityCategory(java.util.Collection<java.lang.String> objClasses) throws ModelIntegrityException
IModelMetaData
getEntityCategory
in interface IModelMetaData
objClasses
- Collection of the LDAP auxiliary class.
ModelIntegrityException
public java.lang.Class getRelationship(java.lang.Class cl, java.lang.String relationshipName) throws ObjectNotFoundException, ModelIntegrityException
IModelMetaData
getRelationship
in interface IModelMetaData
cl
- Subject class of the relationship.relationshipName
- Name of the relationship to retrieve.
ObjectNotFoundException
- Thrown if unable to find a matching Relationship
implementation.
ModelIntegrityException
public java.util.Set<java.lang.String> getSubjectCategories(java.lang.String relationshipName) throws ModelIntegrityException
IModelMetaData
getSubjectCategories
in interface IModelMetaData
relationshipName
- Name of the relationship
ModelIntegrityException
public java.util.Collection<java.lang.String> getSupportedRelationships(java.lang.Class cl) throws ObjectNotFoundException, ModelIntegrityException
IModelMetaData
getSupportedRelationships
in interface IModelMetaData
cl
- Class for which relationships are queried.
ObjectNotFoundException
- Thrown if unable to find the given class in the data model
meta-data.
ModelIntegrityException
public void loadTable() throws java.io.IOException, java.io.FileNotFoundException, ModelIntegrityException
IModelMetaData
loadTable
in interface IModelMetaData
java.io.IOException
java.io.FileNotFoundException
ModelIntegrityException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |