org.apache.jetspeed.om.portlet.impl
Class PortletApplicationDefinitionImpl

java.lang.Object
  extended by org.apache.jetspeed.om.portlet.impl.PortletApplicationDefinitionImpl
All Implemented Interfaces:
Serializable, org.apache.jetspeed.om.common.portlet.MutablePortletApplication, org.apache.jetspeed.om.common.portlet.PortletApplication, org.apache.jetspeed.om.common.Support, org.apache.pluto.om.Model, org.apache.pluto.om.portlet.PortletApplicationDefinition

public class PortletApplicationDefinitionImpl
extends Object
implements org.apache.jetspeed.om.common.portlet.MutablePortletApplication, Serializable, org.apache.jetspeed.om.common.Support

Since:
1.0
Version:
$Id: PortletApplicationDefinitionImpl.java 553014 2007-07-03 23:10:53Z ate $
Author:
Paul Spencer, Scott T. Weaver
See Also:
Serialized Form

Field Summary
private  String applicationIdentifier
          Holds the optional application identifier from the portlet.xml
private  int applicationType
           
private  String checksum
           
private  long checksumLong
           
private  List customPortletModes
           
private  List customWindowStates
           
private  String description
          Description
private  Long id
          Unique id of the application.
private  String jetspeedSecurityConstraint
           
private  PortletDefinitionListImpl listWrapper
           
private  Map mappedCustomModes
           
private  Map mappedCustomStates
           
private  Collection metadataFields
          Metadata property
private  String name
          Holds value of property name.
private  org.apache.jetspeed.util.JetspeedLongObjectID oid
           
private  Collection portlets
           
private  Collection services
          Metadata property
private  Map supportedCustomModes
           
private  Map supportedCustomStates
           
private  Collection supportedPortletModes
           
private  Collection supportedWindowStates
           
private  Collection userAttributeRefs
          User attribute refs collection.
private  Collection userAttributes
          User attributes collection.
private  String version
          Holds value of property version.
private  org.apache.pluto.om.servlet.WebApplicationDefinition webApplication
          WebApplication property
protected  long webApplicationId
          PK of this Portlet Application's Web Application
 
Fields inherited from interface org.apache.jetspeed.om.common.portlet.MutablePortletApplication
INTERNAL, LOCAL, PREFS_ROOT, WEBAPP
 
Constructor Summary
PortletApplicationDefinitionImpl()
          Creates a new instance of BaseApplication
 
Method Summary
 void addCustomPortletMode(org.apache.jetspeed.om.common.portlet.CustomPortletMode customPortletMode)
           
 void addCustomWindowState(org.apache.jetspeed.om.common.portlet.CustomWindowState customWindowState)
           
 void addJetspeedService(org.apache.jetspeed.om.common.JetspeedServiceReference service)
           
 void addPortletDefinition(org.apache.pluto.om.portlet.PortletDefinition pd)
           
 void addUserAttribute(String userName, String description)
           
 void addUserAttribute(org.apache.jetspeed.om.common.UserAttribute userAttribute)
           
 void addUserAttributeRef(org.apache.jetspeed.om.common.UserAttributeRef userAttributeRef)
           
 String getApplicationIdentifier()
           
 int getApplicationType()
           
 long getChecksum()
           
 javax.portlet.PortletMode getCustomPortletMode(javax.portlet.PortletMode mode)
           
 Collection getCustomPortletModes()
           
 javax.portlet.WindowState getCustomWindowState(javax.portlet.WindowState state)
           
 Collection getCustomWindowStates()
           
 String getDescription()
           
 org.apache.pluto.om.common.ObjectID getId()
           
 String getJetspeedSecurityConstraint()
           
 Collection getJetspeedServices()
           
 javax.portlet.PortletMode getMappedPortletMode(javax.portlet.PortletMode mode)
           
 javax.portlet.WindowState getMappedWindowState(javax.portlet.WindowState state)
           
 org.apache.jetspeed.om.common.GenericMetadata getMetadata()
           
protected  Collection getMetadataFields()
           
 String getName()
           
 org.apache.pluto.om.portlet.PortletDefinition getPortletDefinitionByName(String name)
           
 org.apache.pluto.om.portlet.PortletDefinitionList getPortletDefinitionList()
           
 Collection getPortletDefinitions()
           
 Collection getSupportedPortletModes()
           
 Collection getSupportedWindowStates()
           
 Collection getUserAttributeRefs()
           
 Collection getUserAttributes()
           
 String getVersion()
           
 org.apache.pluto.om.servlet.WebApplicationDefinition getWebApplicationDefinition()
           
 boolean isLayoutApplication()
           
 void postLoad(Object parameter)
           
 void setApplicationIdentifier(String applicationIdentifier)
           
 void setApplicationType(int type)
           
 void setChecksum(long checksum)
           
 void setCustomPortletModes(Collection customPortletModes)
           
 void setCustomWindowStates(Collection customWindowStates)
           
 void setDescription(String string)
           
 void setJetspeedSecurityConstraint(String constraint)
           
 void setMetadata(org.apache.jetspeed.om.common.GenericMetadata metadata)
           
protected  void setMetadataFields(Collection metadataFields)
           
 void setName(String name)
           
 void setPortletDefinitionList(org.apache.pluto.om.portlet.PortletDefinitionList portlets)
           
 void setUserAttributeRefs(Collection userAttributeRefs)
           
 void setUserAttributes(Collection userAttributes)
           
 void setVersion(String version)
           
 void setWebApplicationDefinition(org.apache.pluto.om.servlet.WebApplicationDefinition wad)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private Long id
Unique id of the application. This serves as the primary key in database and in any caching of this object.


oid

private org.apache.jetspeed.util.JetspeedLongObjectID oid

name

private String name
Holds value of property name.


version

private String version
Holds value of property version.


applicationIdentifier

private String applicationIdentifier
Holds the optional application identifier from the portlet.xml


webApplication

private transient org.apache.pluto.om.servlet.WebApplicationDefinition webApplication
WebApplication property


webApplicationId

protected long webApplicationId
PK of this Portlet Application's Web Application


metadataFields

private Collection metadataFields
Metadata property


services

private Collection services
Metadata property


description

private String description
Description


portlets

private Collection portlets

userAttributeRefs

private Collection userAttributeRefs
User attribute refs collection.


userAttributes

private Collection userAttributes
User attributes collection.


listWrapper

private PortletDefinitionListImpl listWrapper

applicationType

private int applicationType

checksum

private String checksum

checksumLong

private long checksumLong

customPortletModes

private List customPortletModes

customWindowStates

private List customWindowStates

jetspeedSecurityConstraint

private String jetspeedSecurityConstraint

supportedCustomModes

private transient Map supportedCustomModes

supportedCustomStates

private transient Map supportedCustomStates

mappedCustomModes

private transient Map mappedCustomModes

mappedCustomStates

private transient Map mappedCustomStates

supportedPortletModes

private transient Collection supportedPortletModes

supportedWindowStates

private transient Collection supportedWindowStates
Constructor Detail

PortletApplicationDefinitionImpl

public PortletApplicationDefinitionImpl()
Creates a new instance of BaseApplication

Method Detail

getId

public org.apache.pluto.om.common.ObjectID getId()
Specified by:
getId in interface org.apache.pluto.om.portlet.PortletApplicationDefinition
See Also:
PortletApplicationDefinition.getId()

getName

public String getName()
Specified by:
getName in interface org.apache.jetspeed.om.common.portlet.PortletApplication
See Also:
org.apache.jetspeed.om.common.Application#getName()

setName

public void setName(String name)
Specified by:
setName in interface org.apache.jetspeed.om.common.portlet.MutablePortletApplication
See Also:
org.apache.jetspeed.om.common.Application#setName(String)

getVersion

public String getVersion()
Specified by:
getVersion in interface org.apache.pluto.om.portlet.PortletApplicationDefinition
See Also:
org.apache.jetspeed.om.common.Application#getVersion()

setVersion

public void setVersion(String version)
Specified by:
setVersion in interface org.apache.jetspeed.om.common.portlet.MutablePortletApplication
See Also:
org.apache.jetspeed.om.common.Application#setVersion(String)

getWebApplicationDefinition

public org.apache.pluto.om.servlet.WebApplicationDefinition getWebApplicationDefinition()
Specified by:
getWebApplicationDefinition in interface org.apache.pluto.om.portlet.PortletApplicationDefinition
Returns:

getPortletDefinitionList

public org.apache.pluto.om.portlet.PortletDefinitionList getPortletDefinitionList()
Specified by:
getPortletDefinitionList in interface org.apache.pluto.om.portlet.PortletApplicationDefinition
See Also:
PortletApplicationDefinition.getPortletDefinitionList()

getDescription

public String getDescription()
Specified by:
getDescription in interface org.apache.jetspeed.om.common.portlet.PortletApplication
Returns:

setDescription

