| Package | Description |
|---|---|
| de.aristaflow.adept2.core.orgmodelmanager |
| 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.addRelation(SessionToken session,
RelationType relType,
long id1,
long id2)
This method adds a relation of the given type between the two entities
identified by the given IDs.
|
long |
ModelChangeOperations.createAgent(SessionToken session,
java.lang.String agentUserName,
java.lang.String password)
Adds a new Agent with the given (unique!)
|
long |
ModelChangeOperations.createEntity(SessionToken session,
Entity entity)
Creates a new entity with the type and attribute values provided in the
given
Entity object and returns the assigned ID. |
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.
|
void |
ModelChangeOperations.deleteRelation(SessionToken session,
RelationType relType,
long id1,
long id2)
This method deletes a relation of the given type between the two entities
identified by the given IDs.
|
Entity |
ModelExplorer.getAgentForUserName(SessionToken session,
java.lang.String agentUserName)
Returns the agent for the specified user name.
|
DataType |
ModelExplorer.getAttributeDataType(SessionToken session,
EntityType entType,
java.lang.String attrName)
Returns the data type of the given attribute 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.
|
java.util.List<Entity> |
ModelExplorer.getEntities(SessionToken session,
java.lang.String orgPolicy,
boolean excludeDisabled,
java.lang.String... attributes)
This method returns a list containing the entities which are the result of the given org
policy.
|
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)
|
RemoteIterator<java.util.List<Entity>> |
ModelExplorer.getEntitiesIterator(SessionToken session,
java.lang.String orgPolicy,
boolean excludeDisabled,
java.lang.String... attributes)
The same as
ModelExplorer.getEntities(SessionToken, String, boolean, String...) but with partial
retrieval of the entities. |
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. |
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)
|
RichAgent |
ModelExplorer.getRichAgent(SessionToken session,
QualifiedAgent agent)
Convenience method for retrieving all information on the designated
qualified agent.
|
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.
|
boolean |
ModelExplorer.relationExists(SessionToken session,
RelationType relType,
long id1,
long id2,
boolean excludeDisabled)
Tests whether a relation of the given type exists between the two entities identified by the
given IDs.
|
void |
ModelChangeOperations.updateEntity(SessionToken session,
Entity entity)
Updates an entity with the attribute values provided in the given
Entity object. |