com.arsdigita.portal
Class PortletType

java.lang.Object
  extended bycom.arsdigita.domain.DomainObject
      extended bycom.arsdigita.kernel.ResourceType
          extended bycom.arsdigita.portal.PortletType
Direct Known Subclasses:
AppPortletType

public class PortletType
extends ResourceType

Author:
Justin Ross

Field Summary
static String BASE_DATA_OBJECT_TYPE
           
static String NARROW_PROFILE
           
static String WIDE_PROFILE
           
 
Fields inherited from class com.arsdigita.kernel.ResourceType
s_defaultConfig, versionId
 
Constructor Summary
protected PortletType(DataObject dataObject)
           
protected PortletType(String dataObjectType, String title, String profile, String portletObjectType)
           
 
Method Summary
static PortletType createPortletType(String title, String profile, String portletObjectType)
           
protected  String getBaseDataObjectType()
          Returns the base data object type for this domain object class.
 String getProfile()
           
 ApplicationType getProviderApplicationType()
           
 boolean hasEmbeddedView()
           
 boolean hasFullPageView()
           
static PortletTypeCollection retrieveAllPortletTypes()
           
static PortletType retrievePortletType(BigDecimal id)
           
static PortletType retrievePortletType(DataObject dataObject)
           
static PortletType retrievePortletType(OID oid)
           
static PortletType retrievePortletTypeForPortlet(String portletObjectType)
           
protected  void setEmbeddedView(boolean hasEmbeddedView)
           
protected  void setFullPageView(boolean hasFullPageView)
           
protected  void setProfile(String profile)
           
 void setProviderApplicationType(ApplicationType applicationType)
           
 void setProviderApplicationType(String applicationObjectType)
           
 
Methods inherited from class com.arsdigita.kernel.ResourceType
addRelevantPrivilege, addRelevantPrivilege, createResourceType, getConfig, getConfigs, getCreateComponent, getCreateFormSection, getDescription, getID, getModifyComponent, getModifyFormSection, getRelevantPrivileges, getResourceObjectType, getTitle, hasConfig, isInstalled, registerResourceTypeConfig, removeRelevantPrivilege, removeRelevantPrivilege, retrieveAllResourceTypes, retrieveResourceType, retrieveResourceType, retrieveResourceType, retrieveResourceTypeForResource, setDescription, setResourceObjectType, setTitle
 
Methods inherited from class com.arsdigita.domain.DomainObject
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, beforeSave, clear, delete, disconnect, equals, get, getObjectType, getOID, getSession, hashCode, initialize, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BASE_DATA_OBJECT_TYPE

public static final String BASE_DATA_OBJECT_TYPE
See Also:
Constant Field Values

WIDE_PROFILE

public static final String WIDE_PROFILE
See Also:
Constant Field Values

NARROW_PROFILE

public static final String NARROW_PROFILE
See Also:
Constant Field Values
Constructor Detail

PortletType

protected PortletType(DataObject dataObject)

PortletType

protected PortletType(String dataObjectType,
                      String title,
                      String profile,
                      String portletObjectType)
Method Detail

getBaseDataObjectType

protected String getBaseDataObjectType()
Description copied from class: DomainObject
Returns the base data object type for this domain object class. Intended to be overrided by subclasses whenever the subclass will only work if their primary data object is of a certain base type.

Overrides:
getBaseDataObjectType in class ResourceType

createPortletType

public static PortletType createPortletType(String title,
                                            String profile,
                                            String portletObjectType)

retrievePortletType

public static PortletType retrievePortletType(BigDecimal id)

retrievePortletType

public static PortletType retrievePortletType(OID oid)

retrievePortletType

public static PortletType retrievePortletType(DataObject dataObject)

retrievePortletTypeForPortlet

public static PortletType retrievePortletTypeForPortlet(String portletObjectType)

retrieveAllPortletTypes

public static PortletTypeCollection retrieveAllPortletTypes()

setProviderApplicationType

public void setProviderApplicationType(ApplicationType applicationType)

setProviderApplicationType

public void setProviderApplicationType(String applicationObjectType)

getProviderApplicationType

public ApplicationType getProviderApplicationType()

hasFullPageView

public boolean hasFullPageView()

setFullPageView

protected void setFullPageView(boolean hasFullPageView)

hasEmbeddedView

public boolean hasEmbeddedView()

setEmbeddedView

protected void setEmbeddedView(boolean hasEmbeddedView)

getProfile

public String getProfile()

setProfile

protected void setProfile(String profile)


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC