|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The semantic aspect of a page object. Defines the page object specific functionality.
Can be retreived by JNDI lookup:
Hashtable env = new Hashtable();
env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
env.put(Context.SECURITY_PRINCIPAL, user);
try
{
com.sapportals.portal.prt.jndisupport.InitialContext iCtx = new InitialContext(env);
IPage page = (IPage)iCtx.lookup(name);
}
catch (NamingException e)
{
// ...
}
ILayout,
IPages,
IAttrPage| Fields inherited from interface com.sap.portal.pcm.admin.IAttributeSet |
ADMINISTRATION, ATTRIBUTE_NOT_FOUND, DIALOG, DIALOG_READ_ONLY, NONDIALOG, NONE, PERSONALIZATION, STRING_ATTRIBUTE, TEXT_ATTRIBUTE |
| Method Summary | |
void |
addiView(com.sap.portal.pcm.INewObjectDescriptor descriptor,
java.lang.String atomicName)
Add an iView/page object to the page. |
void |
addiView(com.sap.portal.pcm.INewObjectDescriptor descriptor,
java.lang.String atomicName,
java.lang.String layoutContainer)
Add a new iView / page object to the page, into a specific layout-container. |
void |
addLayout(com.sap.portal.pcm.INewObjectDescriptor descriptor,
java.lang.String atomicName)
Add a layout to the page. |
ILayout |
getActiveLayoutObject()
Get the active layout of the page |
javax.naming.NamingEnumeration |
getiViews()
Get all iView / page objects under the page. |
javax.naming.NamingEnumeration |
getLayouts()
Get all layout objects under the page. |
java.lang.String |
getValidChildName(java.lang.String atomicName)
Check if an offered name does not exist under the page. |
void |
removeiView(java.lang.String atomicName)
Remove an iView / page object from the page. |
void |
removeLayout(java.lang.String layoutAtomicName)
Remove layout from the page. |
void |
setActiveLayout(java.lang.String atomicName)
Defines which of the available layouts is the active layout upon runtime. |
| Methods inherited from interface com.sap.portal.pcm.iview.IiView |
addRelatedItem, getRelatedItems, removeRelatedItem, setRelatedItemActive |
| Methods inherited from interface com.sap.portal.pcm.admin.IAttributeSet |
deleteAttribute, deleteMetaAttribute, getAttribute, getAttribute, getAttributeIds, getAttributeType, getAvailableAttributeLocales, getAvailableMetaAttributeLocales, getMetaAttribute, getMetaAttribute, getMetaAttributeIds, getMetaAttributeType, putAttribute, putAttribute, putMetaAttribute, putMetaAttribute, save, validate |
| Method Detail |
public void setActiveLayout(java.lang.String atomicName)
IAttributeSet#savename - the layout atomic name (relative to the page)getActiveLayoutObject()public ILayout getActiveLayoutObject()
setActiveLayout(String atomicName)
public javax.naming.NamingEnumeration getLayouts()
throws javax.naming.NamingException
Enumeration en = page.getLayouts();
while (en.hasMoreElements())
{
Binding bind = (Binding)en.nextElement();
Object obj = bind.getObject();
if (obj instanceof ILayout)
{
// a layout child
}
}- Throws:
javax.naming.NamingException - if a JNDI naming exception is encountered
public void addLayout(com.sap.portal.pcm.INewObjectDescriptor descriptor,
java.lang.String atomicName)
throws com.sap.portal.pcm.OperationFailedException
descriptor - describes how to create the new objectname - the layout new name (relative to the page)com.sap.portal.pcm.OperationFailedException - if the addition failed.
public void removeLayout(java.lang.String layoutAtomicName)
throws com.sap.portal.pcm.OperationFailedException
layoutAtomicName - the name of the object to remove, relative to the page.com.sap.portal.pcm.OperationFailedException - if the removal failed.
public javax.naming.NamingEnumeration getiViews()
throws javax.naming.NamingException
Enumeration en = page.getiViews();
while (en.hasMoreElements())
{
Binding bind = (Binding)en.nextElement();
Object obj = bind.getObject();
if (obj instanceof IPage)
{
// a page child
}
if (obj instanceof IiView)
{
// an iView child
}
}- Throws:
javax.naming.NamingException - if a JNDI naming exception is encountered
public void addiView(com.sap.portal.pcm.INewObjectDescriptor descriptor,
java.lang.String atomicName,
java.lang.String layoutContainer)
throws com.sap.portal.pcm.OperationFailedException
descriptor - describes how to create the new objectatomicName - the new object name (relative to the page)layoutContainer - the layout-container to put the object in. null for default containercom.sap.portal.pcm.OperationFailedException - if the addition failed.
public void addiView(com.sap.portal.pcm.INewObjectDescriptor descriptor,
java.lang.String atomicName)
throws com.sap.portal.pcm.OperationFailedException
descriptor - describes how to create the new objectatomicName - the new name (relative to the page)com.sap.portal.pcm.OperationFailedException - if the addition failed.
public void removeiView(java.lang.String atomicName)
throws com.sap.portal.pcm.OperationFailedException
atomicName - the name of the object to remove (relative to the page).com.sap.portal.pcm.OperationFailedException - if the removal failed.public java.lang.String getValidChildName(java.lang.String atomicName)
atomicName - the offered name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||