Class ControllerConstants
java.lang.Object
fr.utc.miage.sporttrack.controller.ControllerConstants
Centralized constants for Spring MVC controllers.
Defines common redirect URLs, view names, model attribute names,
and parameter names used across the application.
- Author:
- SportTrack Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringView name for the admin home.static final StringModel attribute name for athlete.static final StringView name for athlete badges.static final StringView name for the athlete list.static final StringView name for the athlete profile.static final StringModel attribute name for badges.static final StringModel attribute name for challenges.static final StringRequest parameter name for creation.static final StringRequest parameter name for deletion.static final StringModel attribute name for error messages.static final StringRedirect constant for the admin home page.static final StringRedirect constant for the athlete list page.static final StringRedirect constant for the athlete profile page.static final StringRedirect constant for the badges page.static final StringRedirect constant for the challenges page.static final StringRedirect constant for the friend list page.static final StringRedirect constant for the login page.static final StringRequest parameter name for registration.static final StringModel attribute name for sports.static final StringModel attribute name for success messages.static final StringRequest parameter name for update. -
Method Summary
-
Field Details
-
REDIRECT_LOGIN
Redirect constant for the login page.- See Also:
-
REDIRECT_ADMIN
Redirect constant for the admin home page.- See Also:
-
REDIRECT_ATHLETE_PROFILE
Redirect constant for the athlete profile page.- See Also:
-
REDIRECT_ATHLETE_LIST
Redirect constant for the athlete list page.- See Also:
-
REDIRECT_FRIENDS
Redirect constant for the friend list page.- See Also:
-
REDIRECT_BADGES
Redirect constant for the badges page.- See Also:
-
REDIRECT_CHALLENGES
Redirect constant for the challenges page.- See Also:
-
ATHLETE_PROFILE_VIEW
View name for the athlete profile.- See Also:
-
ATHLETE_LIST_VIEW
View name for the athlete list.- See Also:
-
ADMIN_HOME_VIEW
View name for the admin home.- See Also:
-
ATHLETE_BADGE_LIST_VIEW
View name for athlete badges.- See Also:
-
ATHLETE_ATTR
Model attribute name for athlete.- See Also:
-
ERROR_ATTR
Model attribute name for error messages.- See Also:
-
SUCCESS_ATTR
Model attribute name for success messages.- See Also:
-
SPORTS_ATTR
Model attribute name for sports.- See Also:
-
BADGES_ATTR
Model attribute name for badges.- See Also:
-
CHALLENGES_ATTR
Model attribute name for challenges.- See Also:
-
CREATED_PARAM
Request parameter name for creation.- See Also:
-
UPDATED_PARAM
Request parameter name for update.- See Also:
-
DELETED_PARAM
Request parameter name for deletion.- See Also:
-
REGISTERED_PARAM
Request parameter name for registration.- See Also:
-