Skip to content
Snippets Groups Projects

fix importance bug

Merged Timm Fitschen requested to merge f-importance into dev
All threads resolved!
2 files
+ 60
17
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -162,26 +162,23 @@ public abstract class Job {
}
/**
* Check if an entity ('child') is a direct or indirect child of another
* entity ('targetParent').
* Check if an entity ('child') is a direct or indirect child of another entity ('targetParent').
*
* This assumes that the parent has either an id (persistent or temporary) or
* a name.
* <p>This assumes that the parent has either an id (persistent or temporary) or a name.
*
* If the targetParent is not in the set of parents of the child, this method
* iterates through the direct parents of the child.
* <p>If the targetParent is not in the set of parents of the child, this method iterates through
* the direct parents of the child.
*
* If the both entities are part of this transaction, they are resolved within
* this transaction. Otherwise they are fetched from the database backend or
* the whole evaluation takes place in the backend (if both have persistent
* ids and are not part of this transaction).
* <p>If the both entities are part of this transaction, they are resolved within this
* transaction. Otherwise they are fetched from the database backend or the whole evaluation takes
* place in the backend (if both have persistent ids and are not part of this transaction).
*
* Also, if both entities have the same id or name, the return value is true.
* <p>Also, if both entities have the same id or name, the return value is true.
*
* @param child the child entity
* @param targetParent the parent entity
* @return true iff targetParent is a direct or indirect parent of the child
* or when the ids or names match.
* @return true iff targetParent is a direct or indirect parent of the child or when the ids or
* names match.
* @throws Message
*/
protected final boolean isSubType(final EntityInterface child, final EntityInterface targetParent)
@@ -554,13 +551,12 @@ public abstract class Job {
}
/**
* Resolve an entity (which might only be specified by it's name or id) to
* it's full representation (with properties, parents and all).
* Resolve an entity (which might only be specified by it's name or id) to it's full
* representation (with properties, parents and all).
*
* @param entity the entity to be resolved.
* @return the resolved entity.
* @throws EntityWasNotUniqueException if the resolution failed due to
* ambuiguity of the name.
* @throws EntityWasNotUniqueException if the resolution failed due to ambuiguity of the name.
*/
protected EntityInterface resolve(final EntityInterface entity)
throws EntityWasNotUniqueException {
Loading