Class AbstractRule
java.lang.Object
fr.paris.lutece.plugins.document.business.rules.AbstractRule
- All Implemented Interfaces:
Rule,fr.paris.lutece.portal.service.i18n.Localizable
- Direct Known Subclasses:
MoveSpaceRule,NotifyUsersRule
Default implementation of a rule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleangetAttribute(String strAttributeName) Get the value of an attribute from its nameintgetId()Returns the IdRuleGet the localeReturns the IdRuleTypefr.paris.lutece.portal.business.user.AdminUsergetUser()Gets the current uservoidreadAttributes(jakarta.servlet.http.HttpServletRequest request) Read attributes from a requestvoidsetAttribute(String strAttributeName, String strAttributeValue) Set an attributevoidsetId(int nIdRule) Sets the IdRulevoidSets the localevoidsetRuleTypeId(String strIdRuleType) Sets the IdRuleTypevoidsetUser(fr.paris.lutece.portal.business.user.AdminUser user) set the current userMethods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.plugins.document.business.rules.Rule
apply, getAttributesList, getCreateForm, getNameKey, getRule, init, isAuthorized, validateRule
-
Constructor Details
-
AbstractRule
public AbstractRule()
-
-
Method Details
-
getId
public int getId()Returns the IdRule -
setId
public void setId(int nIdRule) Sets the IdRule -
getRuleTypeId
Returns the IdRuleType- Specified by:
getRuleTypeIdin interfaceRule- Returns:
- The IdRuleType
-
setRuleTypeId
Sets the IdRuleType- Specified by:
setRuleTypeIdin interfaceRule- Parameters:
strIdRuleType- The IdRuleType
-
setLocale
Sets the locale- Specified by:
setLocalein interfacefr.paris.lutece.portal.service.i18n.Localizable- Parameters:
locale- The locale
-
getLocale
Get the locale- Returns:
- The locale
-
setAttribute
Set an attribute- Specified by:
setAttributein interfaceRule- Parameters:
strAttributeName- the name of the attributestrAttributeValue- the value of the attribute
-
getAttribute
Get the value of an attribute from its name- Specified by:
getAttributein interfaceRule- Parameters:
strAttributeNamethe- name of the attribute- Returns:
- the value of the attribute
-
readAttributes
public void readAttributes(jakarta.servlet.http.HttpServletRequest request) Read attributes from a request- Specified by:
readAttributesin interfaceRule- Parameters:
request- The request
-
equals
-
getUser
public fr.paris.lutece.portal.business.user.AdminUser getUser()Gets the current user -
setUser
public void setUser(fr.paris.lutece.portal.business.user.AdminUser user) set the current user
-