Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.netuix.application.communities.invitations.email.formatting
Class JspEmailTextFormatterUtil

    java.lang.Object
      com.bea.netuix.application.communities.invitations.email.formatting.JspEmailTextFormatterUtil

    public class JspEmailTextFormatterUtil

extends Object

Utility class that assists in conveying invitation information to a JSP used by the JspEmailTextFormatter. This is accomplished by caching an `InvitationDetailCacheEntry`, keyed by an `Integer` key that is supplied to the JSP as a request parameter, which can then be used by the JSP to retrieve `InvitationDetails`, the Community URL, the `Invitee` or the `InvitationDetailCacheEntry` itself.

The overview of community functionality contains a description of the community framework.

Nested Class Summary
`static class` | `JspEmailTextFormatterUtil.InvitationDetailCacheEntry` Represents a set of information regarding the current invitation operation, including the `InvitationDetails`, the `Invitee` and the Community Url String.

Constructor Summary
`JspEmailTextFormatterUtil()`

Method Summary
`static Integer` | `cacheInvitationDetails(JspEmailTextFormatterUtil.InvitationDetailCacheEntry details)` Caches an `InvitationDetailsCacheEntry` and returns its associated `Integer` key.
`static JspEmailTextFormatterUtil.InvitationDetailCacheEntry` | `getCacheInvitationDetails(javax.servlet.http.HttpServletRequest request)` Gets the `InvitationDetailCacheEntry` based on the parameter key which is in the request.
`static JspEmailTextFormatterUtil.InvitationDetailCacheEntry` | `getCacheInvitationDetails(Integer key)` Gets the `InvitationDetailCacheEntry` based on the `Integer` parameter key
`static String` | `getCommunityURL(javax.servlet.http.HttpServletRequest request)` Gets the Community URL based on the parameter key which is in the request.
`static InvitationDetails` | `getInvitationDetails(javax.servlet.http.HttpServletRequest request)` Gets the `InvitationDetails` based on the parameter key which is in the request.
`static Invitee` | `getInvitee(javax.servlet.http.HttpServletRequest request)` Gets the `Invitee` based on the parameter key which is in the request.
`static void` | `removeCacheInvitationDetails(Integer key)` Removes the `InvitationDetailCacheEntry` associated with the supplied key

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### JspEmailTextFormatterUtil

    public JspEmailTextFormatterUtil()

Method Detail

### cacheInvitationDetails

    public static Integer cacheInvitationDetails(JspEmailTextFormatterUtil.InvitationDetailCacheEntry details)

  Caches an `InvitationDetailsCacheEntry` and returns its associated `Integer` key. This method is called from the `JspEmailTextFormatter` or other class which invokes a JSP where it is useful to provide Invitation details without having an API available to pass Java objects.

  Parameters
    `details` -
  Returns
    the `Integer` key for the cached entry

### getInvitationDetails

    public static InvitationDetails getInvitationDetails(javax.servlet.http.HttpServletRequest request)

  Gets the `InvitationDetails` based on the parameter key which is in the request.

  Parameters
    `request` - the current `HttpServletRequest`
  Returns
    the `InvitationDetail` object associated with the current invitation operation

### getCommunityURL

    public static String getCommunityURL(javax.servlet.http.HttpServletRequest request)

  Gets the Community URL based on the parameter key which is in the request.

  Parameters
    `request` - the current `HttpServletRequest`
  Returns
    the Community URL `String` associated with the current invitation operation

### getInvitee

    public static Invitee getInvitee(javax.servlet.http.HttpServletRequest request)

  Gets the `Invitee` based on the parameter key which is in the request.

  Parameters
    `request` - the current `HttpServletRequest`
  Returns
    the `Invitee` object associated with the current invitation operation

### getCacheInvitationDetails

    public static JspEmailTextFormatterUtil.InvitationDetailCacheEntry getCacheInvitationDetails(javax.servlet.http.HttpServletRequest request)

  Gets the `InvitationDetailCacheEntry` based on the parameter key which is in the request.

  Parameters
    `request` - the current `HttpServletRequest`
  Returns
    the `InvitationDetailCacheEntry` object associated with the current invitation operation

### getCacheInvitationDetails

    public static JspEmailTextFormatterUtil.InvitationDetailCacheEntry getCacheInvitationDetails(Integer key)

  Gets the `InvitationDetailCacheEntry` based on the `Integer` parameter key

  Parameters
    `key` - the key for the `InvitationDetailCacheEntry`
  Returns
    the `InvitationDetailCacheEntry` object associated with key

### removeCacheInvitationDetails

    public static void removeCacheInvitationDetails(Integer key)

  Removes the `InvitationDetailCacheEntry` associated with the supplied key

  Parameters
    `key` - the key for the `InvitationDetailCacheEntry` to remove

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.