com.sapportals.wcm.control.base

Class HabitatStack

java.lang.Object
  extended by com.sapportals.wcm.control.base.HabitatStack

Deprecated. As of NetWeaver 7.1

public final class HabitatStack
extends Object

Since:
EP6, SP2_CP a simple stack implementation that holds a limited size of Habitat instances. The class using this stack is responsible for the logic when a habitat is pushed onto the stack or popped from it. The stack will not check for duplicates, so there could be several habitats stacked on each other, all pointing to the same RID/StartRID combination.

Nested Class Summary
static interface HabitatStack.IPopStack
          Deprecated. As of NetWeaver 7.1
 
Constructor Summary
HabitatStack()
          Deprecated. As of NetWeaver 7.1
 
Method Summary
static int getMaxSize()
          Deprecated. As of NetWeaver 7.1
 boolean hasMore()
          Deprecated. As of NetWeaver 7.1
 Habitat peek()
          Deprecated. As of NetWeaver 7.1
 Habitat pop()
          Deprecated. As of NetWeaver 7.1
 void push(Habitat habitat)
          Deprecated. As of NetWeaver 7.1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HabitatStack

public HabitatStack()
Deprecated. As of NetWeaver 7.1

Method Detail

getMaxSize

public static int getMaxSize()
Deprecated. As of NetWeaver 7.1


push

public void push(Habitat habitat)
Deprecated. As of NetWeaver 7.1

Parameters:
habitat - the habitat to put on top of the stack. If the habitat has already reached its maximum number of entries, the oldest entry will be removed from the stack. This frees space for the habitat given as parameter. The parameter must not be null

pop

public Habitat pop()
Deprecated. As of NetWeaver 7.1

Returns:
the last Habitat that has been added to this stack using the push method and not yet removed. If no habitat is available on the stack, the method will return null. If at least one is available on the stack, this instance will be removed from the stack and returned by this method.

peek

public Habitat peek()
Deprecated. As of NetWeaver 7.1

Returns:
the uppermost Habitat on the stack, or null, if no habitat is on the stack. Will not remove a habitat from the stack

hasMore

public boolean hasMore()
Deprecated. As of NetWeaver 7.1

Returns:
flag, stating, if there are instances available on the stack
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-CM [sap.com] tc/km/nonwduideprecated api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice