| java.lang.Object org.sakaiproject.util.EntityCollections
EntityCollections | public class EntityCollections (Code) | |
EntityUtil collects some entity utility methods dealing with collections of entities and entity references.
|
Method Summary | |
public static void | computeAddedRemovedEntityRefsFromNewEntitiesOldRefs(Collection addedEntities, Collection removedEntities, Collection newEntities, Collection oldEntityRefs) Fill in the two collections of Entity reference strings - those added in newEntities that were not in oldEntityRefs, and those removed, i.e. | public static boolean | entityCollectionContainsRefString(Collection entities, String entityRef) Test a collection of Entity object for the specified entity reference
Parameters: entities - The collection (Entity) of entities Parameters: entityRef - The string entity reference to find. | public static boolean | isContainedEntityRefsToEntities(Collection entityRefs, Collection entities) See if the collection of entity reference strings is contained in the collection of entities.
Parameters: entityRefs - The collection (String) of entity references. Parameters: entities - The collection (Entity) of entity objects. | public static boolean | isEqualEntityRefsToEntities(Collection entityRefs, Collection entities) See if the collection of entity reference strings matches completely the collection of Entity objects.
Parameters: entityRefs - The collection (String) of entity references. Parameters: entities - The collection (Entity) of entity objects. | public static boolean | isIntersectionEntityRefsToEntities(Collection entityRefs, Collection entities) See if the collection of entity reference strings has at least one entity that is in the collection of Entity objects.
Parameters: entityRefs - The collection (String) of entity references. Parameters: entities - The collection (Entity) of entity objects. | public static boolean | refCollectionContainsEntity(Collection refs, Entity entity) Test a collection of Entity reference Strings for the specified Entity
Parameters: refs - The collection (String) of entity refs Parameters: entity - The Entity to find. | public static void | setEntityRefsFromEntities(Collection refs, Collection entities) |
computeAddedRemovedEntityRefsFromNewEntitiesOldRefs | public static void computeAddedRemovedEntityRefsFromNewEntitiesOldRefs(Collection addedEntities, Collection removedEntities, Collection newEntities, Collection oldEntityRefs)(Code) | | Fill in the two collections of Entity reference strings - those added in newEntities that were not in oldEntityRefs, and those removed, i.e. in oldEntityRefs not in newEntities.
|
entityCollectionContainsRefString | public static boolean entityCollectionContainsRefString(Collection entities, String entityRef)(Code) | | Test a collection of Entity object for the specified entity reference
Parameters: entities - The collection (Entity) of entities Parameters: entityRef - The string entity reference to find. true if found, false if not. |
isContainedEntityRefsToEntities | public static boolean isContainedEntityRefsToEntities(Collection entityRefs, Collection entities)(Code) | | See if the collection of entity reference strings is contained in the collection of entities.
Parameters: entityRefs - The collection (String) of entity references. Parameters: entities - The collection (Entity) of entity objects. true if there is containment, false if not. |
isEqualEntityRefsToEntities | public static boolean isEqualEntityRefsToEntities(Collection entityRefs, Collection entities)(Code) | | See if the collection of entity reference strings matches completely the collection of Entity objects.
Parameters: entityRefs - The collection (String) of entity references. Parameters: entities - The collection (Entity) of entity objects. true if there is a match, false if not. |
isIntersectionEntityRefsToEntities | public static boolean isIntersectionEntityRefsToEntities(Collection entityRefs, Collection entities)(Code) | | See if the collection of entity reference strings has at least one entity that is in the collection of Entity objects.
Parameters: entityRefs - The collection (String) of entity references. Parameters: entities - The collection (Entity) of entity objects. true if there is interesection, false if not. |
refCollectionContainsEntity | public static boolean refCollectionContainsEntity(Collection refs, Entity entity)(Code) | | Test a collection of Entity reference Strings for the specified Entity
Parameters: refs - The collection (String) of entity refs Parameters: entity - The Entity to find. true if found, false if not. |
setEntityRefsFromEntities | public static void setEntityRefsFromEntities(Collection refs, Collection entities)(Code) | | Set the refs collection to the entity reference strings from the entities collection (and nothing more)
Parameters: refs - The collection (String) of entity references to modify. Parameters: entities - The collection (Entity) of entity objects to use. |
|
|