public abstract class AbstractRule extends Object implements Rule
Constructor and Description |
---|
AbstractRule() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
equals(Object obj) |
String |
getAttribute(String strAttributeName)
Get the value of an attribute from its name
|
int |
getId()
Returns the IdRule
|
Locale |
getLocale()
Get the locale
|
String |
getRuleTypeId()
Returns the IdRuleType
|
fr.paris.lutece.portal.business.user.AdminUser |
getUser()
Gets the current user
|
void |
readAttributes(javax.servlet.http.HttpServletRequest request)
Read attributes from a request
|
void |
setAttribute(String strAttributeName,
String strAttributeValue)
Set an attribute
|
void |
setId(int nIdRule)
Sets the IdRule
|
void |
setLocale(Locale locale)
Sets the locale
|
void |
setRuleTypeId(String strIdRuleType)
Sets the IdRuleType
|
void |
setUser(fr.paris.lutece.portal.business.user.AdminUser user)
set the current user
|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, getAttributesList, getCreateForm, getNameKey, getRule, init, isAuthorized, validateRule
public int getId()
public void setId(int nIdRule)
public String getRuleTypeId()
getRuleTypeId
in interface Rule
public void setRuleTypeId(String strIdRuleType)
setRuleTypeId
in interface Rule
strIdRuleType
- The IdRuleTypepublic void setLocale(Locale locale)
setLocale
in interface fr.paris.lutece.portal.service.i18n.Localizable
locale
- The localepublic Locale getLocale()
public void setAttribute(String strAttributeName, String strAttributeValue)
setAttribute
in interface Rule
strAttributeName
- the name of the attributestrAttributeValue
- the value of the attributepublic String getAttribute(String strAttributeName)
getAttribute
in interface Rule
strAttributeNamethe
- name of the attributepublic void readAttributes(javax.servlet.http.HttpServletRequest request)
readAttributes
in interface Rule
request
- The requestpublic fr.paris.lutece.portal.business.user.AdminUser getUser()
Copyright © 2020 City of Paris. All rights reserved.