Class InitParameter

java.lang.Object
mg.emberframework.core.data.InitParameter

public class InitParameter extends Object
Holds initialization parameters for the framework.

This class stores configuration settings such as parameter names for errors, controller packages, and role attributes, with default values if not specified.

Since:
1.0.0
Version:
1.0.0
Author:
Sandratra NIAINA
  • Constructor Details

    • InitParameter

      public InitParameter()
      Default constructor.
    • InitParameter

      public InitParameter(String errorParamName, String controllerPackageName, String errorRedirectionParamName, String roleAttributeName)
      Constructs an initialization parameter object with specified values.
      Parameters:
      errorParamName - the error parameter name
      controllerPackageName - the controller package name
      errorRedirectionParamName - the error redirection parameter name
      roleAttributeName - the role attribute name
  • Method Details

    • getErrorParamName

      public String getErrorParamName()
      Gets the error parameter name.
      Returns:
      the error parameter name
    • setErrorParamName

      public void setErrorParamName(String errorParamName)
      Sets the error parameter name, defaulting to "errors" if null.
      Parameters:
      errorParamName - the name to set
    • getControllerPackageName

      public String getControllerPackageName()
      Gets the controller package name.
      Returns:
      the controller package name
    • setControllerPackageName

      public void setControllerPackageName(String controllerPackageName)
      Sets the controller package name, defaulting to "controllers" if null.
      Parameters:
      controllerPackageName - the name to set
    • getErrorRedirectionParamName

      public String getErrorRedirectionParamName()
      Gets the error redirection parameter name.
      Returns:
      the error redirection parameter name
    • setErrorRedirectionParamName

      public void setErrorRedirectionParamName(String errorRedirectionParamName)
      Sets the error redirection parameter name, defaulting to "error-url" if null.
      Parameters:
      errorRedirectionParamName - the name to set
    • getRoleAttributeName

      public String getRoleAttributeName()
      Gets the role attribute name.
      Returns:
      the role attribute name
    • setRoleAttributeName

      public void setRoleAttributeName(String roleAttributeName)
      Sets the role attribute name, defaulting to "role" if null.
      Parameters:
      roleAttributeName - the name to set