This contains information related to the Entity Broker system (entity 2.0) in Sakai. Ideally we want flexible entities which make development of integrated Sakai tools easier and more flexible. Our goals are to make the entity system easier on developers (easier to use and understand) and more powerful (easier to extend and improve).
The Entity Broker seamlessly integrates with the existing Entity system in Sakai (Entity Producers and Entities) and entities created using entity providers are accessible in Sakai as if they were created using the legacy system. SAKDEV:Entity Broker Design
Create an interface called ThingEntityProvider which extends EntityProvider in api logic (add an entity package for it)
Example: org.sakaiproject.evaluation.logic.entity.EvaluationEntityProvider.java
Add a public static string which contains the entity prefix (called ENTITY_PREFIX),
Example:
public final static String ENTITY_PREFIX = "eval-evaluation";
Implement your ThingEntityProvider in impl logic as ThingEntityProviderImpl (add an entity package for it),
Example: org.sakaiproject.evaluation.logic.impl.entity.EvaluationEntityProviderImpl.java
That should do it. You should now be able to use the Entity Broker to access information about your entities and register events for your entities (among other things).