|
||||||||||
| 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
fr.paris.lutece.plugins.document.modules.rulemovespace.business.MoveSpaceRule
public class MoveSpaceRule
This rule lets move a document from a space to another when the document's state is changing
| Constructor Summary | |
|---|---|
MoveSpaceRule()
|
|
| Method Summary | |
|---|---|
void |
apply(DocumentEvent event)
Execute the rule |
boolean |
equals(Object obj)
|
String[] |
getAttributesList()
Gets all attributes of the rule |
String |
getCreateForm(fr.paris.lutece.portal.business.user.AdminUser user,
Locale locale)
Gets a specific form to enter rule's attributes |
String |
getNameKey()
Gets the Rule name key |
static String |
getParameterKeyDestinationSpaceId()
Get the parameter key for the destination space Id |
static String |
getParameterKeySourceSpaceId()
Get the parameter key for the source space Id |
static String |
getParameterKeyStateId()
Get the parameter key for the state Id |
String |
getRule()
Gets the explicit text of the rule |
void |
init()
Initialize the rule |
boolean |
isAuthorized(fr.paris.lutece.portal.business.user.AdminUser user)
true if the user is authorized to view the rule |
String |
validateRule()
Check the rule |
| Methods inherited from class fr.paris.lutece.plugins.document.business.rules.AbstractRule |
|---|
getAttribute, getId, getLocale, getRuleTypeId, getUser, readAttributes, setAttribute, setId, setLocale, setRuleTypeId, setUser |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MoveSpaceRule()
| Method Detail |
|---|
public void init()
public String getNameKey()
public void apply(DocumentEvent event)
throws DocumentException
event - The document event
DocumentException - raise when error occurs in event or rule
public String getCreateForm(fr.paris.lutece.portal.business.user.AdminUser user,
Locale locale)
user - The current userlocale - The current Locale
public boolean isAuthorized(fr.paris.lutece.portal.business.user.AdminUser user)
user - the current user
public String validateRule()
public String[] getAttributesList()
public String getRule()
public static String getParameterKeySourceSpaceId()
public static String getParameterKeyDestinationSpaceId()
public static String getParameterKeyStateId()
public boolean equals(Object obj)
AbstractRule
equals in class AbstractRule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||