public interface EntityHandler
| Modifier and Type | Method and Description |
|---|---|
Collection |
getAuthzGroups(Reference entity,
String userId)
Gets the AuthZGroups associated with this entity
|
String |
getDescription(Entity entity)
Get the description of the Rwiki Object based on the inbound Entity
object
|
String |
getHTML(Entity e)
Generate a HTML link for the entity handler
|
ResourceProperties |
getProperties(Entity e)
Gets the resource properties for the id
|
int |
getRevision(Reference reference)
Get the revision based on the referenece string, if there is no version,
then it is implementation specific what is returned (eg -1)
|
String |
getUrl(Entity entity)
get a url for the entity
|
boolean |
matches(String reference)
Retruns true if the entity matches the reference
|
void |
outputContent(Entity entity,
Entity sidebar,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse res)
output the entity to the output stream
|
void |
setReference(String majorType,
Reference ref,
String reference)
This sets the reference using this entity handler
|
void setReference(String majorType, Reference ref, String reference)
majorType - The mojor type to bind this reference toref - the reference objectreference - the reference stringString getDescription(Entity entity)
entity - boolean matches(String reference)
reference - int getRevision(Reference reference)
reference - String getUrl(Entity entity)
entity - the entity objectvoid outputContent(Entity entity, Entity sidebar, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse res)
entity - the Entity to outputrrequest - the servlet request objectres - the servlet response objectResourceProperties getProperties(Entity e)
e - The entityCollection getAuthzGroups(Reference entity, String userId)
entity - userId - Copyright © 2003–2021 Sakai Project. All rights reserved.