|
||||||||||
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
atg.svc.ui.formhandlers.UserChooserListFormHandler
public class UserChooserListFormHandler
Delegating form Handler for User List Chooser tree table component for extracting list of users (applying filtering by login name with filterKeyword property) and selecting users from this list. Requires initialization of:
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
IS_CURRENT_USER
|
protected atg.userprofiling.Profile |
mProfile
|
protected java.util.List |
mSearchResultItems
|
protected SolutionMetadataService |
mSolutionMetadataService
|
Fields inherited from class atg.svc.ui.formhandlers.ListChooserFormHandler |
---|
CONSTRAINT_LANGUAGE, CONSTRAINT_SELFSERVICE_AUDIENCE, editorField, mAdminField, mBaseValue, mFilterKeyword, mItemKey, mRepository, mRepositoryView, mSegmentService, mSelectedKeys, mSolutionService, mViewItems, PROPERTY_DISPLAY_NAME, PROPERTY_REPOSITORY_ID, STATUS_FILTER_RQL, STATUS_VIEW |
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 | |
---|---|
UserChooserListFormHandler()
|
Method Summary | |
---|---|
static void |
addCurrentUser(java.util.List pUsers)
Adds fake user with ID='%' to the collection of users Used to display "Current User" value in user constraint editors |
java.lang.String |
getAllRQLWhere()
Overriden to get all users ordered by first name. |
java.lang.String |
getFilterRQLWhere()
Overriden to filter by login name. |
atg.userprofiling.Profile |
getProfile()
|
atg.repository.Repository |
getProfileRepository()
Alias to ListChooserFormHandler.getRepository() |
SolutionMetadataService |
getSolutionMetadataService()
|
int |
getTotalItemCount()
Create collection of visible user list items. |
java.util.List |
getViewItems()
Create collection of visible list items. |
void |
page(int pStartIndex,
int pPageSize)
|
void |
select(java.lang.Object pItemKey,
java.lang.String pMode)
Implementation of Selectable interface. |
void |
setProfile(atg.userprofiling.Profile pProfile)
|
void |
setProfileRepository(atg.repository.Repository mProfileRepository)
Alias to #setRepository() |
void |
setSolutionMetadataService(SolutionMetadataService pSolutionMetadataService)
|
protected java.util.List |
uploadViewItems()
Retrieve items from canned list, or from SegmentService specified, or from repository. |
protected java.util.Map |
wrapGSAUser(atg.adapter.gsa.GSAItem user)
|
protected java.util.List |
wrapGSAUsers(java.util.List src)
Wraps list of GSAItem users into list of UI-compatible maps |
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 IS_CURRENT_USER
protected atg.userprofiling.Profile mProfile
protected java.util.List mSearchResultItems
protected SolutionMetadataService mSolutionMetadataService
Constructor Detail |
---|
public UserChooserListFormHandler()
Method Detail |
---|
public atg.userprofiling.Profile getProfile()
public void setProfile(atg.userprofiling.Profile pProfile)
mProfile
- profile of currently logged in userpublic atg.repository.Repository getProfileRepository()
ListChooserFormHandler.getRepository()
public void setProfileRepository(atg.repository.Repository mProfileRepository)
#setRepository()
protected java.util.List uploadViewItems()
ListChooserFormHandler
uploadViewItems
in class ListChooserFormHandler
public void setSolutionMetadataService(SolutionMetadataService pSolutionMetadataService)
public SolutionMetadataService getSolutionMetadataService()
public void select(java.lang.Object pItemKey, java.lang.String pMode)
ListChooserFormHandler
select
in interface Selectable
select
in class ListChooserFormHandler
pItemKey
- key of the newly selected itempublic int getTotalItemCount()
getTotalItemCount
in interface Listable
getTotalItemCount
in class ListChooserFormHandler
public java.util.List getViewItems()
ListChooserFormHandler
getViewItems
in interface Listable
getViewItems
in class ListChooserFormHandler
public void page(int pStartIndex, int pPageSize)
page
in interface Pageable
public java.lang.String getFilterRQLWhere()
getFilterRQLWhere
in class ListChooserFormHandler
public java.lang.String getAllRQLWhere()
getAllRQLWhere
in class ListChooserFormHandler
protected java.util.List wrapGSAUsers(java.util.List src)
src
- source list, should contain GSAItem objects
protected java.util.Map wrapGSAUser(atg.adapter.gsa.GSAItem user)
user
- GSAItem user with following properties: login, firstName, lastName
public static void addCurrentUser(java.util.List pUsers)
pUsers
- collection to add user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |