Class Messages


  • public class Messages
    extends ca.ubc.ece.flowable.core.properties.Resources
    Class for reading and providing the properties in the messages.properties file.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String EMAIL_ALREADY_REGISTERED_1
      The property name for the email already registered part 1 message.
      static java.lang.String EMAIL_ALREADY_REGISTERED_2
      The property name for the email already registered part 2 message.
      static java.lang.String INVALID_STATE_PARAMETER
      The property name for the invalid state parameter message.
      static java.lang.String INVALID_TOKEN_DATA
      The property name for the invalid token data message.
      static java.lang.String SLINK_IS_INVALID
      The property name for the secure link is invalid or has expired message.
      static java.lang.String SLINK_NO_USER_FOUND
      The property name for the no user found for secure link message.
      static java.lang.String UNABLE_CREATE_COOKIES
      The property name for the unable to create cookies message.
      static java.lang.String UNABLE_RETRIEVE_TOKEN_DATA
      The property name for the unable to retrieve token data message.
      static java.lang.String USER_ALREADY_EXISTS_1
      The property name for the user already exists part 1 message.
      static java.lang.String USER_ALREADY_EXISTS_2
      The property name for the user already exists part 2 message.
      static java.lang.String USER_ALREADY_EXISTS_3
      The property name for the user already exists part 3 message.
      static java.lang.String USER_NOT_AUTHORIZED_1
      The property name for the user not authorized part 1 message.
      static java.lang.String USER_NOT_AUTHORIZED_2
      The property name for the user not authorized part 2 message.
    • Constructor Summary

      Constructors 
      Constructor Description
      Messages()  
    • Method Summary

      Modifier and Type Method Description
      java.lang.String getProperty​(java.lang.String name)
      Returns the value for the property.
      • Methods inherited from class ca.ubc.ece.flowable.core.properties.Resources

        getBooleanProperty, getFullPath, getIntProperty, readFileProps, readProps
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • USER_NOT_AUTHORIZED_1

        public static final java.lang.String USER_NOT_AUTHORIZED_1
        The property name for the user not authorized part 1 message.
        See Also:
        Constant Field Values
      • USER_NOT_AUTHORIZED_2

        public static final java.lang.String USER_NOT_AUTHORIZED_2
        The property name for the user not authorized part 2 message.
        See Also:
        Constant Field Values
      • EMAIL_ALREADY_REGISTERED_1

        public static final java.lang.String EMAIL_ALREADY_REGISTERED_1
        The property name for the email already registered part 1 message.
        See Also:
        Constant Field Values
      • EMAIL_ALREADY_REGISTERED_2

        public static final java.lang.String EMAIL_ALREADY_REGISTERED_2
        The property name for the email already registered part 2 message.
        See Also:
        Constant Field Values
      • USER_ALREADY_EXISTS_1

        public static final java.lang.String USER_ALREADY_EXISTS_1
        The property name for the user already exists part 1 message.
        See Also:
        Constant Field Values
      • USER_ALREADY_EXISTS_2

        public static final java.lang.String USER_ALREADY_EXISTS_2
        The property name for the user already exists part 2 message.
        See Also:
        Constant Field Values
      • USER_ALREADY_EXISTS_3

        public static final java.lang.String USER_ALREADY_EXISTS_3
        The property name for the user already exists part 3 message.
        See Also:
        Constant Field Values
      • INVALID_TOKEN_DATA

        public static final java.lang.String INVALID_TOKEN_DATA
        The property name for the invalid token data message.
        See Also:
        Constant Field Values
      • UNABLE_RETRIEVE_TOKEN_DATA

        public static final java.lang.String UNABLE_RETRIEVE_TOKEN_DATA
        The property name for the unable to retrieve token data message.
        See Also:
        Constant Field Values
      • INVALID_STATE_PARAMETER

        public static final java.lang.String INVALID_STATE_PARAMETER
        The property name for the invalid state parameter message.
        See Also:
        Constant Field Values
      • UNABLE_CREATE_COOKIES

        public static final java.lang.String UNABLE_CREATE_COOKIES
        The property name for the unable to create cookies message.
        See Also:
        Constant Field Values
      • SLINK_NO_USER_FOUND

        public static final java.lang.String SLINK_NO_USER_FOUND
        The property name for the no user found for secure link message.
        See Also:
        Constant Field Values
      • SLINK_IS_INVALID

        public static final java.lang.String SLINK_IS_INVALID
        The property name for the secure link is invalid or has expired message.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Messages

        public Messages()
    • Method Detail

      • getProperty

        public java.lang.String getProperty​(java.lang.String name)
        Returns the value for the property.
        Specified by:
        getProperty in class ca.ubc.ece.flowable.core.properties.Resources
        Parameters:
        name - the property name
        Returns:
        the property value