Skip navigation links

Oracle Fusion Middleware Identity Governance Framework Identity Directory Java API Reference
11 g Release 2 (11.1.2)

E27140-01


oracle.igf.ids.config
Class EntityDef

java.lang.Object
  extended by oracle.igf.ids.config.EntityDef


public class EntityDef
extends java.lang.Object

Class for defining the entity with list of attributes, entity type, ID attribute that uniquely identifies the entity and list of allowed operations on the entity.


Nested Class Summary
static class EntityDef.EntityType
          Type of entity

 

Constructor Summary
EntityDef(java.lang.String name, EntityDef.EntityType entityType, java.lang.String idAttribute)
          Constructs Entity definition.
EntityDef(java.lang.String name, EntityDef.EntityType entityType, java.lang.String idAttribute, boolean createAllowed, boolean modifyAllowed, boolean deleteAllowed, boolean searchAllowed)
          Consructs Entity definition.

 

Method Summary
 void addAttribute(AttributeRef attr)
          Add new attribute reference to entity
 boolean equals(java.lang.Object obj)
          Checks if the given object is equals to this one
 AttributeRef getAttribute(java.lang.String name)
          Gets entity attribute reference for given attribute name
 java.util.List<AttributeRef> getAttributes()
          Gets entity attributes
 EntityDef.EntityType getEntityType()
          Gets entity type
 java.lang.String getIdAttribute()
          Gets ID attribute name of the entity
 java.lang.String getName()
          Gets Entity name
 boolean isCreateAllowed()
          Gets create allowed value
 boolean isDeleteAllowed()
          Gets delete allowed value
 boolean isModifyAllowed()
          Gets entity modify allowed value
 boolean isSearchAllowed()
          Gets search allowed value
 void setAttributes(java.util.List<AttributeRef> attributes)
          Sets entity attributes
 void setCreateAllowed(boolean createAllowed)
          Sets create allowed value
 void setDeleteAllowed(boolean deleteAllowed)
          Sets delete allowed value
 void setEntityType(EntityDef.EntityType entityType)
          Sets entity type value
 void setIdAttribute(java.lang.String idAttribute)
          Sets ID attribute name for the entity
 void setModifyAllowed(boolean modifyAllowed)
          Sets modify allowed value
 void setSearchAllowed(boolean searchAllowed)
          Sets search allowed value

 

Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

EntityDef

public EntityDef(java.lang.String name,
                 EntityDef.EntityType entityType,
                 java.lang.String idAttribute)
Constructs Entity definition. All the CRUD operations (Create, Modify, Delete & Search) allowed flags are defaulted to true.
Parameters:
name - Name of the entity
entityType - Entity type
idAttribute - Name of the attribute that uniquely identifies the entity

EntityDef

public EntityDef(java.lang.String name,
                 EntityDef.EntityType entityType,
                 java.lang.String idAttribute,
                 boolean createAllowed,
                 boolean modifyAllowed,
                 boolean deleteAllowed,
                 boolean searchAllowed)
Consructs Entity definition.
Parameters:
name - Name of the entity
entityType - Entity type
idAttribute - Name of the attribute that uniquely identifies the entity
createAllowed - Is create entity allowed ?
modifyAllowed - Is modify entity allowed ?
deleteAllowed - Is delete entity allowed ?
searchAllowed - Is search entities allowed ?

Method Detail

getName

public java.lang.String getName()
Gets Entity name
Returns:
name of the entity

setEntityType

public void setEntityType(EntityDef.EntityType entityType)
Sets entity type value
Parameters:
entityType - Entity type

getEntityType

public EntityDef.EntityType getEntityType()
Gets entity type
Returns:
entity type value

setIdAttribute

public void setIdAttribute(java.lang.String idAttribute)
Sets ID attribute name for the entity
Parameters:
idAttribute - Name of the attribute that uniquely identifies the entity

getIdAttribute

public java.lang.String getIdAttribute()
Gets ID attribute name of the entity
Returns:
ID attribute name

setCreateAllowed

public void setCreateAllowed(boolean createAllowed)
Sets create allowed value
Parameters:
createAllowed - true if entity creation to be allowed ; false otherwise

isCreateAllowed

public boolean isCreateAllowed()
Gets create allowed value
Returns:
true if entity creation is allowed

setModifyAllowed

public void setModifyAllowed(boolean modifyAllowed)
Sets modify allowed value
Parameters:
modifyAllowed - true if entity modification to be allowed ; false otherwise

isModifyAllowed

public boolean isModifyAllowed()
Gets entity modify allowed value
Returns:
true if entity modification is allowed

setDeleteAllowed

public void setDeleteAllowed(boolean deleteAllowed)
Sets delete allowed value
Parameters:
deleteAllowed - true if entity deletion to be allowed ; false otherwise

isDeleteAllowed

public boolean isDeleteAllowed()
Gets delete allowed value
Returns:
true if entity deletion is allowed

setSearchAllowed

public void setSearchAllowed(boolean searchAllowed)
Sets search allowed value
Parameters:
searchAllowed - true if entities search to be allowed ; false otherwise

isSearchAllowed

public boolean isSearchAllowed()
Gets search allowed value
Returns:
true if entities search is allowed

setAttributes

public void setAttributes(java.util.List<AttributeRef> attributes)
Sets entity attributes
Parameters:
attributes - List of entity attribute references

getAttributes

public java.util.List<AttributeRef> getAttributes()
Gets entity attributes
Returns:
list of entity attribute references

getAttribute

public AttributeRef getAttribute(java.lang.String name)
Gets entity attribute reference for given attribute name
Parameters:
name - Attribute name
Returns:
entity attribute reference

addAttribute

public void addAttribute(AttributeRef attr)
Add new attribute reference to entity
Parameters:
attr - Attribute refences

equals

public boolean equals(java.lang.Object obj)
Checks if the given object is equals to this one
Overrides:
equals in class java.lang.Object
Returns:
true if equals; false otherwise

Skip navigation links

Oracle Fusion Middleware Identity Governance Framework Identity Directory Java API Reference
11 g Release 2 (11.1.2)

E27140-01


Copyright © 2012 Oracle. All Rights Reserved.