|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.action.constraint.BaseParameterConstraint
public abstract class BaseParameterConstraint
Base implementation of a parameter constraint
| Field Summary | |
|---|---|
protected RuntimeActionService |
actionService
Runtime action service |
protected java.util.Map |
allowableValues
Map of allowable values |
protected java.lang.String |
name
Constraint name |
| Constructor Summary | |
|---|---|
BaseParameterConstraint()
|
|
| Method Summary | |
|---|---|
java.util.Map |
getAllowableValues()
|
protected abstract java.util.Map |
getAllowableValuesImpl()
Gets the list of allowable values, calculating them every time it is called. |
protected java.lang.String |
getI18NLabel(java.lang.String key)
Get the I18N display label for a particular key |
java.lang.String |
getName()
Gets the unique name of the constraint |
java.lang.String |
getValueDisplayLabel(java.lang.String value)
|
void |
init()
Init method |
boolean |
isValidValue(java.lang.String value)
Indicates whether the provided value satisfies the constraint. |
void |
setActionService(RuntimeActionService actionService)
Set the action service |
void |
setBeanName(java.lang.String name)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
protected RuntimeActionService actionService
protected java.util.Map allowableValues
| Constructor Detail |
|---|
public BaseParameterConstraint()
| Method Detail |
|---|
public void init()
public void setActionService(RuntimeActionService actionService)
actionService - action servicepublic java.lang.String getName()
ParameterConstraint
getName in interface ParameterConstraintParameterConstraint.getName()public void setBeanName(java.lang.String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwareBeanNameAware.setBeanName(java.lang.String)public java.util.Map getAllowableValues()
getAllowableValues in interface ParameterConstraintParameterConstraint.getAllowableValues()protected abstract java.util.Map getAllowableValuesImpl()
protected java.lang.String getI18NLabel(java.lang.String key)
key -
public java.lang.String getValueDisplayLabel(java.lang.String value)
getValueDisplayLabel in interface ParameterConstraintorg.alfresco.service.cmr.action.ParameterConstraint#getValueDisplayLabel(java.io.Serializable)public boolean isValidValue(java.lang.String value)
ParameterConstraint
isValidValue in interface ParameterConstraintorg.alfresco.service.cmr.action.ParameterConstraint#isValidValue(java.io.Serializable)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||