public class ShareUploadNewVersionScenario extends AbstractShareScenario
DocumentDetailsPage: Selects the Upload New Version linkUpdateFilePage: Uploads a new version of the fileDocumentDetailsPage: END| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_NAME_SELECT_UPLOAD_NEW_VERSION |
static String |
EVENT_NAME_UPLOAD_NEW_VERSION |
| Constructor and Description |
|---|
ShareUploadNewVersionScenario(ShareScenarioRegistry registry,
double weight,
org.alfresco.bm.file.TestFileService testFileService) |
| 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)
Construct a list of events to follow according to the scenario implementation.
|
void |
setEventNameSelectUploadNewVersion(String eventNameSelectUploadNewVersion)
Override the
default event name to open
the new version upload page. |
void |
setEventNameUploadNewVersion(String eventNameUploadNewVersion)
Override the
default event name to upload
a new version of the file |
afterPropertiesSet, setBeanName, setScenarioNamepublic static final String EVENT_NAME_SELECT_UPLOAD_NEW_VERSION
public static final String EVENT_NAME_UPLOAD_NEW_VERSION
public ShareUploadNewVersionScenario(ShareScenarioRegistry registry, double weight, org.alfresco.bm.file.TestFileService testFileService)
registry - registry with which this instance will be registeredweight - the weight relative to other scenarios registered in the registrytestFileService - the provider of test filespublic void setEventNameSelectUploadNewVersion(String eventNameSelectUploadNewVersion)
default event name to open
the new version upload page.public void setEventNameUploadNewVersion(String eventNameUploadNewVersion)
default event name to upload
a new version of the filepublic List<org.alfresco.bm.event.Event> getNextEvents(org.alfresco.bm.event.Event event, ShareEventData eventData, ShareSoakData soakData, long nextEventTime)
ShareScenarioevent - 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)see class commentsCopyright © 2016. All rights reserved.