public void setDescription(String string)
Specified by:
setDescription in interface org.apache.jetspeed.om.common.portlet.MutablePortletApplication
Parameters:
string -

setWebApplicationDefinition

public void setWebApplicationDefinition(org.apache.pluto.om.servlet.WebApplicationDefinition wad)
Specified by:
setWebApplicationDefinition in interface org.apache.jetspeed.om.common.portlet.MutablePortletApplication
See Also:
MutablePortletApplication.setWebApplicationDefinition(org.apache.pluto.om.servlet.WebApplicationDefinition)

addPortletDefinition

public void addPortletDefinition(org.apache.pluto.om.portlet.PortletDefinition pd)
Specified by:
addPortletDefinition in interface org.apache.jetspeed.om.common.portlet.MutablePortletApplication
See Also:
MutablePortletApplication.addPortletDefinition(org.apache.pluto.om.portlet.PortletDefinition)

getPortletDefinitions

public Collection getPortletDefinitions()
Specified by:
getPortletDefinitions in interface org.apache.jetspeed.om.common.portlet.PortletApplication
See Also:
PortletApplication.getPortletDefinitions()

getPortletDefinitionByName

public org.apache.pluto.om.portlet.PortletDefinition getPortletDefinitionByName(String name)
Specified by:
getPortletDefinitionByName in interface org.apache.jetspeed.om.common.portlet.PortletApplication
See Also:
PortletApplication.getPortletDefinitionByName(java.lang.String)

setPortletDefinitionList

public void setPortletDefinitionList(org.apache.pluto.om.portlet.PortletDefinitionList portlets)
Specified by:
setPortletDefinitionList in interface org.apache.jetspeed.om.common.portlet.MutablePortletApplication
See Also:
MutablePortletApplication.setPortletDefinitionList(org.apache.pluto.om.portlet.PortletDefinitionList)

setUserAttributeRefs

public void setUserAttributeRefs(Collection userAttributeRefs)
Specified by:
setUserAttributeRefs in interface org.apache.jetspeed.om.common.portlet.MutablePortletApplication
See Also:
MutablePortletApplication.setUserAttributeRefs(java.util.Collection)

getUserAttributeRefs

public Collection getUserAttributeRefs()
Specified by:
getUserAttributeRefs in interface org.apache.jetspeed.om.common.portlet.PortletApplication
See Also:
PortletApplication.getUserAttributeRefs()

addUserAttributeRef

public void addUserAttributeRef(org.apache.jetspeed.om.common.UserAttributeRef userAttributeRef)
Specified by:
addUserAttributeRef in interface org.apache.jetspeed.om.common.portlet.MutablePortletApplication
See Also:
MutablePortletApplication.addUserAttributeRef(org.apache.jetspeed.om.common.UserAttributeRef)

addUserAttribute

public void addUserAttribute(org.apache.jetspeed.om.common.UserAttribute userAttribute)
Specified by:
addUserAttribute in interface org.apache.jetspeed.om.common.portlet.MutablePortletApplication
See Also:
MutablePortletApplication.addUserAttribute(org.apache.jetspeed.om.common.UserAttribute)

addUserAttribute

public void addUserAttribute(String userName,
                             String description)
Specified by:
addUserAttribute in interface org.apache.jetspeed.om.common.portlet.MutablePortletApplication
See Also:
MutablePortletApplication.addUserAttribute(java.lang.String, java.lang.String)

setUserAttributes

public void setUserAttributes(Collection userAttributes)
Specified by:
setUserAttributes in interface org.apache.jetspeed.om.common.portlet.MutablePortletApplication
See Also:
MutablePortletApplication.setUserAttributes(java.util.Collection)

getUserAttributes

public Collection getUserAttributes()
Specified by:
getUserAttributes in interface org.apache.jetspeed.om.common.portlet.PortletApplication
See Also:
PortletApplication.getUserAttributes()

setApplicationIdentifier

public void setApplicationIdentifier(String applicationIdentifier)
Specified by:
setApplicationIdentifier in interface org.apache.jetspeed.om.common.portlet.MutablePortletApplication
See Also:
MutablePortletApplication.setApplicationIdentifier(java.lang.String)

getApplicationIdentifier

public String getApplicationIdentifier()
Specified by:
getApplicationIdentifier in interface org.apache.jetspeed.om.common.portlet.PortletApplication
See Also:
PortletApplication.getApplicationIdentifier()

setApplicationType

public void setApplicationType(int type)
Specified by:
setApplicationType in interface org.apache.jetspeed.om.common.portlet.MutablePortletApplication
See Also:
MutablePortletApplication.setApplicationType(int)

