|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.droplet.EmptyFormHandler
atg.droplet.GenericFormHandler
atg.droplet.TransactionalFormHandler
atg.web.formhandlers.ApplicationFormHandler
atg.svc.ui.formhandlers.test.TreeTableDelegatingFormHandler
atg.svc.ui.formhandlers.ListChooserFormHandler
public class ListChooserFormHandler
Data source for TreeTable displaying list to be used in List Constraint Editor. Works with different data sources depending from editorField value:
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
CONSTRAINT_LANGUAGE
|
static java.lang.String |
CONSTRAINT_SELFSERVICE_AUDIENCE
|
protected java.lang.String |
editorField
Name of the constraint attribute or field. |
protected java.lang.String |
mAdminField
fieldName, used in admin global field defn |
protected java.lang.String |
mBaseValue
Semicolon-separated list of item repository Ids that are initially selected |
protected java.lang.String |
mFilterKeyword
Will participate in filtering list to values whose name starts with this value. |
protected java.lang.String |
mItemKey
|
protected atg.repository.Repository |
mRepository
Repository containing views "SolutionStatus" and "FieldDefinition" or specified specific view. |
protected java.lang.String |
mRepositoryView
If this property is specified, use this view to get list of items to display. |
protected SegmentService |
mSegmentService
Provides internal Groups for "selfServiceAudience" value of editorField . |
protected java.util.Map |
mSelectedKeys
Currently selected keys are mapped to Boolean.TRUE values for easy determining in JSP if given key is selected. |
protected SolutionService |
mSolutionService
|
protected java.util.List |
mViewItems
visible list items |
static java.lang.String |
PROPERTY_DISPLAY_NAME
|
static java.lang.String |
PROPERTY_REPOSITORY_ID
|
protected static java.lang.String |
STATUS_FILTER_RQL
Text of RQL query to filter solution status values (by displayName property). |
static java.lang.String |
STATUS_VIEW
Name of repository view to get statuses list from. |
Fields inherited from class atg.svc.ui.formhandlers.test.TreeTableDelegatingFormHandler |
---|
mOperation, mParameters, mState, mTreeTableId, mView |
Fields inherited from class atg.web.formhandlers.ApplicationFormHandler |
---|
EQUALS, PARAM_DELIMITER, QUERY_DELIMITER, STATUS_ERROR_REDIRECT, STATUS_ERROR_STAY, STATUS_SUCCESS |
Fields inherited from class atg.droplet.GenericFormHandler |
---|
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.svc.ui.treetable.Selectable |
---|
SELECT_MULTIPLE, SELECT_NONE, SELECT_SINGLE |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
ListChooserFormHandler()
|
Method Summary | |
---|---|
void |
doStartService()
|
static void |
fillSelectedFromState(java.util.Map pSelectedKeys,
StateContainer pState)
Fill the map provided with Boolean.TRUE values for each itemKey in "pState.selected" |
protected java.util.Collection |
filterListValues(java.util.Collection src)
Filters list values by mFilterKeyword |
protected StateContainer |
findStateContainer()
|
java.lang.String |
getAdminField()
Name of the admin field |
java.lang.String |
getAllRQLWhere()
Text of RQL query to get all values in proper order. |
java.lang.String |
getBaseValue()
Semicolon-separated list of item repository Ids that are initially selected |
java.lang.String |
getEditorConstraintType()
|
java.lang.String |
getEditorField()
Name of the constraint attribute or field. |
java.lang.String |
getFilterKeyword()
|
java.lang.String |
getFilterRQLWhere()
Text of RQL query to filter values: STATUS_FILTER_RQL if editorField is "status", |
java.lang.String |
getItemKey()
|
java.lang.String |
getItemName()
|
java.lang.String |
getLanguageProperty()
|
protected java.util.List |
getLanguages()
|
atg.repository.Repository |
getRepository()
Repository containing views "SolutionStatus" and "FieldDefinition" or specified specific view. |
java.lang.String |
getRepositoryView()
Name of this repository view will be used to extract full or filtered list of items. |
protected java.util.List |
getSegmentItems()
Retrieve items from segment |
SegmentService |
getSegmentService()
|
java.util.List<java.lang.String> |
getSelectedItemsList()
Display names of all selected items. |
java.util.Map |
getSelectedKeys()
Currently selected keys are mapped to Boolean.TRUE values for easy determining in JSP if given key is selected. |
java.util.List<java.lang.String> |
getSelectedKeysList()
Made to preserve sorting of mViewItems |
SiteService |
getSiteService()
|
SolutionService |
getSolutionService()
|
int |
getTotalItemCount()
Same as getTotalItemCount() . |
int |
getViewItemCount()
|
java.util.List |
getViewItems()
Create collection of visible list items. |
boolean |
handleList(atg.servlet.DynamoHttpServletRequest request,
atg.servlet.DynamoHttpServletResponse response)
Prepare for rendering of TreeTable |
boolean |
isStatusField()
|
protected java.util.List |
prepareSelectedList(java.util.Collection pViewItems,
java.lang.String propertyName)
|
protected void |
resetListValue(atg.servlet.DynamoHttpServletRequest pRequest)
Called on reset and refresh operations Cleans up the selection and initializes selected keys from the base value |
protected void |
saveStateContainer(StateContainer pStateContainer)
|
void |
select(java.lang.Object pItemKey,
java.lang.String pMode)
Implementation of Selectable interface. |
void |
setAdminField(java.lang.String adminField)
Name of the admin field |
void |
setBaseValue(java.lang.String pBaseValue)
initially selected items (saved in DB) |
void |
setEditorConstraintType(java.lang.String pEditorConstraintType)
|
void |
setEditorField(java.lang.String editorField)
Name of the constraint attribute or field. |
void |
setFilterKeyword(java.lang.String filterKeyword)
Value of the filter criteria. |
void |
setItemKey(java.lang.String itemKey)
|
void |
setLanguageProperty(java.lang.String pLanguageProperty)
Sets LanguageProperty |
void |
setRepository(atg.repository.Repository repository)
Repository containing views "SolutionStatus" and "FieldDefinition" or specified specific view. |
void |
setRepositoryView(java.lang.String pRepositoryView)
|
void |
setSegmentService(SegmentService pSegmentService)
Set source of internal Groups. |
void |
setSiteService(SiteService pSiteService)
|
void |
setSolutionService(SolutionService pSolutionService)
|
void |
setState(java.lang.String pState)
Remember treetable state, remember keys of already selected items in the List. |
void |
setViewItems(java.util.List viewItems)
Use this method in JSP to set items to be shown |
protected java.util.List |
uploadRepositoryItems()
Retrieve items from specified repository and view. |
protected java.util.List |
uploadViewItems()
Retrieve items from canned list, or from SegmentService specified, or from repository. |
static java.util.List |
wrapArray(java.lang.Object[] pItems)
Make array of objects (usually RepositoryItem's) to be a list of DynamicBeanMap (recursively wrapped). |
static java.util.List |
wrapCollection(java.util.Collection children)
Make list of arbitrary JavaBean objects to be list of DynamicBeanMap (recursively wrapped). |
static java.util.List |
wrapProfileGroups(java.util.List children)
Make list of ProfileGroups objects to be list of Map having repositoryId and displayName. |
static java.util.List |
wrapSelfServiceAudienceCollection(java.util.Collection children)
Make list of Organization objects to be list of Map having repositoryId and displayName. |
Methods inherited from class atg.svc.ui.formhandlers.test.TreeTableDelegatingFormHandler |
---|
getOperation, getParameters, getState, getTreeTableId, getView, handleResponse, setOperation, setParameters, setTreeTableId, setView, validate |
Methods inherited from class atg.web.formhandlers.ApplicationFormHandler |
---|
addParameterToURLString, beforeGet, beforeSet, checkFormError, checkFormRedirect, checkFormSuccess, formHandlerBeforeGet, formHandlerBeforeSet, formHandlerInit, getErrorURL, getRedirectDelayMS, getString, getString, getString, getSuccessURL, getUserMessagesResourceBundle, handleCancel, processException, processException, processExceptionAndLog, processExceptionAndLog, redirect, setErrorURL, setRedirectDelayMS, setSuccessURL, setUserMessagesResourceBundle |
Methods inherited from class atg.droplet.TransactionalFormHandler |
---|
afterSet, commitTransaction, getTransactionDemarcation, getTransactionStatus, isEnsureTransaction, isRollbackTransaction, isRollbackTransactionOnUnhandledException, isTransactionMarkedAsRollback, setEnsureTransaction, setRollbackTransaction, setRollbackTransactionOnUnhandledException, setTransactionDemarcation |
Methods inherited from class atg.droplet.GenericFormHandler |
---|
addFormException, addUncheckedFormException, createFormSubmissionMessage, getCancelURL, getCheckForValidSession, getFormError, getFormExceptions, getFormName, getMessagePort, getMessageSource, getMessageType, getPropertyExceptions, getSendMessages, getUncheckedFormExceptions, handleFormException, handleUncheckedFormException, hasUncheckedFormExceptions, isDeferForwardsAndRedirects, isRestorableForm, isUseForwards, isValidSession, redirectOrForward, resetFormExceptions, setCancelURL, setCheckForValidSession, setDeferForwardsAndRedirects, setFormName, setMessagePort, setMessageSource, setMessageType, setRestorableForm, setSendMessages, setUseForwards |
Methods inherited from class atg.droplet.EmptyFormHandler |
---|
afterGet |
Methods inherited from class atg.nucleus.GenericService |
---|
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static final java.lang.String STATUS_VIEW
public static final java.lang.String CONSTRAINT_LANGUAGE
public static final java.lang.String CONSTRAINT_SELFSERVICE_AUDIENCE
public static final java.lang.String PROPERTY_DISPLAY_NAME
public static final java.lang.String PROPERTY_REPOSITORY_ID
protected java.lang.String mFilterKeyword
protected java.lang.String editorField
protected java.lang.String mAdminField
protected java.lang.String mBaseValue
protected atg.repository.Repository mRepository
protected java.lang.String mRepositoryView
protected static java.lang.String STATUS_FILTER_RQL
protected SegmentService mSegmentService
editorField
.
protected SolutionService mSolutionService
protected java.util.List mViewItems
protected java.lang.String mItemKey
protected java.util.Map mSelectedKeys
Constructor Detail |
---|
public ListChooserFormHandler()
Method Detail |
---|
protected java.util.List getLanguages()
public void doStartService() throws atg.nucleus.ServiceException
doStartService
in class atg.nucleus.GenericService
atg.nucleus.ServiceException
public SiteService getSiteService()
public void setSiteService(SiteService pSiteService)
public java.lang.String getFilterKeyword()
public void setFilterKeyword(java.lang.String filterKeyword)
public java.lang.String getEditorField()
public void setEditorField(java.lang.String editorField)
public java.lang.String getEditorConstraintType()
public void setEditorConstraintType(java.lang.String pEditorConstraintType)
public java.lang.String getAdminField()
public void setAdminField(java.lang.String adminField)
public java.lang.String getBaseValue()
public void setBaseValue(java.lang.String pBaseValue)
pBaseValue
- Semicolon-separated list of item repository Idspublic atg.repository.Repository getRepository()
public void setRepository(atg.repository.Repository repository)
public java.lang.String getRepositoryView()
STATUS_VIEW
if editorField
is "status", "FieldDefinition" if mRepositoryView
is
not specified and mRepositoryView
if specified.public boolean isStatusField()
public void setRepositoryView(java.lang.String pRepositoryView)
pRepositoryView
- Name of the repository view that will be used to extract full or filtered list of items.public java.lang.String getFilterRQLWhere()
STATUS_FILTER_RQL
if editorField
is "status",
public java.lang.String getAllRQLWhere()
public java.lang.String getLanguageProperty()
public void setLanguageProperty(java.lang.String pLanguageProperty)
public SegmentService getSegmentService()
public void setSegmentService(SegmentService pSegmentService)
public SolutionService getSolutionService()
public void setSolutionService(SolutionService pSolutionService)
pSolutionService
- solution service for internal groupspublic java.util.List getViewItems()
getViewItems
in interface Listable
public void setViewItems(java.util.List viewItems)
viewItems
- public int getViewItemCount()
getViewItemCount
in interface Listable
public int getTotalItemCount()
getTotalItemCount()
.
getTotalItemCount
in interface Listable
public java.lang.String getItemKey()
public void setItemKey(java.lang.String itemKey)
public java.lang.String getItemName()
public java.util.Map getSelectedKeys()
public java.util.List<java.lang.String> getSelectedKeysList()
public java.util.List<java.lang.String> getSelectedItemsList()
protected java.util.List prepareSelectedList(java.util.Collection pViewItems, java.lang.String propertyName)
propertyName
-
public void setState(java.lang.String pState)
setState
in interface TreeTableFormHandler
setState
in class atg.svc.ui.formhandlers.test.TreeTableDelegatingFormHandler
pState
- serialized string for TreeTable component state stored on clientpublic static void fillSelectedFromState(java.util.Map pSelectedKeys, StateContainer pState)
pSelectedKeys
- map to updatepState
- Tree state that holds all the selected itemspublic void select(java.lang.Object pItemKey, java.lang.String pMode)
select
in interface Selectable
pItemKey
- key of the newly selected itempublic boolean handleList(atg.servlet.DynamoHttpServletRequest request, atg.servlet.DynamoHttpServletResponse response) throws java.lang.Exception
java.lang.Exception
protected void resetListValue(atg.servlet.DynamoHttpServletRequest pRequest)
protected java.util.List uploadViewItems()
protected java.util.List getSegmentItems()
protected java.util.List uploadRepositoryItems()
#getRepositoryView()} for details what repository view is used.
,
#wrapArray(java.lang.Object[])} how wrapping works.
protected java.util.Collection filterListValues(java.util.Collection src)
src
- source collection
public static java.util.List wrapCollection(java.util.Collection children)
children
- collection to wrap
public static java.util.List wrapSelfServiceAudienceCollection(java.util.Collection children)
children
- collection to wrap
#getRepItemImitation(java.lang.String, java.lang.String)} how items are wrapping
public static java.util.List wrapProfileGroups(java.util.List children)
children
- collection to wrap
#getRepItemImitation(java.lang.String, java.lang.String)} how items are wrapping
public static java.util.List wrapArray(java.lang.Object[] pItems)
pItems
- array to wrap
protected StateContainer findStateContainer()
protected void saveStateContainer(StateContainer pStateContainer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |