Package com.microstrategy.web.objects
Interface WebPromptInstances
-
public interface WebPromptInstancesThe interfaceWebPromptInstancesrepresents a collection of prompt instances.- Since:
- MicroStrategy Web 9.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Clear the whole collection;WebPromptInstancefindByPin(int pin)Returns the prompt instance with the specified pin.WebPromptInstanceget(int index)Returns the prompt instance at the specified position.booleanisEmpty()Returnstrueif the collection is empty.WebPromptInstancenewPromptInstance()Creates and stores a prompt instance.WebPromptInstancenewPromptInstance(WebPrompt promptDef)Creates and stores a prompt instance.WebPromptInstancenewPromptInstance(WebPrompt promptDef, boolean isSystemPrompt)Creates and stores a prompt instance.voidremove(int index)Removes the prompt instance at the specified position.voidremoveByPin(int pin)Removes the prompt instance with the specified pin.intsize()Returns the number of prompt instances from this collection.
-
-
-
Method Detail
-
size
int size()
Returns the number of prompt instances from this collection.- Returns:
- the number of prompt instances.
-
isEmpty
boolean isEmpty()
Returnstrueif the collection is empty.- Returns:
trueif the collection is empty.
-
get
WebPromptInstance get(int index)
Returns the prompt instance at the specified position.- Parameters:
index- the position of a prompt instance- Returns:
- the prompt instance at the specified position.
-
findByPin
WebPromptInstance findByPin(int pin)
Returns the prompt instance with the specified pin.- Parameters:
pin- the pin of a prompt instance- Returns:
- the prompt instance with the specified pin.
-
remove
void remove(int index)
Removes the prompt instance at the specified position.- Parameters:
index- the position of a prompt instance.
-
removeByPin
void removeByPin(int pin)
Removes the prompt instance with the specified pin.- Parameters:
pin- pin the pin of a prompt instance
-
newPromptInstance
WebPromptInstance newPromptInstance()
Creates and stores a prompt instance.- Returns:
- the new prompt instance just being created.
-
newPromptInstance
WebPromptInstance newPromptInstance(WebPrompt promptDef) throws WebObjectsException
Creates and stores a prompt instance. The newly created prompt instance is linked to the specified prompt definition.- Parameters:
promptDef- a prompt definition.- Returns:
- the new prompt instance just being created.
- Throws:
WebObjectsException- thrown if the prompt type is not supported on this prompt site.
-
newPromptInstance
WebPromptInstance newPromptInstance(WebPrompt promptDef, boolean isSystemPrompt) throws WebObjectsException
Creates and stores a prompt instance. The newly created prompt instance is linked to the specified prompt definition.- Parameters:
promptDef- a prompt definition.isSystemPrompt- boolean true if this is a system prompt- Returns:
- the new prompt instance just being created.
- Throws:
WebObjectsException- thrown if the prompt type is not supported on this prompt site.
-
clear
void clear()
Clear the whole collection;
-
-