public class OAContext extends Object
1: OAObject as the login user.
2: OAUserAccess Used by ObjectCallback and other code to work with OAObject permissions.
Modifier and Type | Method and Description |
---|---|
static String |
getAdminPropertyPath() |
static boolean |
getAllowEditProcessed()
Does the current thread have rights to edit processed objects.
|
static boolean |
getAllowEditProcessed(Object context)
Does the context have rights to edit processed objects.
|
static String |
getAllowEditProcessedPropertyPath() |
static Hub<? extends OAObject> |
getContextHub() |
static Hub<? extends OAObject> |
getContextHub(Object context) |
static OAObject |
getContextObject()
Returns the object associated with the current thread local (or null) context.
|
static OAObject |
getContextObject(Object context) |
static OAUserAccess |
getContextUserAccess() |
static OAUserAccess |
getContextUserAccess(Object context) |
static String |
getSuperAdminPropertyPath() |
static boolean |
isAdmin()
Does the context have admin rights.
|
static boolean |
isAdmin(Object context) |
static boolean |
isEnabled(Object context,
String pp,
boolean bEqualTo) |
static boolean |
isEnabled(String pp,
boolean bEqualTo)
Check to see if context (user) property path is equal to bEqualTo.
|
static boolean |
isSuperAdmin()
Does the context have super admin rights.
|
static boolean |
isSuperAdmin(Object context) |
static void |
removeContext() |
static void |
removeContext(Object context) |
static void |
removeContextHub() |
static void |
removeContextHub(Object context) |
static void |
setAdminPropertyPath(String pp)
Property path used to find the user property for allowing users to have admin rights.
|
static void |
setAllowEditProcessedPropertyPath(String pp)
Property path used to find the user property for allowing users to edit objects/properties/etc that are annotatied as processed.
|
static void |
setContext(Object context,
OAObject obj) |
static void |
setContextHub(Object context,
Hub<? extends OAObject> hub)
Allows the value to be associated with a context, to be the ActiveObject in a hub.
|
static void |
setContextObject(Object context,
OAObject obj)
Associated an object value with a context.
|
static void |
setContextUserAccess(Object context,
OAUserAccess ua)
Associated an OAUserAccess with a context.
|
static void |
setSuperAdminPropertyPath(String pp)
Property path used to find the user property for allowing users to have super admin rights.
|
public static void setAllowEditProcessedPropertyPath(String pp)
public static String getAllowEditProcessedPropertyPath()
public static boolean getAllowEditProcessed()
public static boolean getAllowEditProcessed(Object context)
public static void setAdminPropertyPath(String pp)
public static String getAdminPropertyPath()
public static boolean isAdmin()
public static boolean isAdmin(Object context)
public static void setSuperAdminPropertyPath(String pp)
public static String getSuperAdminPropertyPath()
public static boolean isSuperAdmin()
public static boolean isSuperAdmin(Object context)
public static boolean isEnabled(String pp, boolean bEqualTo)
public static void setContextObject(Object context, OAObject obj)
context
- is value used to lookup objobj
- object that is associated with context.OAThreadLocalDelegate.getContext()
public static OAObject getContextObject()
public static void setContextHub(Object context, Hub<? extends OAObject> hub)
public static void removeContextHub()
public static void removeContextHub(Object context)
public static void removeContext(Object context)
public static void removeContext()
public static void setContextUserAccess(Object context, OAUserAccess ua)
OAThreadLocalDelegate.getContext()
public static OAUserAccess getContextUserAccess()
public static OAUserAccess getContextUserAccess(Object context)
Copyright © 1999–2025 ViaOA. All rights reserved.