Back Forward Image Content data instances
Completing the Main tab

  1. About 
  2. New 
  3. Main 
  4. History 
  5. More... 

Complete this tab to:

Security

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

SmartPromptTo 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

SmartPromptSelect 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

SmartPromptSelect 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.

Set Browser Cache

Field

Description

Set Browser Cache  
Enable

Select to allow the image to be cached in user browsers. This checkbox is not available if the Security Enable option is selected.

By default, the expiration interval for the cached image to 24 hours, the same as for static content images.

Image Preview

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.

NoteIn 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.

References to images

You can reference image content in HTML for display using the contentURL JSP tag:

<pega:contentURL name="mylogo.gif" path="content" classType="Image" />

NoteThe 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.

Up About Image Content data instances