public abstract class ClassificationDialog extends Dialog
| Modifier and Type | Field and Description |
|---|---|
String |
CLASSIFY_BUTTON_LABEL
Labels used in the dialog
|
String |
CLASSIFY_DOCUMENT_TITLE |
String |
CLASSIFY_RECORD_TITLE |
int |
DECLASSIFICATION_SCHEDULE |
int |
DOWNGRADE_SCHEDULE
Dialog tabs indexes
|
String |
EDIT_BUTTON_LABEL |
String |
EDIT_DOCUMENT_CLASSIFICATION_TITLE |
String |
EDIT_RECORD_CLASSIFICATION_TITLE |
dialog, VISIBLE_DIALOGrenderableParent, webDriverCANCEL, CONFIRM, DELETE, OK, REQUEST_INFORMATION, SAVE| Constructor and Description |
|---|
ClassificationDialog() |
| Modifier and Type | Method and Description |
|---|---|
ClassificationDialog |
addExemptionCategory(String id)
Search for an exemption category then, when the dropdown options are visible, click on the desired category.
|
ClassificationDialog |
addReason(String id)
Search for a classification reason then, when the dropdown options are visible, click on the desired reason.
|
ClassificationDialog |
clearClassifiedByField()
Clear the Classified by field
|
ClassificationDialog |
clearDowngradeDate()
Clear the Downgrade date field
|
ClassificationDialog |
clearDowngradeEvent()
Clear the Downgrade Event field
|
ClassificationDialog |
clearInstructionsField()
Clear the Instructions field
|
ClassificationDialog |
clickDeclassificationScheduleTab()
Click the declassification schedule tab
|
Renderable |
clickOnCancel()
Click on cancel
|
Renderable |
clickOnClassify()
Click on classify
|
Renderable |
clickOnClassifyFromDetailsPage()
Click on Classify from the Details Page
|
Renderable |
clickOnEdit()
Click on edit classification
|
Renderable |
closeDialog()
Close dialog
|
String |
getAgency() |
List<String> |
getAvailableLevels()
Open the levels dropdown to find the potential options available to the current user.
|
String |
getClassifiedBy() |
String |
getClassifyButtonLabel() |
String |
getClassifyDialogTitle() |
String |
getDeclassificationDate() |
String |
getDeclassificationEvent() |
String |
getDowngradeDate() |
String |
getDowngradeEvent() |
String |
getDowngradeInstructions() |
String |
getEditButtonLabel() |
String |
getEditClasificationTitle() |
List<String> |
getExemptions() |
String |
getLevel() |
protected abstract org.openqa.selenium.WebElement |
getLevelSelectButton()
Level select button
|
protected abstract org.openqa.selenium.WebElement |
getLevelsMenu()
Levels menu
|
List<String> |
getReasons() |
protected abstract org.openqa.selenium.WebElement |
getSelectedLevel()
Selected level
|
boolean |
isClassifyButtonEnabled() |
boolean |
isDisplayed() |
boolean |
isEditClassificationDialogDisplayed() |
boolean |
isInstructionsFieldRequired() |
boolean |
isTabSelected(int index)
Check if the tab with the number given as parameter is selected
|
boolean |
isValidationDisplayed(String validationMessage) |
ClassificationDialog |
removeSelectedExemption(String index)
Remove a exemption that has previously been selected.
|
ClassificationDialog |
removeSelectedReason(String id)
Remove a reason that has previously been selected.
|
void |
selectTab(Integer index)
Select tab if the tab with the index given as parameter is not already selected
|
ClassificationDialog |
setAgency(String agency)
Set classification agency
|
ClassificationDialog |
setAgencyEmpty()
Set classification agency to empty value
|
ClassificationDialog |
setClassifiedBy(String classifiedBy)
Set classified by
|
ClassificationDialog |
setDeclassificationDate(String declassificationDate)
Set the declassification date.
|
ClassificationDialog |
setDeclassificationEvent(String event)
Set declassification event
|
ClassificationDialog |
setDowngradeDate(String downgradeDate)
Set the downgrade date.
|
ClassificationDialog |
setDowngradeEvent(String event)
Set downgrade event
|
ClassificationDialog |
setDowngradeInstructions(String instructions)
Set downgrade instructions
|
ClassificationDialog |
setInvalidAgency(String text)
Set classification agency to invalid value
|
ClassificationDialog |
setInvalidDeclassificationEvent(String event)
Set invalid declassification event
|
ClassificationDialog |
setInvalidDowngradeEvent(String event)
Set invalid downgrade event
|
ClassificationDialog |
setInvalidDowngradeInstructions(String instructions)
Set invalid downgrade instructions
|
protected abstract ClassificationDialog |
setLevel(String levelId)
Set the classification level.
|
as, getAllFields, getLastRendered, render, renderChildrenpublic final String CLASSIFY_BUTTON_LABEL
public final String EDIT_BUTTON_LABEL
public final String CLASSIFY_RECORD_TITLE
public final String CLASSIFY_DOCUMENT_TITLE
public final String EDIT_DOCUMENT_CLASSIFICATION_TITLE
public final String EDIT_RECORD_CLASSIFICATION_TITLE
public final int DOWNGRADE_SCHEDULE
public final int DECLASSIFICATION_SCHEDULE
protected abstract org.openqa.selenium.WebElement getLevelSelectButton()
protected abstract org.openqa.selenium.WebElement getSelectedLevel()
protected abstract org.openqa.selenium.WebElement getLevelsMenu()
protected abstract ClassificationDialog setLevel(String levelId)
levelId - The label on the classification level dropdown button.public String getLevel()
public String getClassifiedBy()
public List<String> getAvailableLevels()
public ClassificationDialog setAgency(String agency)
public ClassificationDialog setAgencyEmpty()
public ClassificationDialog setInvalidAgency(String text)
public ClassificationDialog setClassifiedBy(String classifiedBy)
public ClassificationDialog clearClassifiedByField()
public ClassificationDialog clearDowngradeDate()
public ClassificationDialog clearDowngradeEvent()
public ClassificationDialog clearInstructionsField()
public ClassificationDialog setDowngradeDate(String downgradeDate)
downgradeDate - A string containing the downgrade date in the current locale. For maximum portability it is
recommended to supply a date where the date and month are the same (e.g. "01/01/2016").public ClassificationDialog setDowngradeEvent(String event)
public ClassificationDialog setInvalidDowngradeEvent(String event)
public ClassificationDialog setDowngradeInstructions(String instructions)
public ClassificationDialog setInvalidDowngradeInstructions(String instructions)
public ClassificationDialog setDeclassificationDate(String declassificationDate)
declassificationDate - A string containing the declassification date in the current locale. For maximum
portability it is recommended to supply a date where the date and month are the same (e.g.
"01/01/2016").public ClassificationDialog setDeclassificationEvent(String event)
public ClassificationDialog setInvalidDeclassificationEvent(String event)
public ClassificationDialog addReason(String id)
id - The classification reason id (e.g. "3").public ClassificationDialog clickDeclassificationScheduleTab()
public ClassificationDialog addExemptionCategory(String id)
id - The exemption category id (e.g. "4").public ClassificationDialog removeSelectedReason(String id) throws org.openqa.selenium.NoSuchElementException
id - The classification reason id (e.g. "3") - note this is currently not displayed on the page.org.openqa.selenium.NoSuchElementException - If the reason with the given id has not been applied to the content.public ClassificationDialog removeSelectedExemption(String index) throws org.openqa.selenium.NoSuchElementException
index - The classification exemption index.org.openqa.selenium.NoSuchElementException - If the exemption with the given index has not been applied to the content.public Renderable clickOnClassify()
public Renderable clickOnEdit()
public Renderable clickOnClassifyFromDetailsPage()
public Renderable clickOnCancel()
public Renderable closeDialog()
public boolean isTabSelected(int index)
public void selectTab(Integer index)
public boolean isDisplayed()
true if the Classify Content dialog is visible (actually check if the "create" button is visible).public boolean isEditClassificationDialogDisplayed()
true if the Classify Content dialog is visible (actually check if the "create" button is visible).public boolean isClassifyButtonEnabled()
true if the classify button is visible and enabled.public boolean isInstructionsFieldRequired()
true if the Instructions field is requiredpublic String getAgency()
public String getDowngradeDate()
public String getDowngradeEvent()
public String getDowngradeInstructions()
public String getDeclassificationDate()
public String getDeclassificationEvent()
public String getClassifyDialogTitle()
public String getEditClasificationTitle()
public String getEditButtonLabel()
public String getClassifyButtonLabel()
public boolean isValidationDisplayed(String validationMessage)
Copyright © 2005–2016 Alfresco Software. All rights reserved.