|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
"Views" are deep copy immutable objects. Unlike "Definitions" and "Instances" Views cannot be modified by the developer. A Instance or a Definition however can always be obtained from the view. The persistence APIs provides course grain and fine grain getters but only fine grain setters. If you are interested in an object and all its children then retrieve the View, if you are only interested in the immediate object and don't care about its children then retrieve the Definition.
View class for markup. Most resources in the portal framework have markup. Markup is a snippet of tokenized XML. Each resource has a begin XML and an end XML. Child resource's markup make up the markup between the begin and end. The tokens in the XML (example: $(title)) are replaced by values in the database colums when reassembled.
View
Field Summary | |
static String |
BOOK_TYPE
Constant for book markup. |
static String |
DESKTOP_TYPE
Constant for desktop markup. |
static String |
LAYOUT_TYPE
Constant for layout markup. |
static String |
LOOK_AND_FEEL_TYPE
Constant for look-and-feel markup. |
static String |
MENU_TYPE
Constant for menu markup. |
static String |
PAGE_TYPE
Constant for page markup. |
static String |
PLACEHOLDER_TYPE
Constant for placeholder markup. |
static String |
PORTLET_TYPE
Constant for portlet markup. |
static String |
SHELL_TYPE
Constant for shell markup. |
static String |
THEME_TYPE
Constant for theme markup. |
Method Summary | |
String |
getBeginXml()
Get the beginning XML fragment. |
String |
getEndXml()
Get the end XML fragment. |
MarkupDefinition |
getMarkupDefinition()
Retrieve the associated MarkupDefinition from this Markup View. |
MarkupDefinitionId |
getMarkupDefinitionId()
Getter for markup definition id. |
String |
getMarkupFile()
Get the name of the file where this markup lives. |
String |
getName()
Getter for the unique markup name. |
String |
getType()
The type of markup: Possible values: MarkupView.BOOK_TYPE MarkupView.PAGE_TYPE MarkupView.PLACEHOLDER_TYPE MarkupView.LAYOUT_TYPE MarkupView.PORTLET_TYPE MarkupView.SHELL_TYPE MarkupView.LOOK_AND_FEEL_TYPE MarkupView.THEME_TYPE MarkupView.DESKTOP_TYPE MarkupView.MENU_TYPE |
String |
getWebAppName()
Return the name of the webapp that this markup is associated with. |
Field Detail |
public static final String BOOK_TYPE
public static final String DESKTOP_TYPE
public static final String LAYOUT_TYPE
public static final String LOOK_AND_FEEL_TYPE
public static final String MENU_TYPE
public static final String PAGE_TYPE
public static final String PLACEHOLDER_TYPE
public static final String PORTLET_TYPE
public static final String SHELL_TYPE
public static final String THEME_TYPE
Method Detail |
public String getBeginXml()
beginXml
and endXml
will prepend/append the XML for any children of the View
that owns this MarkupView
public String getEndXml()
beginXml
and endXml
will prepend/append the XML for any children of the View
that owns this MarkupView
public MarkupDefinition getMarkupDefinition()
Retrieve the associated MarkupDefinition
from this Markup View. Markup Views are immutable but
Definitions are not. Therefore it is often necessary to retrieve the definition from the view in
order to update its values and then in turn call the persistence API. Most of the Markup Definitions (in the database)
are constructed and updated via "dot" files. If you create a new "dot" file then a new Markup Definition is created in the
database. If you edit the file the changes are automatically seen in the database. (during dev time we poll
the file system and in production we update the database whenever the webapp is redeployed.
public MarkupDefinitionId getMarkupDefinitionId()
Getter for markup definition id. The markup definition id is the primary key value for the definition in the PF_MARKUP_DEFINITION table.
public String getMarkupFile()
public String getName()
public String getType()
public String getWebAppName()
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |