|
||||||||||
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.OrgChooserFormHandler
public class OrgChooserFormHandler
Use in Organization Groups Chooser TreeTable component as data retrieval, tree expansion, selection by delegating. Requires profileRepository property setting into /atg/userprofiling/ProfileAdapterRepository value and retrieves data from it. Allows displaying organization tree.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected java.lang.String |
mBaseExpValue
|
protected java.util.List |
mExpanded
List of expanded organizations in the tree table displayed. |
protected FavoriteQueryService |
mFavoriteQueryService
|
protected atg.repository.Repository |
mProfileRepository
|
static java.lang.String |
ORG_ROOT
root organization |
static java.lang.String |
ORGANIZATION_VIEW
Name of repository view to get organization items from. |
static java.lang.String |
TREE_TABLE_ID_INT_AUDIENCE
id of tree table used to display internal audience in the Query Builder |
static java.lang.String |
TREE_TABLE_ID_OWN_GROUP
id of tree table used to display organizations in the Query Builder |
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 | |
---|---|
OrgChooserFormHandler()
|
Method Summary | |
---|---|
java.util.Collection |
expand(java.lang.Object pItemKey)
Implementation of Expandable interface. |
java.lang.String |
getBaseExpValue()
Semicolon-separated list of item repository Ids that are initially expanded |
java.util.List |
getExpandedKeysList()
|
FavoriteQueryService |
getFavoriteQueryService()
|
int |
getItemDepth(java.lang.Object pItem)
Implementation of Expandable interface. |
boolean |
getItemHasChildren(java.lang.Object pItem)
Implementation of Expandable interface. |
java.util.List |
getOwnGroupsOrIntAudiences()
|
atg.repository.Repository |
getProfileRepository()
|
java.util.List |
getSubOrganizations(java.lang.String pItemKey)
|
int |
getTotalItemCount()
Same as ListChooserFormHandler.getTotalItemCount() . |
int |
getViewItemCount()
Same as getTotalItemCount() . |
java.util.List |
getViewItems()
Create collection of visible organization items. |
boolean |
isPublicFavoriteQueryOrgChooser()
Is the OrgChooserFormHandler being used to pick organizations for public favorite queries? If true, checks that the user has permission to publish the favorite query. |
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 |
void |
setBaseExpValue(java.lang.String pBaseExpValue)
initially expanded items (saved in DB) |
void |
setFavoriteQueryService(FavoriteQueryService pFavoriteQueryService)
|
void |
setProfileRepository(atg.repository.Repository profileRepository)
Repository of organizations to take data from. |
void |
setPublicFavoriteQueryOrgChooser(boolean pPublicFavoriteQueryOrgChooser)
Is the OrgChooserFormHandler being used to pick organizations for public favorite queries? If true, checks that the user has permission to publish the favorite query. |
void |
setState(java.lang.String pState)
Remember treetable state, remember keys of already expanded items in the List. |
protected void |
sortBranch(java.util.List result)
Orders provided organization list according to its names. |
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, getDefaultLocale, getErrorURL, getRedirectDelayMS, getString, getString, getString, getSuccessURL, getUserLocale, getUserMessagesResourceBundle, handleCancel, isUseRequestLocale, processException, processException, processExceptionAndLog, processExceptionAndLog, redirect, setDefaultLocale, setErrorURL, setRedirectDelayMS, setSuccessURL, setUseRequestLocale, 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, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, 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 ORGANIZATION_VIEW
public static final java.lang.String TREE_TABLE_ID_OWN_GROUP
public static final java.lang.String TREE_TABLE_ID_INT_AUDIENCE
public static final java.lang.String ORG_ROOT
protected java.util.List mExpanded
protected java.lang.String mBaseExpValue
protected atg.repository.Repository mProfileRepository
protected FavoriteQueryService mFavoriteQueryService
Constructor Detail |
---|
public OrgChooserFormHandler()
Method Detail |
---|
public java.util.List getExpandedKeysList()
public java.lang.String getBaseExpValue()
public void setBaseExpValue(java.lang.String pBaseExpValue)
pBaseExpValue
- Semicolon-separated list of item repository Idspublic atg.repository.Repository getProfileRepository()
public void setProfileRepository(atg.repository.Repository profileRepository)
public FavoriteQueryService getFavoriteQueryService()
FavoriteQueryService
public void setFavoriteQueryService(FavoriteQueryService pFavoriteQueryService)
FavoriteQueryService
public boolean isPublicFavoriteQueryOrgChooser()
public void setPublicFavoriteQueryOrgChooser(boolean pPublicFavoriteQueryOrgChooser)
public void setState(java.lang.String pState)
setState
in interface TreeTableFormHandler
setState
in class ListChooserFormHandler
pState
- serialized string for TreeTable component state stored on clientprotected void resetListValue(atg.servlet.DynamoHttpServletRequest pRequest)
ListChooserFormHandler
resetListValue
in class ListChooserFormHandler
public java.util.Collection expand(java.lang.Object pItemKey)
expand
in interface Expandable
pItemKey
- key of the newly expanded item
public int getItemDepth(java.lang.Object pItem)
getItemDepth
in interface Expandable
pItem
- Item object of "items" collection of tree table.
public boolean getItemHasChildren(java.lang.Object pItem)
getItemHasChildren
in interface Expandable
pItem
- Item object of "items" collection of tree table.
public int getTotalItemCount()
ListChooserFormHandler
ListChooserFormHandler.getTotalItemCount()
.
getTotalItemCount
in interface Listable
getTotalItemCount
in class ListChooserFormHandler
public int getViewItemCount()
getTotalItemCount()
.
getViewItemCount
in interface Listable
getViewItemCount
in class ListChooserFormHandler
public java.util.List getViewItems()
getViewItems
in interface Listable
getViewItems
in class ListChooserFormHandler
public java.util.List getOwnGroupsOrIntAudiences()
public java.util.List getSubOrganizations(java.lang.String pItemKey)
pItemKey
- ID of organization
protected void sortBranch(java.util.List result)
result
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |