org.apache.jetspeed.portal.portlets.admin
Class JetspeedContentAdmin

java.lang.Object
  extended byorg.apache.jetspeed.portal.portlets.AbstractPortlet
      extended byorg.apache.jetspeed.portal.portlets.admin.JetspeedContentAdmin
All Implemented Interfaces:
Cacheable, Portlet, PortletState, org.apache.turbine.services.cache.Refreshable, java.io.Serializable

public class JetspeedContentAdmin
extends AbstractPortlet

Handles enumerating Portlets that are also applications

Version:
$Id: JetspeedContentAdmin.java,v 1.28 2004/02/23 03:26:19 jford Exp $
Author:
Kevin A. Burton
See Also:
Serialized Form

Field Summary
static java.lang.String POST_ARTICLE
           
static java.lang.String PROVIDER_NAME_KEY
          Used as the provider name key
 
Fields inherited from interface org.apache.jetspeed.portal.Portlet
PORTLET_MAXIMIZED, PORTLET_MINIMIZED, PORTLET_NORMAL
 
Constructor Summary
JetspeedContentAdmin()
           
 
Method Summary
 boolean getAllowEdit(org.apache.turbine.util.RunData rundata)
          Is the portled editable/customizeable.
 boolean getAllowMaximize(org.apache.turbine.util.RunData rundata)
          Can this portlet be maximized
 org.apache.ecs.ConcreteElement getContent(org.apache.turbine.util.RunData rundata)
          Get the content for this JCP Admin
 org.apache.jetspeed.portal.portlets.admin.ContentMarkup getContentMarkup(java.lang.String url)
          Get the jetspeed content from disk.
 org.apache.ecs.ConcreteElement getProviders(org.apache.turbine.util.RunData rundata)
          Get a list of providers an provide a form for them.
 java.lang.String getURL(java.lang.String provider)
           
 void init()
          Init this
 org.apache.ecs.ConcreteElement postArticle(java.lang.String provider, org.apache.turbine.util.RunData rundata)
           
 
Methods inherited from class org.apache.jetspeed.portal.portlets.AbstractPortlet
allowClose, allowCustomize, allowInfo, allowMaximize, allowMinimize, allowPrintFriendly, allowView, clearContent, getAllowView, getAttribute, getContent, getContent, getCreationTime, getDescription, getDescription, getExpirationMillis, getExpire, getHandle, getHandle, getID, getImage, getImage, getInstance, getName, getPortletConfig, getTitle, getTitle, isCacheable, isClosed, isMinimized, isShowTitleBar, providesCustomization, refresh, setAttribute, setCacheable, setCachedObject, setClosed, setContent, setContent, setContent, setCreationTime, setDescription, setExpirationMillis, setHandle, setID, setImage, setMinimized, setName, setPortletConfig, setTitle, setTitle, supportsType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROVIDER_NAME_KEY

public static final java.lang.String PROVIDER_NAME_KEY
Used as the provider name key

See Also:
Constant Field Values

POST_ARTICLE

public static final java.lang.String POST_ARTICLE
See Also:
Constant Field Values
Constructor Detail

JetspeedContentAdmin

public JetspeedContentAdmin()
Method Detail

getContent

public org.apache.ecs.ConcreteElement getContent(org.apache.turbine.util.RunData rundata)
Get the content for this JCP Admin

Specified by:
getContent in interface Portlet
Overrides:
getContent in class AbstractPortlet
Parameters:
rundata - The RunData object for the current request

getURL

public java.lang.String getURL(java.lang.String provider)

postArticle

public org.apache.ecs.ConcreteElement postArticle(java.lang.String provider,
                                                  org.apache.turbine.util.RunData rundata)

getProviders

public org.apache.ecs.ConcreteElement getProviders(org.apache.turbine.util.RunData rundata)
Get a list of providers an provide a form for them.


getContentMarkup

public org.apache.jetspeed.portal.portlets.admin.ContentMarkup getContentMarkup(java.lang.String url)
                                                                         throws java.lang.Exception
Get the jetspeed content from disk.

Throws:
java.lang.Exception

init

public void init()
          throws PortletException
Init this

Specified by:
init in interface Portlet
Overrides:
init in class AbstractPortlet
Throws:
PortletException

getAllowEdit

public boolean getAllowEdit(org.apache.turbine.util.RunData rundata)
Description copied from class: AbstractPortlet
Is the portled editable/customizeable.

Specified by:
getAllowEdit in interface Portlet
Overrides:
getAllowEdit in class AbstractPortlet
Parameters:
rundata - The RunData object for the current request
Returns:
true Editing is allow false Editing is NOT alowed

getAllowMaximize

public boolean getAllowMaximize(org.apache.turbine.util.RunData rundata)
Description copied from class: AbstractPortlet
Can this portlet be maximized

Specified by:
getAllowMaximize in interface Portlet
Overrides:
getAllowMaximize in class AbstractPortlet
Parameters:
rundata - The RunData object for the current request
Returns:
true Portlet can be maximized
false Portlet can NOT be maximized


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.