com.bea.netuix.servicelevel
Interface ServiceLevelManager


public interface ServiceLevelManager

Interface for ServiceLevelManagers which provide access to settings for individual Portlet service levels, such as suspending, limiting or restoring to active state.


Method Summary
 Collection<PortletServiceLevelDescription> getAllServiceLevels()
           
 PortletServiceLevel getServiceLevelForDefinitionId(String definitionId)
           
 PortletServiceLevel getServiceLevelForDefinitionLabel(String definitionLabel)
           
 PortletServiceLevel getServiceLevelForInstanceId(String instanceId)
           
 PortletServiceLevel getServiceLevelForInstanceLabel(String instanceLabel)
           
 boolean hasDefinedServiceLevels()
          Used to quickly determine if any PortletServiceLevels have been set for this instance of a ServiceLevelManager.
 void setServiceLevelForDefinitionId(PortletServiceLevel serviceLevel, String definitionId)
           
 void setServiceLevelForDefinitionLabel(PortletServiceLevel serviceLevel, String definitionLabel)
           
 void setServiceLevelForInstanceId(PortletServiceLevel serviceLevel, String instanceId)
           
 void setServiceLevelForInstanceLabel(PortletServiceLevel serviceLevel, String instanceLabel)
           
 

Method Detail

getServiceLevelForDefinitionLabel

PortletServiceLevel getServiceLevelForDefinitionLabel(String definitionLabel)

getServiceLevelForInstanceLabel

PortletServiceLevel getServiceLevelForInstanceLabel(String instanceLabel)

getServiceLevelForDefinitionId

PortletServiceLevel getServiceLevelForDefinitionId(String definitionId)

getServiceLevelForInstanceId

PortletServiceLevel getServiceLevelForInstanceId(String instanceId)

setServiceLevelForDefinitionLabel

void setServiceLevelForDefinitionLabel(PortletServiceLevel serviceLevel,
                                       String definitionLabel)

setServiceLevelForInstanceLabel

void setServiceLevelForInstanceLabel(PortletServiceLevel serviceLevel,
                                     String instanceLabel)

setServiceLevelForDefinitionId

void setServiceLevelForDefinitionId(PortletServiceLevel serviceLevel,
                                    String definitionId)

setServiceLevelForInstanceId

void setServiceLevelForInstanceId(PortletServiceLevel serviceLevel,
                                  String instanceId)

getAllServiceLevels

Collection<PortletServiceLevelDescription> getAllServiceLevels()

hasDefinedServiceLevels

boolean hasDefinedServiceLevels()
Used to quickly determine if any PortletServiceLevels have been set for this instance of a ServiceLevelManager. This can be used to optimize access to the ServiceLevelManager in cases where many calls to getServiceLevelXXX would otherwise need to be called during a request.

Returns
true if there are defined ServiceLevels, false otherwise


Copyright © 2006 BEA Systems, Inc. All Rights Reserved