|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.free2be.dimensions.decider.AbstractDeciderImpl
com.free2be.dimensions.decider.UserDeviceDecider
public class UserDeviceDecider
This class is an implementation of Decider, that takes care of "user-device" pairs, i.e. its decisions depends on which is the role of the current user and on the device used.
| Field Summary |
|---|
| Fields inherited from class com.free2be.dimensions.decider.AbstractDeciderImpl |
|---|
decisionSet |
| Constructor Summary | |
|---|---|
UserDeviceDecider()
Creates a new instance of UserDeviceDecider |
|
| Method Summary | |
|---|---|
Decision |
decide(javax.servlet.http.HttpServletRequest request)
Takes a decision, using the request as a basis. |
void |
setUserBeanName(java.lang.String userBeanName)
Sets the name of the bean to inspect when deciding for the user role. |
void |
setUserBeanRoleProperty(java.lang.String userBeanRoleProperty)
Sets the property to inspect when deciding for the user role. |
void |
setUserBeanScope(java.lang.String userBeanScope)
Sets the scope in which the bean to get is placed. |
| Methods inherited from class com.free2be.dimensions.decider.AbstractDeciderImpl |
|---|
addSuitableDecision, getSuitableDecisionSet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserDeviceDecider()
| Method Detail |
|---|
public Decision decide(javax.servlet.http.HttpServletRequest request)
request - The request to use.
public void setUserBeanName(java.lang.String userBeanName)
userBeanName - The name of the bean to inspect.public void setUserBeanScope(java.lang.String userBeanScope)
userBeanScope - The scope to use. It can be "application", "session", "request".public void setUserBeanRoleProperty(java.lang.String userBeanRoleProperty)
userBeanRoleProperty - The property to inspect inside the bean.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||