|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModifiableCookieRule
Objects of this interface are produced by the method ModelController#getModifiableNode()
or .
It contains functions to modify settings of a cookie rules. Note that the settings are
immediately effective in the model, but they are not stored in the database unless commit()
has
been applied on the OutboundConnectionModelController object.
The following code excerpt changes cookie rules settings:
OutboundConnectionModelController ctrl;
OutboundConnectionModel model;
PolicyMapping mapping;
˙˙˙
PolicyMapping mapping = model.getPolicyRuleLocator(profile).getDefaultMapping();
PolicyRule rule = model.getPolicyRuleLocator(mapping).findByName("rule2");
ModifiableCookieRule mrule = ctrl.getModifiableNode(rule);
mrule.setCookieNames(new String [] {"NewCookieName"} );
mcookie.setHandling(Handling.StoreSession);
mcookie.setScope(Scope.User);
ctrl.commit();
OutboundConnectionModel
,
OutboundConnectionModelController
,
CookieRule
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.ibm.portal.outbound.config.CookieRule |
---|
CookieRule.Handling, CookieRule.Scope |
Method Summary | |
---|---|
void |
setCookieNames(java.lang.String[] names)
Define a new set of cookie names to which this cookie rule applies |
void |
setHandling(CookieRule.Handling handling)
set a new cookie handling type. |
void |
setScope(CookieRule.Scope scope)
Define a new cookie scope. |
void |
setTransformations(java.util.Collection<CookieTransformationItem> transformations)
Override the cookie transformation rules |
Methods inherited from interface com.ibm.portal.outbound.config.CookieRule |
---|
getCookieNames, getHandling, getScope, getTransformations |
Methods inherited from interface com.ibm.portal.outbound.config.Administrable |
---|
getName, isReadOnly |
Methods inherited from interface com.ibm.portal.outbound.config.ModifiableNode |
---|
setName |
Method Detail |
---|
void setCookieNames(java.lang.String[] names) throws CannotModifyPropertyException
names
- a new set of cookie names. The cookie names can contain wildcards.
Note that the array must not be null or empty.
CannotModifyPropertyException
- Invalid cookie names array specifiedvoid setScope(CookieRule.Scope scope) throws CannotModifyPropertyException
scope
- The new cookie scope
CannotModifyPropertyException
void setHandling(CookieRule.Handling handling) throws CannotModifyPropertyException
handling
- The new handling type.
CannotModifyPropertyException
void setTransformations(java.util.Collection<CookieTransformationItem> transformations) throws CannotModifyPropertyException
transformations
- A new list of transformation rules. Note that existing rules are overridden by this value.
null or an empty collection means to remove transformations
CannotModifyPropertyException
- An invalid transformations list has been presented.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |