public class OwCMISUserSelectionModule
extends com.wewebu.ow.server.ecm.ui.OwUIUserSelectModul
OwCMISUserSelectionModule.
A UI component which is used to retrieve and display
different groups, user and/or roles.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Modifier and Type | Class and Description |
|---|---|
protected static class |
OwCMISUserSelectionModule.OwCMISInfoItem
OwCMISInfoItem.
Used for rendering the list. |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
SEARCH_FIELD_ID |
protected static String |
SEARCH_USER_LST |
TYPE_GROUP, TYPE_ROLE, TYPE_USER| Constructor and Description |
|---|
OwCMISUserSelectionModule(OwUsersRepository usersRepository) |
| Modifier and Type | Method and Description |
|---|---|
protected OwCMISUserSelectionModule.OwCMISInfoItem |
createRoleInfo(String name_p)
Factory method to create a instance representing
a role with given name.
|
protected OwCMISUserSelectionModule.OwCMISInfoItem |
createUserInfo(String name_p)
Factory method to create a instance representing
a user with given name.
|
protected OwCMISNetwork |
getCurrentNetwork()
Helper to return a OwCMISNetwork,
which cast the
OwUISubModul.getNetwork() return
value to OwCMISNetwork. |
String |
getCurrentUserID() |
protected String |
getEnteredPattern() |
List<OwCMISUserSelectionModule.OwCMISInfoItem> |
getExtendedType(int extendedType_p,
String pattern_p)
(overridable)
Method for additional type search which should be added
to the info list (
getInfoList()). |
int[] |
getFilter()
Return an array of int values, which represents
filter for the search.
|
protected List<OwCMISUserSelectionModule.OwCMISInfoItem> |
getInfoList()
List of OwBaseUserInfo containing the
users which were retrieved with last
search, and filtered by defined
getFilter(). |
List<OwCMISUserSelectionModule.OwCMISInfoItem> |
getTypeGroup(String pattern)
Method to return a list of user matching the pattern,
which will be called if
getFilter() contains OwUIUserSelectModul.TYPE_GROUP. |
List<OwCMISUserSelectionModule.OwCMISInfoItem> |
getTypeRole(String pattern)
Method to return a list of user matching the pattern,
which will be called if
getFilter() contains OwUIUserSelectModul.TYPE_ROLE. |
List<OwCMISUserSelectionModule.OwCMISInfoItem> |
getTypeUser(String pattern)
Method to return a list of users matching the pattern,
which will be called if
getFilter() contains OwUIUserSelectModul.TYPE_USER. |
protected void |
init() |
boolean |
isRoleSelection() |
void |
onRender(Writer w_p) |
void |
onSearch(javax.servlet.http.HttpServletRequest request_p)
Handling method for events when search should be executed.
|
void |
onSelectUser(javax.servlet.http.HttpServletRequest request_p)
Handling method for events when user entry is selected
|
protected void |
renderResultList(Writer w_p) |
protected void |
renderSearchCriteriaBox(Writer w_p) |
protected void |
renderUserSelectButton(Writer w_p)
Render the button for acceptance of User selection.
|
void |
setCurrentUserID(String currentUserID_p) |
protected void |
setEnteredPattern(String pattern) |
void |
setFilter(int[] filter_p)
Set the filter value for the next search.
|
protected String |
usesFormWithAttributes() |
getDefaultRoleNames, getEventListner, getMultiselect, searchDefaultRoleNames, setEventListner, setMultiselectactivate, addView, detach, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getIterator, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getTitle, getViewList, isFormTargetExternal, isNamedRegion, isRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, onUpdate, render, renderHTMLFormular, renderNamedRegion, renderRegion, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormalprotected static final String SEARCH_FIELD_ID
protected static final String SEARCH_USER_LST
public OwCMISUserSelectionModule(OwUsersRepository usersRepository)
public String getCurrentUserID()
protected void init()
throws Exception
init in class com.wewebu.ow.server.ui.OwViewExceptionpublic void setCurrentUserID(String currentUserID_p)
public int[] getFilter()
If the filter is null or an empty array, no
search will be executed.
OwUIUserSelectModul.TYPE_GROUP,
OwUIUserSelectModul.TYPE_ROLE,
OwUIUserSelectModul.TYPE_USERpublic void setFilter(int[] filter_p)
filter_p - array of int representing the typesOwUIUserSelectModul.TYPE_GROUP,
OwUIUserSelectModul.TYPE_ROLE,
OwUIUserSelectModul.TYPE_USERpublic void onRender(Writer w_p) throws Exception
onRender in class com.wewebu.ow.server.ui.OwViewExceptionprotected void renderUserSelectButton(Writer w_p) throws IOException
w_p - Writer to execute renderingIOExceptionprotected void renderSearchCriteriaBox(Writer w_p) throws Exception
Exceptionprotected void renderResultList(Writer w_p) throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwExceptionprotected String usesFormWithAttributes()
usesFormWithAttributes in class com.wewebu.ow.server.ui.OwViewprotected List<OwCMISUserSelectionModule.OwCMISInfoItem> getInfoList()
getFilter().public void onSearch(javax.servlet.http.HttpServletRequest request_p)
throws com.wewebu.ow.server.exceptions.OwException
request_p - HttpServletRequestcom.wewebu.ow.server.exceptions.OwExceptionpublic void onSelectUser(javax.servlet.http.HttpServletRequest request_p)
throws Exception
request_p - HttpServletRequestExceptionpublic List<OwCMISUserSelectionModule.OwCMISInfoItem> getTypeUser(String pattern) throws com.wewebu.ow.server.exceptions.OwException
getFilter() contains OwUIUserSelectModul.TYPE_USER.
Must return an empty list if no matching entries could be found!
pattern - Stringcom.wewebu.ow.server.exceptions.OwExceptionOwUIUserSelectModul.TYPE_USERpublic List<OwCMISUserSelectionModule.OwCMISInfoItem> getTypeGroup(String pattern) throws com.wewebu.ow.server.exceptions.OwException
getFilter() contains OwUIUserSelectModul.TYPE_GROUP.
Must return an empty list if no matching entries could be found!
pattern - Stringcom.wewebu.ow.server.exceptions.OwExceptionOwUIUserSelectModul.TYPE_GROUPpublic List<OwCMISUserSelectionModule.OwCMISInfoItem> getTypeRole(String pattern) throws com.wewebu.ow.server.exceptions.OwException
getFilter() contains OwUIUserSelectModul.TYPE_ROLE.
Must return an empty list if no matching entries could be found!
pattern - Stringcom.wewebu.ow.server.exceptions.OwExceptionOwUIUserSelectModul.TYPE_ROLEpublic boolean isRoleSelection()
protected String getEnteredPattern()
protected void setEnteredPattern(String pattern)
public List<OwCMISUserSelectionModule.OwCMISInfoItem> getExtendedType(int extendedType_p, String pattern_p)
getInfoList()).
This method will return by default an empty list.
extendedType_p - int extended type searchpattern_p - Stringprotected OwCMISNetwork getCurrentNetwork()
OwUISubModul.getNetwork() return
value to OwCMISNetwork.protected OwCMISUserSelectionModule.OwCMISInfoItem createUserInfo(String name_p)
name_p - String name of groupprotected OwCMISUserSelectionModule.OwCMISInfoItem createRoleInfo(String name_p)
name_p - String name of groupCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.