Package io.goobi.viewer.faces.validators
Class RelatedPIValidator
java.lang.Object
io.goobi.viewer.faces.validators.PIValidator
io.goobi.viewer.faces.validators.RelatedPIValidator
- All Implemented Interfaces:
EventListener
,javax.faces.validator.Validator<String>
Validates the entered PI belonging to a record for which the current user may create CMS content.
-
Field Summary
Fields inherited from class io.goobi.viewer.faces.validators.PIValidator
ILLEGAL_CHARS
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
-
Constructor Summary
-
Method Summary
Methods inherited from class io.goobi.viewer.faces.validators.PIValidator
validatePi
-
Constructor Details
-
RelatedPIValidator
public RelatedPIValidator()
-
-
Method Details
-
validate
public void validate(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value) throws javax.faces.validator.ValidatorException - Specified by:
validate
in interfacejavax.faces.validator.Validator<String>
- Overrides:
validate
in classPIValidator
- Throws:
javax.faces.validator.ValidatorException
-
validatePi
public static String validatePi(String pi, User user) throws PresentationException, IndexUnreachableException validatePi.
- Parameters:
pi
- aString
object.user
- aUser
object.- Returns:
- a
String
object. - Throws:
PresentationException
- if any.IndexUnreachableException
- if any.
-