|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | 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| Method Summary | |
void |
addiView(INewObjectDescriptor descriptor,
String atomicName)
Add an iView/page object to the page. |
void |
addiView(INewObjectDescriptor descriptor,
String atomicName,
String layoutContainer)
Add a new iView / page object to the page, into a specific layout-container. |
void |
addLayout(INewObjectDescriptor descriptor,
String atomicName)
Add a layout to the page. |
ILayout |
getActiveLayoutObject()
Get the active layout of the page |
NamingEnumeration |
getiViews()
Get all iView / page objects under the page. |
NamingEnumeration |
getLayouts()
Get all layout objects under the page. |
String |
getValidChildName(String atomicName)
Check if an offered name does not exist under the page. |
void |
removeiView(String atomicName)
Remove an iView / page object from the page. |
void |
removeLayout(String layoutAtomicName)
Remove layout from the page. |
void |
setActiveLayout(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 |
| Method Detail |
public void setActiveLayout(String atomicName)
IAttributeSet#save
getActiveLayoutObject()public ILayout getActiveLayoutObject()
setActiveLayout(String atomicName)
public NamingEnumeration getLayouts()
throws 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:
NamingException - if a JNDI naming exception is encountered
public void addLayout(INewObjectDescriptor descriptor,
String atomicName)
throws OperationFailedException
descriptor - describes how to create the new object
OperationFailedException - if the addition failed.
public void removeLayout(String layoutAtomicName)
throws OperationFailedException
layoutAtomicName - the name of the object to remove, relative to the page.
OperationFailedException - if the removal failed.
public NamingEnumeration getiViews()
throws 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:
NamingException - if a JNDI naming exception is encountered
public void addiView(INewObjectDescriptor descriptor,
String atomicName,
String layoutContainer)
throws 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 container
OperationFailedException - if the addition failed.
public void addiView(INewObjectDescriptor descriptor,
String atomicName)
throws OperationFailedException
descriptor - describes how to create the new objectatomicName - the new name (relative to the page)
OperationFailedException - if the addition failed.
public void removeiView(String atomicName)
throws OperationFailedException
atomicName - the name of the object to remove (relative to the page).
OperationFailedException - if the removal failed.public String getValidChildName(String atomicName)
atomicName - the offered name
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||