|
Dekoh platform API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdekoh.portal.fwk.share.RequestContext
public class RequestContext
A RequestContext is sandboxed way for templates to only access the entities that requested in the
current URL.
HttpServletRequest scope. The instance is available against key RequestContext.REQUEST_CONTEXT_ATTRIBUTE.
DekohAccessController,
ShareFilter| Field Summary | |
|---|---|
protected String |
contextPath
|
static String |
DIO_ID_PARAMETER_KEY
Key against which the owner that has installed Dekoh locally will be set in Butterfly header. |
protected DIOEntityManager |
em
|
protected HttpServletRequest |
request
|
static String |
REQUEST_CONTEXT_ATTRIBUTE
Key against which an instance of RequestContext will be available in Request scope. |
| Constructor Summary | |
|---|---|
protected |
RequestContext(HttpServletRequest request,
DIOEntityManager requestScopeEntityManager,
DIOEntityManagerFactory dioemf)
|
|
RequestContext(HttpServletRequest request,
DIOEntityManager requestScopeEntityManager,
DIOEntityManagerFactory dioemf,
String contextPath)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REQUEST_CONTEXT_ATTRIBUTE
RequestContext will be available in Request scope.
public static final String DIO_ID_PARAMETER_KEY
protected DIOEntityManager em
protected String contextPath
protected final HttpServletRequest request
| Constructor Detail |
|---|
protected RequestContext(HttpServletRequest request,
DIOEntityManager requestScopeEntityManager,
DIOEntityManagerFactory dioemf)
public RequestContext(HttpServletRequest request,
DIOEntityManager requestScopeEntityManager,
DIOEntityManagerFactory dioemf,
String contextPath)
| Method Detail |
|---|
public static RequestContext getRequestContext(HttpServletRequest request)
request -
public static RequestContext createRequestContext(HttpServletRequest request,
DIOEntityManager requestLocalEntityManager,
DIOEntityManagerFactory factory,
String contextPath,
Class sqiImplClass,
Class lrcImplClass)
public static RequestContext createRequestContext(HttpServletRequest request,
DIOEntityManager requestLocalEntityManager,
DIOEntityManagerFactory factory,
String contextPath,
Class rcImplClass,
Class sqiImplClass,
Class lrcImplClass)
protected ResizeImageCache createResizeImageCache()
public ResizeImageCache getOrCreateResizeImageCache()
protected ResizeImageCache getResizeImageCacheInContext()
protected void setResizeImageCacheInContext(ResizeImageCache resizeImageCache)
public static RequestContext createRequestContext(HttpServletRequest request,
DIOEntityManager requestLocalEntityManager,
DIOEntityManagerFactory factory,
String contextpath)
public static RequestContext createRequestContext(HttpServletRequest request,
DIOEntityManagerFactory factory,
String contextpath)
protected void checkAccessControl(AccessPath accessPath)
protected DioCollectionQueryInterface createDioCollectionQueryInterface(DIOEntityManager em)
protected void checkAccessControl()
protected MailTemplateObject createMailTemplateObject(ShareMetadata metadata)
public void setShareQueryInterface(ShareQueryInterface shareQueryInterface)
public ShareQueryInterface getShareQueryInterface()
public ShareQueryInterface createShareQueryInterface(AccessPath accessPath)
throws IllegalURLException,
AccessDeniedException
IllegalURLException
AccessDeniedException
public ShareQueryInterface createShareQueryInterface(AccessPath accessPath,
String contextPath)
throws IllegalURLException,
AccessDeniedException
IllegalURLException
AccessDeniedExceptionpublic void setDioCollectionQueryInterface(DioCollectionQueryInterface dioCollectionQueryInterface)
public DioCollectionQueryInterface getDioCollectionQueryInterface()
public void setDioQueryInterface(DioQueryInterface dioQueryInterface)
public DioQueryInterface getDioQueryInterface()
protected File getImageCacheDir()
public AccessPath createAccessPath(String numberTrain)
throws IllegalURLException,
AccessDeniedException
IllegalURLException
AccessDeniedExceptionpublic boolean isLocalRequest()
protected String getOwnerUserName(HttpServletRequest request)
public static boolean isRemoteAccess(HttpServletRequest req)
public AccessPath getAccessPath()
public String getContextPath()
public String getAccessOptionUri(HttpServletRequest request,
String accessOptionString)
public String getQueryParams()
public String getOwnerName()
public int getDioId()
public List getAllCommentsForDigitalObject(Integer dioId)
public DigitalObject getDio(Class entityClass,
int id)
public Comment replyToComment(String comment,
String commentId)
comment - - comment textcommentId - - reply to comment
IllegalArgumentException
javax.ejb.NoSuchEntityException
protected final Comment getCommentOrThrowException(String commentId,
DIOEntityManager localEm)
commentId - localEm -
NoSuchEntityException
public Comment postNewComment(String comment,
AccessPath accessPath,
String dioId)
comment - accessPath - dioId -
IllegalArgumentException - if this is a local user.public Buddy getBuddy()
public boolean isAnonymousAccess()
public List findMostRecentComments(int numComments)
public Page getDigitalObjectPage(DioCollection dioCollection,
Class cls,
int pageNumber,
int pageSize)
public Set getIncomingUserAliases()
public void recordBuddyVisit(Share share,
Buddy buddy)
public AccessPath getAccessPathForComment(Comment comment)
|
Dekoh platform API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
© 2009 Pramati Technologies - Dekoh - Portal for Developers