com.sap.portal.pcm.layout

Interface ILayout

All Superinterfaces:
IAttributes, IAttributeSet, IMutableAttributes

public interface ILayout
extends IAttributeSet

The semantic aspect of a layout object. Defines the layout 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);
  ILayout layout = (ILayout)iCtx.lookup(name);
}
catch (NamingException e)
{
  // ...
}

See Also:
IPage, ILayouts, IAttrLayout

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
 String getContainerID(String containerName)
          Get the container Id by the container name (as defined in the JSP).
 String[] getContaineriViews(String containerID)
          Get all iViews/pages of the container by their names.
 String[] getContainersIDs()
          Get all layout-containers Ids.
 boolean isRestricted()
          Indicated whether the Layout has a restricted container.
 void setiViewInContainer(String objName, String containerId)
          Set an iView/page object in a specified container.
 void setiViewInContainer(String objName, String containerId, int position)
          Set an iView/page object in a specified container, on a specific position.
 void unassignAlliViews()
          Remove all the iViews/pages from their containers.
 void unassigniView(String objName)
          Remove an iView/page object from its container.
 
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

getContainerID

String getContainerID(String containerName)
Get the container Id by the container name (as defined in the JSP).

Parameters:
containerName - the name of the container
Returns:
String- the container Id

getContainersIDs

String[] getContainersIDs()
Get all layout-containers Ids.

Returns:
ArrayList- the containers Ids.

getContaineriViews

String[] getContaineriViews(String containerID)
Get all iViews/pages of the container by their names.

Parameters:
containerID - the Id of the container
Returns:
String [] - list of iView/page names (relative to the page)

setiViewInContainer

void setiViewInContainer(String objName,
                         String containerId)
Set an iView/page object in a specified container.
If the object already exists in another container, it will be moved.

Parameters:
objName - the iView/page name (relative to the page)
containerId - the container Id

setiViewInContainer

void setiViewInContainer(String objName,
                         String containerId,
                         int position)
Set an iView/page object in a specified container, on a specific position.
If the object already exists in another container, it will be moved.
If the position is not valid, the object will be put in the first available position.

Parameters:
objName - the iView/page name (relative to the page)
containerId - the container Id
position - position in the container

unassigniView

void unassigniView(String objName)
Remove an iView/page object from its container.

Parameters:
objName - the iView/page name (relative to the page)

unassignAlliViews

void unassignAlliViews()
Remove all the iViews/pages from their containers.


isRestricted

boolean isRestricted()
Indicated whether the Layout has a restricted container.

Access Rights

This class can be accessed from:


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


Copyright 2015 SAP AG Complete Copyright Notice