|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sandev.ui.util.UIActionHandlerBase
public class UIActionHandlerBase
Base class for handling SANDUI actions. This is just a collection of useful utilities which are commonly needed.
| Field Summary | |
|---|---|
protected org.sandev.basics.util.InstanceClassEnumerator |
classEnum
Our InstanceClassEnumerator. |
protected static int |
LOGDEBUG
|
protected static int |
LOGERROR
|
protected static int |
LOGINFO
|
protected static int |
LOGWARN
|
| Constructor Summary | |
|---|---|
UIActionHandlerBase()
|
|
| Method Summary | |
|---|---|
protected boolean |
drivenByURLParameters(org.sandev.basics.util.UIFormContext uifc,
org.sandev.basics.util.UserWorkLog uwl,
org.sandev.basics.util.UIFormOwner owner,
org.sandev.basics.util.AuthUser user)
Read the URL parameters and initialize the uifc if specified. |
org.sandev.basics.util.InstanceClassEnumerator |
getClassEnum()
accessor for classEnum |
static org.sandev.basics.structs.SandPersistMessage |
getSpecifiedInstance(org.sandev.basics.util.UIFormContext uifc,
org.sandev.basics.util.UIFormOwner owner,
org.sandev.basics.util.AuthUser user)
Get specified instance. |
protected boolean |
hasClassQueryAccess(java.lang.String classname,
org.sandev.basics.util.UIFormOwner owner,
org.sandev.basics.util.AuthUser user)
Returns true if this user has unrestricted access to the query form of the specified message class. |
protected void |
initCollectionDisplay(org.sandev.basics.util.UIFormContext uifc,
java.lang.String dispClass,
org.sandev.basics.structs.SandCollectionMessage coll)
This method factors the calls for the standard form context settings used during initialization of a listing display. |
org.sandev.basics.util.UIFormContext |
refreshGlobalDataAction(org.sandev.basics.util.UIFormContext uifc,
org.sandev.basics.util.UserWorkLog uwl,
org.sandev.basics.util.UIFormOwner owner,
org.sandev.basics.util.AuthUser user)
|
protected void |
resetContextToCollection(org.sandev.basics.util.UIFormContext uifc)
This method factors the calls needed to nuke whatever context is captured in the uifc, in preparation for initializing it with a collection display. |
void |
setClassEnum(org.sandev.basics.util.InstanceClassEnumerator val)
mutator for classEnum |
protected org.sandev.basics.util.UIFormContext |
setContextFromQuery(org.sandev.basics.util.UIFormContext uifc,
org.sandev.basics.util.UIFormOwner owner,
org.sandev.basics.util.AuthUser user,
java.lang.String shortStructClassName,
org.sandev.basics.structs.SandAttrVal[] matchInfo)
Given the short form of a struct message class, call the formFind method of the owner with the corresponding query message to get an initial collection for display. |
protected org.sandev.basics.util.UIFormContext |
setContextFromQuery(org.sandev.basics.util.UIFormContext uifc,
org.sandev.basics.util.UIFormOwner owner,
org.sandev.basics.util.AuthUser user,
java.lang.String shortStructClassName,
org.sandev.basics.structs.SandAttrVal[] matchInfo,
int ordering)
Given the short form of a struct message class, call the formFind method of the owner with the corresponding query message to get an initial collection for display. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int LOGDEBUG
protected static final int LOGINFO
protected static final int LOGWARN
protected static final int LOGERROR
protected org.sandev.basics.util.InstanceClassEnumerator classEnum
| Constructor Detail |
|---|
public UIActionHandlerBase()
| Method Detail |
|---|
public org.sandev.basics.util.InstanceClassEnumerator getClassEnum()
public void setClassEnum(org.sandev.basics.util.InstanceClassEnumerator val)
public org.sandev.basics.util.UIFormContext refreshGlobalDataAction(org.sandev.basics.util.UIFormContext uifc,
org.sandev.basics.util.UserWorkLog uwl,
org.sandev.basics.util.UIFormOwner owner,
org.sandev.basics.util.AuthUser user)
throws org.sandev.basics.util.UIFormManagerException
org.sandev.basics.util.UIFormManagerExceptionprotected void resetContextToCollection(org.sandev.basics.util.UIFormContext uifc)
protected void initCollectionDisplay(org.sandev.basics.util.UIFormContext uifc,
java.lang.String dispClass,
org.sandev.basics.structs.SandCollectionMessage coll)
public static org.sandev.basics.structs.SandPersistMessage getSpecifiedInstance(org.sandev.basics.util.UIFormContext uifc,
org.sandev.basics.util.UIFormOwner owner,
org.sandev.basics.util.AuthUser user)
This method does not throw. If anything goes wrong, it simply returns null. It is public and static to allow for use from the ActionDispatcher.
protected boolean hasClassQueryAccess(java.lang.String classname,
org.sandev.basics.util.UIFormOwner owner,
org.sandev.basics.util.AuthUser user)
protected org.sandev.basics.util.UIFormContext setContextFromQuery(org.sandev.basics.util.UIFormContext uifc,
org.sandev.basics.util.UIFormOwner owner,
org.sandev.basics.util.AuthUser user,
java.lang.String shortStructClassName,
org.sandev.basics.structs.SandAttrVal[] matchInfo)
throws org.sandev.basics.util.UIFormManagerException
org.sandev.basics.util.UIFormManagerException
protected org.sandev.basics.util.UIFormContext setContextFromQuery(org.sandev.basics.util.UIFormContext uifc,
org.sandev.basics.util.UIFormOwner owner,
org.sandev.basics.util.AuthUser user,
java.lang.String shortStructClassName,
org.sandev.basics.structs.SandAttrVal[] matchInfo,
int ordering)
throws org.sandev.basics.util.UIFormManagerException
org.sandev.basics.util.UIFormManagerException
protected boolean drivenByURLParameters(org.sandev.basics.util.UIFormContext uifc,
org.sandev.basics.util.UserWorkLog uwl,
org.sandev.basics.util.UIFormOwner owner,
org.sandev.basics.util.AuthUser user)
throws org.sandev.basics.util.UIFormManagerException
org.sandev.basics.util.UIFormManagerException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||