|
SAP NetWeaver 7.30 Enterprise Portal (SP03) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPage
The interface that represents the semantic aspect of a page object.
IPage contains methods for manipulating a page object and its
attributes.
An IPage object can be retrieved by JNDI lookup, as follows:
String name = "pcd:portal_content/myFolder/stocks";
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
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| Field Summary |
|---|
| Fields inherited from interface com.sap.portal.pcm.IAttributes |
|---|
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,
String atomicName)
Adds a new iView/page object to the page. |
void |
addiView(com.sap.portal.pcm.INewObjectDescriptor descriptor,
String atomicName,
String layoutContainer)
Adds a new iView/page object to the page and places it in the specified layout container. |
void |
addiView(com.sap.portal.pcm.INewObjectDescriptor descriptor,
String atomicName,
String layoutContainer,
int position)
Adds a new iView/page object to the page and places it at a specified position in the specified layout container. |
void |
addLayout(com.sap.portal.pcm.INewObjectDescriptor descriptor,
String atomicName)
Adds a layout to the page. |
ILayout |
getActiveLayoutObject()
Gets the active layout of the page. |
IApplicationPage |
getApplicationPage()
Returns an IApplicationPage in case isApplicationPage() returns true, null otherwise. |
NamingEnumeration |
getiViews()
Gets all iView/page objects on the page. |
NamingEnumeration |
getLayouts()
|
String |
getValidChildName(String atomicName)
Checks if an iView/page object with the specified name exists on the page. |
boolean |
isApplicationPage()
Indicates whether this page is an application page |
boolean |
isLockedPage()
Indicates whether this page is locked |
void |
removeiView(String atomicName)
Removes an iView/page object from the page. |
void |
removeLayout(String layoutAtomicName)
Removes a layout from the page. |
void |
setActiveLayout(String atomicName)
Sets the active layout for the page. |
| Methods inherited from interface com.sap.portal.pcm.iview.IiView |
|---|
addRelatedItem, getApplicationContextURL, getModifications, getRelatedItems, removeRelatedItem, setRelatedItemActive |
| Methods inherited from interface com.sap.portal.pcm.admin.IAttributeSet |
|---|
save, validate |
| Methods inherited from interface com.sap.portal.pcm.IMutableAttributes |
|---|
deleteAttribute, deleteMetaAttribute, putAttribute, putAttribute, putMetaAttribute, putMetaAttribute |
| Methods inherited from interface com.sap.portal.pcm.IAttributes |
|---|
getAttribute, getAttribute, getAttributeIds, getAttributeType, getAvailableAttributeLocales, getAvailableMetaAttributeLocales, getMetaAttribute, getMetaAttribute, getMetaAttributeIds, getMetaAttributeType |
| Method Detail |
|---|
void setActiveLayout(String atomicName)
IAttributeSet#save.
atomicName - the atomic name of the layoutILayout getActiveLayoutObject()
NamingEnumeration getLayouts()
throws NamingException
NamingException
void addLayout(com.sap.portal.pcm.INewObjectDescriptor descriptor,
String atomicName)
throws com.sap.portal.pcm.OperationFailedException
descriptor - describes how to create the new layout objectatomicName - the atomic name for the new layout
com.sap.portal.pcm.OperationFailedException - if the operation fails
void removeLayout(String layoutAtomicName)
throws com.sap.portal.pcm.OperationFailedException
layoutAtomicName - the atomic name of the layout to remove
com.sap.portal.pcm.OperationFailedException - if the operation fails
NamingEnumeration getiViews()
throws NamingException
javax.naming.Binding.
Enumeration en = page.getiViews();
while (en.hasMoreElements())
{
Binding bind = (Binding)en.nextElement();
Object obj = bind.getObject();
if (obj instanceof IPage)
{
// ...
}
if (obj instanceof IiView)
{
// ...
}
}
NamingException - if a JNDI naming exception is encountered
void addiView(com.sap.portal.pcm.INewObjectDescriptor descriptor,
String atomicName,
String layoutContainer)
throws com.sap.portal.pcm.OperationFailedException
descriptor - describes how to create the new objectatomicName - the atomic name of the new objectlayoutContainer - the container ID in which to place the object
(null for the default container)
com.sap.portal.pcm.OperationFailedException - if an iView with the same
atomic name exists on the page
void addiView(com.sap.portal.pcm.INewObjectDescriptor descriptor,
String atomicName,
String layoutContainer,
int position)
throws com.sap.portal.pcm.OperationFailedException
descriptor - describes how to create the new objectatomicName - the atomic name of the new objectlayoutContainer - the container ID in which to place the object
(null for the default container)position - the position in the container
com.sap.portal.pcm.OperationFailedException - if an iView with the same
atomic name exists on the page
void addiView(com.sap.portal.pcm.INewObjectDescriptor descriptor,
String atomicName)
throws com.sap.portal.pcm.OperationFailedException
descriptor - describes how to create the new objectatomicName - the atomic name of the new object
com.sap.portal.pcm.OperationFailedException - if an iView with the same atomic name exists in the page
void removeiView(String atomicName)
throws com.sap.portal.pcm.OperationFailedException
atomicName - the atomic name of the object to remove
com.sap.portal.pcm.OperationFailedException - if the operation fails.String getValidChildName(String atomicName)
atomicName - the name to check
null if no iView/page with the
specified name was found on the page)boolean isApplicationPage()
IApplicationPage getApplicationPage()
boolean isLockedPage()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/semantics/api
|
api
|
EP-PIN
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.30 Enterprise Portal (SP03) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||