getApplicationType

public int getApplicationType()
Specified by:
getApplicationType in interface org.apache.jetspeed.om.common.portlet.PortletApplication
See Also:
PortletApplication.getApplicationType()

getMetadata

public org.apache.jetspeed.om.common.GenericMetadata getMetadata()
Specified by:
getMetadata in interface org.apache.jetspeed.om.common.portlet.PortletApplication
See Also:
PortletApplication.getMetadata()

setMetadata

public void setMetadata(org.apache.jetspeed.om.common.GenericMetadata metadata)
Specified by:
setMetadata in interface org.apache.jetspeed.om.common.portlet.MutablePortletApplication
See Also:
MutablePortletApplication.setMetadata(org.apache.jetspeed.om.common.GenericMetadata)

getMetadataFields

protected Collection getMetadataFields()
Returns:

setMetadataFields

protected void setMetadataFields(Collection metadataFields)
Parameters:
collection -

getJetspeedServices

public Collection getJetspeedServices()
Specified by:
getJetspeedServices in interface org.apache.jetspeed.om.common.portlet.PortletApplication

addJetspeedService

public void addJetspeedService(org.apache.jetspeed.om.common.JetspeedServiceReference service)
Specified by:
addJetspeedService in interface org.apache.jetspeed.om.common.portlet.MutablePortletApplication

getChecksum

public long getChecksum()
Specified by:
getChecksum in interface org.apache.jetspeed.om.common.portlet.MutablePortletApplication

setChecksum

public void setChecksum(long checksum)
Specified by:
setChecksum in interface org.apache.jetspeed.om.common.portlet.MutablePortletApplication

postLoad

public void postLoad(Object parameter)
              throws Exception
Specified by:
postLoad in interface org.apache.jetspeed.om.common.Support
Throws:
Exception

getCustomPortletModes

public Collection getCustomPortletModes()
Specified by:
getCustomPortletModes in interface org.apache.jetspeed.om.common.portlet.PortletApplication

addCustomPortletMode

public void addCustomPortletMode(org.apache.jetspeed.om.common.portlet.CustomPortletMode customPortletMode)

setCustomPortletModes

public void setCustomPortletModes(Collection customPortletModes)

getMappedPortletMode

public javax.portlet.PortletMode getMappedPortletMode(javax.portlet.PortletMode mode)
Specified by:
getMappedPortletMode in interface org.apache.jetspeed.om.common.portlet.PortletApplication

getCustomPortletMode

public javax.portlet.PortletMode getCustomPortletMode(javax.portlet.PortletMode mode)
Specified by:
getCustomPortletMode in interface org.apache.jetspeed.om.common.portlet.PortletApplication

getSupportedPortletModes

public Collection getSupportedPortletModes()
Specified by:
getSupportedPortletModes in interface org.apache.jetspeed.om.common.portlet.PortletApplication

getCustomWindowStates

public Collection getCustomWindowStates()
Specified by:
getCustomWindowStates in interface org.apache.jetspeed.om.common.portlet.PortletApplication

addCustomWindowState

public void addCustomWindowState(org.apache.jetspeed.om.common.portlet.CustomWindowState customWindowState)

setCustomWindowStates

public void setCustomWindowStates(Collection customWindowStates)

getMappedWindowState

public javax.portlet.WindowState getMappedWindowState(javax.portlet.WindowState state)
Specified by:
getMappedWindowState in interface org.apache.jetspeed.om.common.portlet.PortletApplication

getCustomWindowState

public javax.portlet.WindowState getCustomWindowState(javax.portlet.WindowState state)
Specified by:
getCustomWindowState in interface org.apache.jetspeed.om.common.portlet.PortletApplication

getSupportedWindowStates

public Collection getSupportedWindowStates()
Specified by:
getSupportedWindowStates in interface org.apache.jetspeed.om.common.portlet.PortletApplication

getJetspeedSecurityConstraint

public String getJetspeedSecurityConstraint()
Specified by:
getJetspeedSecurityConstraint in interface org.apache.jetspeed.om.common.portlet.PortletApplication

setJetspeedSecurityConstraint

public void setJetspeedSecurityConstraint(String constraint)
Specified by:
setJetspeedSecurityConstraint in interface org.apache.jetspeed.om.common.portlet.MutablePortletApplication

isLayoutApplication

public boolean isLayoutApplication()
Specified by:
isLayoutApplication in interface org.apache.jetspeed.om.common.portlet.PortletApplication


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.