|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.chenillekit.access.internal.ChenillekitAccessInternalUtils
public class ChenillekitAccessInternalUtils
| Method Summary | |
|---|---|
static String |
buildMetaForHandlerMethod(String componentId,
String eventType,
String suffix)
|
static String |
extractComponentId(TransformMethodSignature method,
OnEvent annotation)
This code is taken deliberatly from http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/transform/OnEventWorker.java?view=log |
static String |
extractEventType(TransformMethodSignature method,
OnEvent annotation)
This code is taken deliberatly from: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/transform/OnEventWorker.java?view=log |
static String |
getContextAsString(EventContext context)
Build a string representing the context to be stored inside a cookie. |
static EventContext |
getContextFromString(ContextValueEncoder valueEncoder,
String contextString)
|
static String |
getStringArrayAsString(String[] groups)
build an CSV string from group array. |
static String[] |
getStringAsStringArray(String groups)
|
static boolean |
hasUserRequiredGroup(String[] userGroups,
String[] requiredGroups)
check if user has required group to access page/component/event. |
static boolean |
hasUserRequiredRole(int userRoleWeigh,
int requiredRoleWeigh)
check if user has required role to access page/component/event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final String getContextAsString(EventContext context)
context - the context to be stored in the cookie
EventContext
public static final EventContext getContextFromString(ContextValueEncoder valueEncoder,
String contextString)
valueEncoder - contextString -
public static final boolean hasUserRequiredRole(int userRoleWeigh,
int requiredRoleWeigh)
userRoleWeigh - role weigh the user haverequiredRoleWeigh - role weigh required for page/component/event access
public static final boolean hasUserRequiredGroup(String[] userGroups,
String[] requiredGroups)
userGroups - groups the user haverequiredGroups - groups required for page/component/event access
public static final String buildMetaForHandlerMethod(String componentId,
String eventType,
String suffix)
componentId - eventType - suffix -
public static final String getStringArrayAsString(String[] groups)
public static final String[] getStringAsStringArray(String groups)
groups -
public static final String extractComponentId(TransformMethodSignature method,
OnEvent annotation)
public static final String extractEventType(TransformMethodSignature method,
OnEvent annotation)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||