| Package | Description |
|---|---|
| de.aristaflow.adept2.core.orgmodelmanager | |
| de.aristaflow.adept2.core.orgmodelmanager.parser | |
| de.aristaflow.adept2.model.orgmodel |
| Modifier and Type | Method and Description |
|---|---|
EntityType |
AttributeMetaData.MetaDataElement.getEntityType()
Returns the entity type this attribute belongs to.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ModelChangeOperations.addAttribute(SessionToken session,
EntityType entType,
java.lang.String attrName,
DataType dataType)
Adds a new attribute with the given data type to the given
entity type.
|
void |
ModelChangeOperations.addAttribute(SessionToken session,
EntityType entType,
java.lang.String attrName,
DataType dataType,
int sizeHint)
Adds a new attribute with the given data type to the given
entity type.
|
void |
ModelChangeOperations.addAttribute(SessionToken session,
EntityType entType,
java.lang.String attrName,
DataType dataType,
int sizeHint,
java.lang.String omExtension,
java.lang.String mappedTo,
boolean isImported,
boolean isReadOnly)
Adds a new attribute with the given data type to the given entity type
which is being mapped from the designated org model extension.
|
void |
ModelChangeOperations.addAttribute(SessionToken session,
EntityType entType,
java.lang.String attrName,
DataType dataType,
java.lang.String omExtension,
java.lang.String mappedTo,
boolean isImported,
boolean isReadOnly)
Adds a new attribute with the given data type to the given entity type
which is being mapped from the designated org model extension.
|
void |
ModelChangeOperations.deleteAttribute(SessionToken session,
EntityType entType,
java.lang.String attrName)
This method removes an attribute from an entity type.
|
void |
ModelChangeOperations.deleteEntity(SessionToken session,
EntityType entType,
long id)
This method deletes the entity with the given ID of the given type.
|
void |
ModelChangeOperations.deleteEntity(SessionToken session,
EntityType entType,
long id,
boolean recursive)
This method deletes the entity with the given ID of the given type and all
its relations.
|
SerialisablePair<java.lang.Boolean,java.lang.Boolean> |
ModelExplorer.entityExistsEnabled(SessionToken session,
EntityType entType,
long id)
Returns whether the entity with the given type and id exists and whether it is enabled.
|
DataType |
ModelExplorer.getAttributeDataType(SessionToken session,
EntityType entType,
java.lang.String attrName)
Returns the data type of the given attribute of the given entity type.
|
AttributeMetaData |
ModelExplorer.getAttributeMetaData(SessionToken session,
EntityType entType)
Returns an
AttributeMetaData-object, holding all available meta
information about each attribute of the given entity type. |
java.lang.String[] |
ModelExplorer.getAttributeNames(SessionToken session,
EntityType entType)
Returns all attribute names that are currently defined for the given entity
type.
|
java.util.List<Entity> |
ModelExplorer.getEntities(SessionToken session,
EntityType entType,
boolean excludeDisabled,
java.lang.String... attributes)
This method returns a list containing all entities of the given entity type.
|
java.util.List<Entity> |
ModelExplorer.getEntities(SessionToken session,
EntityType entType,
Filter filter,
boolean excludeDisabled,
java.lang.String... attributes)
This method returns a list of entities of the given entity type.
|
java.util.List<Entity> |
ModelExplorer.getEntities(SessionToken session,
EntityType entType,
java.lang.String attrName,
CmpOperator cmpOperator,
java.io.Serializable value,
boolean excludeDisabled,
java.lang.String... attributes)
This method returns a list of all entities where the given attribute matches the comparison.
|
RemoteIterator<java.util.List<Entity>> |
ModelExplorer.getEntitiesIterator(SessionToken session,
EntityType entType,
boolean excludeDisabled,
java.lang.String... attributes)
The same as
ModelExplorer.getEntities(SessionToken, EntityType, boolean, String...) but with partial
retrieval of the entities. |
RemoteIterator<java.util.List<Entity>> |
ModelExplorer.getEntitiesIterator(SessionToken session,
EntityType entType,
Filter filter,
boolean excludeDisabled,
java.lang.String... attributes)
The same as
ModelExplorer.getEntities(SessionToken, EntityType, Filter, boolean, String...) but with
partial retrieval of the entities. |
RemoteIterator<java.util.List<Entity>> |
ModelExplorer.getEntitiesIterator(SessionToken session,
EntityType entType,
java.lang.String attrName,
CmpOperator cmpOperator,
java.io.Serializable value,
boolean excludeDisabled,
java.lang.String... attributes)
|
Entity |
ModelExplorer.getEntity(SessionToken session,
EntityType entType,
long id,
java.lang.String... attributes)
Returns an
Entity-object containing all information about the entity of the given type
and with the given id. |
int |
ModelExplorer.getEntityCount(SessionToken session,
EntityType entType,
boolean excludeDisabled)
Returns the current count of entities of the specified type.
|
java.util.List<Entity> |
ModelExplorer.getRelatedEntities(SessionToken session,
EntityType entType,
long id,
NavFunction navFunction,
boolean excludeDisabled,
java.lang.String... attributes)
This method returns a list of all entities that are related to the given entity (of the given
type) through a relation of the type along which the given
NavFunction traverses the
OrgModel. |
java.util.List<Entity> |
ModelExplorer.getRelatedEntities(SessionToken session,
EntityType entType,
long id,
RelationType relType,
boolean leftToRight,
boolean excludeDisabled,
java.lang.String... attributes)
This method returns a list of all entities that are related to the given entity (of the given
type) through a relation of the given type in the given direction.
|
RemoteIterator<java.util.List<Entity>> |
ModelExplorer.getRelatedEntitiesIterator(SessionToken session,
EntityType entType,
long id,
NavFunction navFunction,
boolean excludeDisabled,
java.lang.String... attributes)
|
RemoteIterator<java.util.List<Entity>> |
ModelExplorer.getRelatedEntitiesIterator(SessionToken session,
EntityType entType,
long id,
RelationType relType,
boolean leftToRight,
boolean excludeDisabled,
java.lang.String... attributes)
|
boolean |
ModelExplorer.hasAttribute(SessionToken session,
EntityType entType,
java.lang.String attrName)
Returns whether the given entity type has an attribute with the given name.
|
void |
ModelChangeOperations.modifyAttribute(SessionToken session,
EntityType entType,
java.lang.String attrName,
java.lang.String mappedTo,
boolean isImported,
boolean isReadOnly)
Changes the mapping properties of the specified attribute.
|
void |
ModelChangeOperations.modifyAttribute(SessionToken session,
EntityType entType,
java.lang.String attrName,
java.lang.String omExt,
java.lang.String mappedTo,
boolean isImported,
boolean isReadOnly)
Changes the mapping properties of the specified attribute including the org
model extension.
|
| Constructor and Description |
|---|
MetaDataElement(EntityType entityType,
java.lang.String name,
DataType dataType,
int sizeHint,
java.lang.String omExt,
java.lang.String mappedTo,
boolean imported,
boolean isReadOnly)
Constructs a new
MetaDataElement for the given entity type,
attribute name and data type. |
| Modifier and Type | Method and Description |
|---|---|
EntityType |
AtomicEntityExpression.getEndOfChainEntityType()
A convenience method to retrieve the final entity type in the chain.
|
EntityType |
AtomicSelection.getEntityType()
Returns the entity type if specified;
null otherwise. |
EntityType |
AtomicEntityExpression.getEntityTypeAt(int chainIndex)
Returns the entity type at the given index in the chain.
|
| Constructor and Description |
|---|
AtomicEntityExpression(EntityType startEntityType,
Selection startSelection)
Constructs a new
AtomicEntityExpression for the given start entity
type and the associated selection. |
AtomicSelection(EntityType entityType,
java.lang.String attrName,
CmpOperator cmpOperator,
java.lang.Object value)
Constructs a new
AtomicSelection. |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<EntityType,NavFunction[]> |
PathCompletion.completions
holds all path completions
|
| Modifier and Type | Method and Description |
|---|---|
static EntityType |
EntityType.fromIdentifierID(java.util.UUID identifierID)
Returns the
EntityType for a given identifier ID or null if
the identifier ID is not recognised. |
static EntityType |
EntityType.fromPolicyToken(java.lang.String policyToken)
Returns the
EntityType for a given policy token or null if
the policy token is not recognised. |
EntityType |
Entity.getType()
Returns the type of this entity.
|
EntityType |
RelationType.leftHandEntityType()
Returns the first (left-hand) entity type in this relation type.
|
EntityType |
RelationType.rightHandEntityType()
Returns the second (right-hand) entity type in this relation type.
|
EntityType |
NavFunction.source()
Returns the source entity type of this function, i.e. the type this
function can be applied to.
|
EntityType |
NavFunction.target()
Returns the target entity type of this function, i.e. the resulting type
after applying this function.
|
static EntityType |
EntityType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EntityType[] |
EntityType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PathCompletion.clearCompletionsFor(EntityType entType,
boolean resetToDefaults)
Clears the completions for the given entity type and optionally resets them
back to the default values.
|
NavFunction[] |
PathCompletion.getCompletionsFor(EntityType entType)
Returns the path completion(s) for the given entity type or
null if there is no completion defined. |
static NavFunction |
NavFunction.getFunction(EntityType entType,
java.lang.String functionName)
Returns the
NavFunction object for the function with the given name
for the given entity type. |
static NavFunction[] |
NavFunction.getFunctionsFor(EntityType entType)
Returns all functions defined for the given entity type.
|
void |
PathCompletion.setCompletionsFor(EntityType entType,
NavFunction... functions)
Sets the path completions for the given entity type.
|
| Constructor and Description |
|---|
Entity(EntityType entityType)
Constructs a new
DefaultEntity with the given entity type. |
Entity(EntityType entityType,
int attributeCount)
Constructs a new
DefaultEntity with the given entity type. |
Entity(EntityType entityType,
long id)
Constructs a new
DefaultEntity with the given entity type and ID. |
| Constructor and Description |
|---|
PathCompletion(java.util.Map<EntityType,NavFunction[]> completions)
Constructs a new
PathCompletion with the designated values. |