public class UIRequest extends ScopedResource implements Request
Form
object along with
the addressed User
, the priority of the dialog, and the language and
privacy level of the content. The IUIBus
will then add the current
adaptation parameters to the call (by asking the Dialog Manager) before
selecting the appropriate UIHandler
and forwarding the call to it.Modifier and Type | Field and Description |
---|---|
static String |
MY_URI
The Constant MY_URI.
|
static String |
PROP_ADDRESSED_USER
The Constant PROP_ADDRESSED_USER.
|
static String |
PROP_DIALOG_FORM
The Constant PROP_DIALOG_FORM.
|
static String |
PROP_DIALOG_LANGUAGE
The Constant PROP_DIALOG_LANGUAGE.
|
static String |
PROP_DIALOG_PRIORITY
The Constant PROP_DIALOG_PRIORITY.
|
static String |
PROP_DIALOG_PRIVACY_LEVEL
The Constant PROP_DIALOG_PRIVACY_LEVEL.
|
static String |
PROP_HAS_ACCESS_IMPAIRMENT
The Constant PROP_HAS_ACCESS_IMPAIRMENT.
|
static String |
PROP_HAS_PREFERENCE
The Constant PROP_HAS_PREFERENCE.
|
static String |
PROP_PRESENTATION_LOCATION
The Constant PROP_PRESENTATION_LOCATION.
|
static String |
PROP_PRESENTATION_MODALITY |
static String |
PROP_PRESENTATION_MODALITY_ALT |
static String |
UI_NAMESPACE
The Constant UI_NAMESPACE.
|
ONLY_LOCAL_SCOPE, PROP_ORIG_SCOPE, PROP_SCOPES
ANON_URI_PREFIX, blockAddingTypes, isXMLLiteral, NAMESPACE_PREFIX, ns_delim_index, PROP_INVOLVED_HUMAN_USER, PROP_RDF_FIRST, PROP_RDF_REST, PROP_RDF_TYPE, PROP_RDFS_COMMENT, PROP_RDFS_LABEL, PROP_SERIALIZATION_FULL, PROP_SERIALIZATION_OPTIONAL, PROP_SERIALIZATION_REDUCED, PROP_SERIALIZATION_UNDEFINED, props, RDF_EMPTY_LIST, RDF_NAMESPACE, RDFS_NAMESPACE, SERVICE_NAMESPACE, TYPE_RDF_LIST, TYPE_RDFS_CLASS, uri, VOCABULARY_NAMESPACE
Constructor and Description |
---|
UIRequest()
This constructor is for the exclusive usage by deserializers.
|
UIRequest(Resource user,
Form dialogForm,
LevelRating dialogPriority,
Locale dialogLang,
PrivacyLevel dialogPrivacy)
Instantiates a new
UIRequest . |
Modifier and Type | Method and Description |
---|---|
Resource |
getAddressedUser()
Gets the addressed
User . |
Modality |
getAltPresentationModality()
Gets the alternative presentation modality.
|
Form |
getDialogForm()
Gets the dialog
Form . |
String |
getDialogID()
Gets the dialog id.
|
Locale |
getDialogLanguage()
Gets the dialog language.
|
LevelRating |
getDialogPriority()
Gets the dialog priority.
|
PrivacyLevel |
getDialogPrivacyLevel()
Gets the dialog privacy level.
|
DialogType |
getDialogType()
Gets the dialog type.
|
AccessImpairment[] |
getImpairments()
Gets the impairments.
|
Preference[] |
getPreferences()
Gets the Preferences.
|
AbsLocation |
getPresentationLocation()
Gets the presentation location.
|
int |
getPropSerializationType(String propURI)
Answers if the given property has to be considered when serializing this
individual in a minimized way, and if not ignore-able, whether its value
should be presented in its full form or can be reduced.
|
boolean |
matches(Matchable subset) |
void |
setAltPresentationModality(Modality outputModality)
Sets the alternative presentation modality.
|
void |
setCollectedInput(Resource data)
Sets the collected input.
|
void |
setImpairments(AccessImpairment[] impairments)
Sets the impairments.
|
void |
setPreferences(Preference[] preferences)
Sets the preferences.
|
void |
setPresentationLocation(AbsLocation presentationLocation)
Sets the presentation location.
|
void |
setPresentationModality(Modality modality)
Sets the presentation modality.
|
addScope, clearScopes, getOriginScope, getScopes, isScoped, isSerializableTo, setOriginScope, setScope
addType, getLocalName, getNamespace, getProperty, getPropertyURIs, getType, getTypes, getURI, hasQualifiedName, isAnon, numberOfProperties
addMultiLangProp, asList, asList, asRDFList, changeProperty, copy, deepCopy, equals, generateAnonURI, getDefaultLang, getFilename, getMultiLangProp, getOrConstructLabel, getOrConstructLabel, getResource, getResourceComment, getResourceLabel, getResourceLabel, getStaticFieldValue, hashCode, hasProperty, isAnon, isBlockingAddingTypes, isClosedCollection, isQualifiedName, isWellFormed, literal, representsQualifiedURI, serializesAsXMLLiteral, setProperty, setPropertyPath, setPropertyPath, setPropertyPathFromOffset, setResourceComment, setResourceLabel, toString, toStringRecursive, toStringRecursive, unliteral
public static final String UI_NAMESPACE
public static final String MY_URI
public static final String PROP_ADDRESSED_USER
public static final String PROP_DIALOG_FORM
public static final String PROP_DIALOG_PRIORITY
public static final String PROP_DIALOG_LANGUAGE
public static final String PROP_DIALOG_PRIVACY_LEVEL
public static final String PROP_PRESENTATION_LOCATION
public static final String PROP_HAS_ACCESS_IMPAIRMENT
public static final String PROP_HAS_PREFERENCE
public static final String PROP_PRESENTATION_MODALITY
public static final String PROP_PRESENTATION_MODALITY_ALT
public UIRequest()
public UIRequest(Resource user, Form dialogForm, LevelRating dialogPriority, Locale dialogLang, PrivacyLevel dialogPrivacy)
UIRequest
.user
- the User
. It is declared as Resource because the type
User is defined in the Profiling Ontology. The type is not
needed for for matchmaking Either.dialogForm
- The dialog form.dialogPriority
- The dialog priority.dialogLang
- the dialog Language
.dialogPrivacy
- the dialog privacy.public int getPropSerializationType(String propURI)
Resource
Resource.PROP_SERIALIZATION_OPTIONAL
,
Resource.PROP_SERIALIZATION_REDUCED
, or Resource.PROP_SERIALIZATION_FULL
.
It can be assumed that the given property is one of those returned by
Resource.getPropertyURIs()
. PROP_SERIALIZATION_OPTIONAL
in
favor of lower communication traffic and higher performance even at risk
of a possible additional query on the receiver side for fetching this
info. With the same rationale, if a property should be included in the
process of serialization, it is preferable to include it in a reduced
form; in this case the return value should be
PROP_SERIALIZATION_REDUCED
, otherwise
PROP_SERIALIZATION_FULL
can be returned.
Subclasses should normally overwrite this method as this default
implementation returns always PROP_SERIALIZATION_FULL
.getPropSerializationType
in class Resource
Resource.getPropSerializationType(java.lang.String)
public Resource getAddressedUser()
User
.User
, It is declared as Resource because
the type User is defined in the Profiling Ontology. The type is
not needed for for matchmaking Either.public String getDialogID()
public Locale getDialogLanguage()
public LevelRating getDialogPriority()
public PrivacyLevel getDialogPrivacyLevel()
public DialogType getDialogType()
public AccessImpairment[] getImpairments()
public Preference[] getPreferences()
public AbsLocation getPresentationLocation()
public void setCollectedInput(Resource data)
data
- the new collected input, The Resource set as form Root data.public void setImpairments(AccessImpairment[] impairments)
impairments
- the new impairmentspublic void setPreferences(Preference[] preferences)
preferences
- the new preferencespublic void setPresentationLocation(AbsLocation presentationLocation)
presentationLocation
- the new presentation locationpublic void setPresentationModality(Modality modality)
modality
- the new presentation modalitypublic Modality getAltPresentationModality()
public void setAltPresentationModality(Modality outputModality)
outputModality
- the new alternative presentation modalitypublic boolean matches(Matchable subset)
matches
in interface Matchable
Matchable.matches(Matchable)
Copyright © 2018 universAAL Consortium. All rights reserved.