/* Copyright (c) 2001, Oracle Corporation. All Rights Reserved */
package oracle.portal.provider.v2;

/**
 * Interface used to store Portlet related constants.
 */
public interface PortletConstants
{
    /**
     * Resource attribute name for the portlet name.  If your portlets string
     * meta-data is stored in a resource bundle use this constant to represent
     * the portlet's name.
     */
    public static final String NAME = "PortletName";

    /**
     * Resource attribute name for the portlet title.  If your portlets string
     * meta-data is stored in a resource bundle use this constant to represent
     * the portlet's title.
     */
    public static final String TITLE = "PortletTitle";

    /**
     * Resource attribute name for the portlet short title.  If your portlets string
     * meta-data is stored in a resource bundle use this constant to represent
     * the portlet's short title.
     */
    public static final String SHORTTITLE = "PortletShortTitle";

    /**
     * Resource attribute name for the portlet description.  If your portlets
     * string meta-data is stored in a resource bundle use this constant to
     * represent the portlet's description.
     */
    public static final String DESCRIPTION = "PortletDescription";

    /**
     * Resource attribute name for the portlet timeout message.  If your
     * portlets string meta-data is stored in a resource bundle use this
     * constant to represent the portlet's timeout message.
     */
    public static final String TIMEOUTMSG = "PortletTimeoutMsg";

    /**
     * The possible values for the cacheLevel attribute that may appear
     * in the default provider definition file parsed by 
     * DefaultProviderDefinition.
     */
    public static final String CACHE_LEVEL_SYSTEM_STR  = "system";
    public static final String CACHE_LEVEL_USER_STR    = "user";
    public static final String CACHE_LEVEL_SESSION_STR = "session";

    /**
     * The possible values stored for the cacheLevel property.
     */
    public static final int CACHE_LEVEL_UNSPECIFIED = -1;
    public static final int CACHE_LEVEL_SYSTEM      = 0;
    public static final int CACHE_LEVEL_USER        = 1;
    public static final int CACHE_LEVEL_SESSION     = 2;

    /**
     * The possible values stored for the rewriteUrls property.
     */
    public static final int REWRITE_URLS_UNSPECIFIED = -1;
    public static final int REWRITE_URLS_FALSE       = 0;
    public static final int REWRITE_URLS_TRUE        = 1;

}
