public interface EntityDefinitionService
Modifier and Type | Method and Description |
---|---|
EntityDefinition |
addConditionContext(EntityDefinition sibling,
Filter filter)
Add a new condition context for the given entity definition and create a
new sibling associated to the new context.
|
EntityDefinition |
addIndexContext(EntityDefinition sibling,
Integer index)
Add a new index context for the given entity definition and create a new
sibling associated to the new context.
|
void |
addListener(EntityDefinitionServiceListener listener)
Adds a listener to the service
|
EntityDefinition |
addNamedContext(EntityDefinition sibling)
Add a new named instance context for the given entity definition and
create a new sibling associated to the new context.
|
EntityDefinition |
editConditionContext(EntityDefinition sibling,
Filter filter)
Creates a new sibling for the given entity definition with a new
condition context using the given filter.
All cells using the given entity definition are changed to use the new one. |
Collection<? extends EntityDefinition> |
getChildren(EntityDefinition entity)
Get the children of the given entity definition, i.e.
|
EntityDefinition |
getParent(EntityDefinition entity)
Get the parent entity definition for the given entity definition.
|
Collection<? extends TypeEntityDefinition> |
getTypeEntities(TypeDefinition type,
SchemaSpaceID schemaSpace)
Get all available entity definitions for a given type.
|
void |
removeContext(EntityDefinition entity)
Remove the instance context associated with the given entity definition
(if possible).
|
void |
removeListener(EntityDefinitionServiceListener listener)
Removes a listener from the service
|
Collection<? extends EntityDefinition> getChildren(EntityDefinition entity)
entity
- the entity definitionCollection<? extends TypeEntityDefinition> getTypeEntities(TypeDefinition type, SchemaSpaceID schemaSpace)
type
- the type definitionschemaSpace
- the type schema spaceEntityDefinition getParent(EntityDefinition entity)
entity
- the entity definitionnull
if the given
entity definition represents a typeEntityDefinition addNamedContext(EntityDefinition sibling)
sibling
- the entity definition which is a sibling of the entity
definition to createEntityDefinition addIndexContext(EntityDefinition sibling, Integer index)
sibling
- the entity definition which is a sibling of the entity
definition to createindex
- the property index associated to the context, if
null
will be determined automaticallyEntityDefinition addConditionContext(EntityDefinition sibling, Filter filter)
sibling
- the entity definition which is a sibling of the entity
definition to createfilter
- the condition filterEntityDefinition editConditionContext(EntityDefinition sibling, Filter filter)
sibling
- the entity definition which is a sibling of the entity
definition to createfilter
- the condition filternull
if the operation failedvoid removeContext(EntityDefinition entity)
entity
- the entity definition or null
if creating an
instance context is not possible FIXME report success/failure?void addListener(EntityDefinitionServiceListener listener)
listener
- the listener to addvoid removeListener(EntityDefinitionServiceListener listener)
listener
- the listener to removeBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a