public class SharePeopleFinderScenario extends AbstractShareScenario
PeopleFinderPage
(no results): Find random user and execute search according to
parameters of the scenario.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_PREFIX_SEARCH |
static String |
EVENT_NAME_NAVIGATE_TO_PEOPLE |
static String |
EVENT_NAME_PEOPLE_SEARCH |
Constructor and Description |
---|
SharePeopleFinderScenario(ShareScenarioRegistry registry,
double weight,
org.alfresco.bm.user.UserDataService userDataService) |
Modifier and Type | Method and Description |
---|---|
List<org.alfresco.bm.event.Event> |
getNextEvents(org.alfresco.bm.event.Event event,
ShareEventData eventData,
ShareSoakData soakData,
long nextEventTime)
If the browser is not on the
PeopleFinderPage the link is clicked. |
void |
setEventNameNavigateToPeople(String eventNameNavigateToPeople)
Override the
default name for events
to navigate to the People Finder screen. |
void |
setEventNamePeopleSearch(String eventNamePeopleSearch)
Override the
default name for events
to navigate search on the People Finder screen. |
void |
setPrefixSearch(boolean prefixSearch)
Override the
default flag indicating whether we perform
prefix searches or not. |
afterPropertiesSet, setBeanName, setScenarioName
public static final String EVENT_NAME_NAVIGATE_TO_PEOPLE
public static final String EVENT_NAME_PEOPLE_SEARCH
public static final boolean DEFAULT_PREFIX_SEARCH
public SharePeopleFinderScenario(ShareScenarioRegistry registry, double weight, org.alfresco.bm.user.UserDataService userDataService)
registry
- registry with which this instance will be registeredweight
- the weight relative to other scenarios registered in the registryuserDataService
- service giving access to random usernamespublic void setEventNamePeopleSearch(String eventNamePeopleSearch)
default
name for events
to navigate search on the People Finder screen.public void setEventNameNavigateToPeople(String eventNameNavigateToPeople)
default
name for events
to navigate to the People Finder screen.public void setPrefixSearch(boolean prefixSearch)
default
flag indicating whether we perform
prefix searches or not.prefixSearch
- true to do a prefix search (paul*
or
false to do a suffix search (*paul
public List<org.alfresco.bm.event.Event> getNextEvents(org.alfresco.bm.event.Event event, ShareEventData eventData, ShareSoakData soakData, long nextEventTime)
PeopleFinderPage
the link is clicked.event
- the event that triggered this choiceeventData
- Share-specific data associated with the eventsoakData
- Session-specific data for the eventnextEventTime
- the suggested next event time (for guidance)Copyright © 2014. All rights reserved.