Image Content data instances
|
|
Complete this tab to:
Field |
Description |
Security | |
Enable |
Select to restrict access to this instance. If selected, a developer can update this instance only if the developer holds the privilege identified, and only if the access when rule (if not blank) evaluates to true. At runtime, if the user does not hold the privilege or the access when rule, a Java Security Exception occurs and the HTML display fails. If not selected, any developer can update this instance, and the image is available in HTML displays to any authenticated user. In addition, when included in an HTML display, the image may be cached by the browser. |
Set/Change Security |
These three fields are visible only when the Enable checkbox is selected. Complete the Access Class field, and complete the Access Privilege field or Access When field (or both). |
Access Class |
To restrict the ability to request or modify this image content instance, select a class that contains a privilege or when condition rule. The class may belong to any application or RuleSet. |
Access Privilege |
Select a privilege in the Access Class (or an ancestor of this class). Updates, image preview, image uploads, and other operations on this instance are available only to requestors who hold this privilege. |
Access When |
Select an access when rule in the Access Class (or an ancestor of that class). If not blank, updates, image previews, image uploads, and other operations on this instance are available only if the access when rule evaluates to true. |
If the Security Enable option is selected, these operations are available only to those developers or administrators who meet the restrictions in the Set/Change Security fields.
Field |
Description |
Image Preview |
The form contains a preview of the image and indicates the width and height of the image in pixels. In some situations immediately after an update or upload, your browser may present a stale version of the image. Clear your browser cache. |
Upload File |
Click to upload into this data instance an image on your workstation or local area network. Locate the file, and click Upload File . A message box confirms when the upload completes. Save the Image Content form. |
Download File |
Click to download the image associated with this rule to your workstation or local area network. |
You can reference image content in HTML for display using the contentURL JSP tag:
<pega:contentURL name="mylogo.gif" path="content" classType="Image" />
The name and path options do not correspond to a physical file location on any server. The <pega:contentURL > JSP tag generates a unique hash URL evaluated at runtime.