|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.icc.dbforms.util.JCRSessionUtils
public class JCRSessionUtils
This class provides methods for performing following operations:
Constructor Summary | |
---|---|
JCRSessionUtils()
|
Method Summary | |
---|---|
static void |
checkWritePermission(java.lang.String resourceId)
Checks for write permission on the specified resource. |
static Session |
getCurrentSession()
Returns original user session. |
static void |
resetContext()
Resets the context to the original value. |
static void |
saveSession()
Saves the changes done in admin context |
static void |
setAdminContext(ResourceResolverFactory resolverFactory)
Swaps the current context with the admin context. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JCRSessionUtils()
Method Detail |
---|
public static void setAdminContext(ResourceResolverFactory resolverFactory)
resolverFactory
- resolver factory object for retrieving admin context.public static void saveSession()
public static void checkWritePermission(java.lang.String resourceId)
resourceId
- resource id on which permission is required to be verified.
ICCException
- if user does not have write permission on the specified resource.public static Session getCurrentSession()
public static void resetContext()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |