|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.document.business.rules.AbstractRule
public abstract class AbstractRule
Default implementation of a rule
Constructor Summary | |
---|---|
AbstractRule()
|
Method Summary | |
---|---|
abstract boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAttribute(java.lang.String strAttributeName)
Gets a specific attribute by its name |
int |
getId()
Returns the IdRule |
java.util.Locale |
getLocale()
|
java.lang.String |
getRuleTypeId()
Returns the IdRuleType |
fr.paris.lutece.portal.business.user.AdminUser |
getUser()
Gets the current user |
void |
readAttributes(javax.servlet.http.HttpServletRequest request)
Reads rule attributes |
void |
setAttribute(java.lang.String strAttributeName,
java.lang.String strAttributeValue)
Sets a specific rule attribute |
void |
setId(int nIdRule)
Sets the IdRule |
void |
setLocale(java.util.Locale locale)
Sets the locale |
void |
setRuleTypeId(java.lang.String strIdRuleType)
Sets the IdRuleType |
void |
setUser(fr.paris.lutece.portal.business.user.AdminUser user)
set the current user |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.paris.lutece.plugins.document.business.rules.Rule |
---|
apply, getAttributesList, getCreateForm, getNameKey, getRule, init, isAuthorized, validateRule |
Constructor Detail |
---|
public AbstractRule()
Method Detail |
---|
public int getId()
getId
in interface Rule
public void setId(int nIdRule)
setId
in interface Rule
nIdRule
- The IdRulepublic java.lang.String getRuleTypeId()
getRuleTypeId
in interface Rule
public void setRuleTypeId(java.lang.String strIdRuleType)
setRuleTypeId
in interface Rule
strIdRuleType
- The IdRuleTypepublic void setLocale(java.util.Locale locale)
setLocale
in interface fr.paris.lutece.portal.service.i18n.Localizable
locale
- The localepublic java.util.Locale getLocale()
public void setAttribute(java.lang.String strAttributeName, java.lang.String strAttributeValue)
Rule
setAttribute
in interface Rule
strAttributeName
- strAttributeValue
- public java.lang.String getAttribute(java.lang.String strAttributeName)
Rule
getAttribute
in interface Rule
strAttributeName
-
public void readAttributes(javax.servlet.http.HttpServletRequest request)
Rule
readAttributes
in interface Rule
request
- public abstract boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public fr.paris.lutece.portal.business.user.AdminUser getUser()
getUser
in interface Rule
public void setUser(fr.paris.lutece.portal.business.user.AdminUser user)
setUser
in interface Rule
user
- the current user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |