|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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()
Gets a Collection of PortletServiceLevelDescription objects, representing all the
Portlets in the scoped webapp that have non-active service levels. |
PortletServiceLevel |
getServiceLevelForDefinitionId(String definitionId)
Gets the current PortletServiceLevel for a particular Portlet, based on its definition id. |
PortletServiceLevel |
getServiceLevelForDefinitionLabel(String definitionLabel)
Gets the current PortletServiceLevel for a particular Portlet, based on its definition label. |
PortletServiceLevel |
getServiceLevelForInstanceId(String instanceId)
Gets the current PortletServiceLevel for a particular Portlet instance, based on its instance id. |
PortletServiceLevel |
getServiceLevelForInstanceLabel(String instanceLabel)
Gets the current PortletServiceLevel for a particular Portlet instance, based on its instance label. |
boolean |
hasDefinedServiceLevels()
Used to quickly determine if any PortletServiceLevels have been set for this
instance of a ServiceLevelManager . |
void |
setServiceLevelForDefinitionId(PortletServiceLevel serviceLevel,
String definitionId)
Sets a new PortletServiceLevel for a particular Portlet definition, based on its definition id. |
void |
setServiceLevelForDefinitionLabel(PortletServiceLevel serviceLevel,
String definitionLabel)
Sets a new PortletServiceLevel for a particular Portlet definition, based on its definition label. |
void |
setServiceLevelForInstanceId(PortletServiceLevel serviceLevel,
String instanceId)
Sets a new PortletServiceLevel for a particular Portlet instance, based on its instance id. |
void |
setServiceLevelForInstanceLabel(PortletServiceLevel serviceLevel,
String instanceLabel)
Sets a new PortletServiceLevel for a particular Portlet instance, based on its instance label. |
Method Detail |
---|
PortletServiceLevel getServiceLevelForDefinitionLabel(String definitionLabel)
PortletServiceLevel
for a particular Portlet, based on its definition label. This
PortletServiceLevel
affects the Portlet definition, as well as all instances of that Portlet in
the scoped webapp.
definitionLabel
- the definition label of the Portlet
PortletServiceLevel
representing the current state of the Portlet definitionPortletServiceLevel getServiceLevelForInstanceLabel(String instanceLabel)
PortletServiceLevel
for a particular Portlet instance, based on its instance label.
instanceLabel
- the instance label of the Portlet
PortletServiceLevel
representing the current state of the Portlet instancePortletServiceLevel getServiceLevelForDefinitionId(String definitionId)
PortletServiceLevel
for a particular Portlet, based on its definition id. This
PortletServiceLevel
affects the Portlet definition, as well as all instances of that Portlet in
the scoped webapp.
definitionId
- the definition id of the Portlet
PortletServiceLevel
representing the current state of the Portlet definitionPortletServiceLevel getServiceLevelForInstanceId(String instanceId)
PortletServiceLevel
for a particular Portlet instance, based on its instance id.
instanceId
- the instance id of the Portlet
PortletServiceLevel
representing the current state of the Portlet instancevoid setServiceLevelForDefinitionLabel(PortletServiceLevel serviceLevel, String definitionLabel)
PortletServiceLevel
for a particular Portlet definition, based on its definition label.
This setting affects the Portlet definition, as well as all instances of that Portlet in the scoped webapp.
serviceLevel
- the new PortletServiceLevel
to set for the Portlet definitiondefinitionLabel
- the definition label of the Portlet definitionvoid setServiceLevelForInstanceLabel(PortletServiceLevel serviceLevel, String instanceLabel)
PortletServiceLevel
for a particular Portlet instance, based on its instance label.
serviceLevel
- the new PortletServiceLevel
to set for the Portlet instanceinstanceLabel
- the instance label of the Portlet instancevoid setServiceLevelForDefinitionId(PortletServiceLevel serviceLevel, String definitionId)
PortletServiceLevel
for a particular Portlet definition, based on its definition id.
This setting affects the Portlet definition, as well as all instances of that Portlet in the scoped webapp.
serviceLevel
- the new PortletServiceLevel
to set for the Portlet definitiondefinitionId
- the definition id of the Portlet definitionvoid setServiceLevelForInstanceId(PortletServiceLevel serviceLevel, String instanceId)
PortletServiceLevel
for a particular Portlet instance, based on its instance id.
serviceLevel
- the new PortletServiceLevel
to set for the Portlet instanceinstanceId
- the instance id of the Portlet instanceCollection<PortletServiceLevelDescription> getAllServiceLevels()
Collection
of PortletServiceLevelDescription
objects, representing all the
Portlets in the scoped webapp that have non-active service levels.
Collection
of PortletServiceLevelDescription
objectsboolean hasDefinedServiceLevels()
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.
PortletServiceLevels
, false otherwise
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |