Package org.dspace.eperson
Class RegistrationDataExpirationConfiguration
java.lang.Object
org.dspace.eperson.RegistrationDataExpirationConfiguration
Singleton that encapsulates the configuration of each different token
Contains also utility methods to compute the expiration date of the registered token.
RegistrationTypeEnum duration. Contains also utility methods to compute the expiration date of the registered token.
- Author:
- Vincenzo Mecca (vins01-4science - vincenzo.mecca at 4science.com)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the expiration date of the givenRegistrationTypeEnum.Retrieves theDurationconfiguration of a givenRegistrationTypeEnum.
-
Field Details
-
INSTANCE
-
-
Method Details
-
getInstance
-
getExpiration
Retrieves theDurationconfiguration of a givenRegistrationTypeEnum.- Parameters:
type- is the type of the given registration token- Returns:
- the
Durationof that specific token.
-
computeExpirationDate
Retrieves the expiration date of the givenRegistrationTypeEnum.- Parameters:
type- is the RegistrationTypeEnum of the token- Returns:
- a Date that represents the expiration date.
-