Work With Presto Attributes
You use Presto attributes to provide credentials or other runtime inputs for apps, mashables or mashups.You can also use attributes to provide additional meta data for artifacts. Common examples include information for the current user, such as a credential for a mashable, shared information that should be used for all contexts, such as an application ID that should always be used for a specific mashable, or information from a previous response that is specific to the current transaction or session.
Presto attributes can be defined for these contexts:
User Attributes: are defined by each user as part of their profile in
Presto and saved in the
Presto User Repository.
See Manage Your
Presto
User Attributes for more information. You can also choose to expose attributes from the
Presto User Repository as
Presto user attributes. You can expose attributes from the default User Repository or from your LDAP Directory, if
Presto is configured to use LDAP. See
Expose User Attributes from the User Repository in
Presto for more information.
At runtime, the Presto Server first checks the Presto user attributes for the current user to resolve any references to Presto attributes used in a request. If there is no matching user attribute for the current user, the Presto Server uses the matching Presto global attribute to resolve the attribute value before processing the request.
Global Attributes: can be used to define a default or shared value for a
Presto user attribute. This can be used for all users or just for those users that have not defined a specific value.
Global attributes can also be used to define any common value that should be used in many contexts. See
Manage
Presto Global Attributes for instructions on creating global attributes.
Session Attributes: are data that is available for one user session. They can be defined or updated in these ways:
Artifact Attributes: are additional meta data that you provide for individual apps, mashables or mashups. See
Manage Artifact Attributes for more information.