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

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

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 187635 2004-09-29 20:31:35Z jford $
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  String description
          Description
private  long id
          Unique id of the application.
private  PortletDefinitionListImpl listWrapper
           
private  Collection metadataFields
          Metadata property
private  String name
          Holds value of property name.
private  Collection portlets
           
private  Collection services
          Metadata property
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
LOCAL, PREFS_ROOT, WEBAPP
 
Constructor Summary
PortletApplicationDefinitionImpl()
          Creates a new instance of BaseApplication
 
Method Summary
 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()
           
 String getDescription()
           
 org.apache.pluto.om.common.ObjectID getId()
          Getter for the applicationId
 Collection getJetspeedServices()
           
 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 getUserAttributeRefs()
           
 Collection getUserAttributes()
           
 String getVersion()
           
 org.apache.pluto.om.servlet.WebApplicationDefinition getWebApplicationDefinition()
           
 void postLoad(Object parameter)
           
 void setApplicationIdentifier(String applicationIdentifier)
           
 void setApplicationType(int type)
           
 void setChecksum(long checksum)
           
 void setDescription(String string)
           
 void setId(String objectID)
           
 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.


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 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
Constructor Detail

PortletApplicationDefinitionImpl

public PortletApplicationDefinitionImpl()
Creates a new instance of BaseApplication

Method Detail

getId

public org.apache.pluto.om.common.ObjectID getId()
Getter for the applicationId

Specified by:
getId in interface org.apache.pluto.om.portlet.PortletApplicationDefinition
Returns:
applicationId
See Also:
#applicationId

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 -

setId

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

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)

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


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