Class EditContext

    • Method Detail

      • getInstance

        public static final EditContext getInstance​(GlobalContext globalContext,
                                                    javax.servlet.http.HttpSession session)
      • getActiveType

        public String getActiveType()
        Returns:
      • setActiveType

        public void setActiveType​(String string)
        Parameters:
        string -
      • getTeasersDirectory

        public String getTeasersDirectory()
        Returns:
      • setTeasersDirectory

        public void setTeasersDirectory​(String string)
        Parameters:
        string -
      • getFilter

        public String getFilter()
        Returns:
      • setFilter

        public void setFilter​(String string)
        Parameters:
        string -
      • getUserRoles

        public Set<String> getUserRoles()
        Returns:
      • getCurrentAdminView

        public int getCurrentAdminView()
        Returns:
      • getUserEditFilter

        public UserEditFilter getUserEditFilter()
        Returns:
      • getViews

        public String[][] getViews()
      • getAdminViews

        public String[][] getAdminViews()
      • getDefaultViewLanguage

        public String getDefaultViewLanguage()
        Returns:
        Returns the defaultViewLanguage.
      • haveLicence

        public boolean haveLicence​(String module)
      • getEditUser

        public User getEditUser​(String login)
      • hardLogin

        public boolean hardLogin​(String inUser,
                                 String inPassword)
        log user with user define in config file and not in user interface.
        Parameters:
        inUser -
        inPassword -
        Returns:
        true if user is logged.
      • hardLoginByToken

        public User hardLoginByToken​(String token)
      • hardAutoLogin

        public boolean hardAutoLogin​(String inUser)
        autolog user with user define in WEB.XML and not in user interface.
        Parameters:
        inUser -
        Returns:
        true if user is logged.
      • logout

        public void logout()
      • getUserPrincipal

        public Principal getUserPrincipal()
      • getUserRolesDefault

        public Set<String> getUserRolesDefault()
      • getEditTemplate

        public String getEditTemplate()
      • getMessageTemplate

        public String getMessageTemplate()
      • getBoxTemplate

        public String getBoxTemplate()
      • getBreadcrumbsTemplate

        public String getBreadcrumbsTemplate()
      • setMessageTemplate

        public void setMessageTemplate​(String messageTemplate)
      • getLoginRenderer

        public String getLoginRenderer()
      • setLoginRenderer

        public void setLoginRenderer​(String loginRenderer)
      • getAjaxRenderer

        public String getAjaxRenderer()
      • setAjaxRenderer

        public void setAjaxRenderer​(String ajaxRenderer)
      • getAdminUserEditFilter

        public UserEditFilter getAdminUserEditFilter()
      • getDefaultAdminUserRoles

        public Set<String> getDefaultAdminUserRoles()
      • getAdminUserRoles

        public Set<String> getAdminUserRoles()
      • getEditUser

        public User getEditUser()
      • setEditUser

        public void setEditUser​(User editUser)
      • isMailing

        public boolean isMailing()
      • setMailing

        public void setMailing​(boolean mailing)
      • getMainRenderer

        public String getMainRenderer()
      • setMainRenderer

        public void setMainRenderer​(String mainRenderer)
      • getCommandRenderer

        public String getCommandRenderer()
      • setCommandRenderer

        public void setCommandRenderer​(String commandRenderer)
      • isViewCommand

        public boolean isViewCommand()
      • setViewCommand

        public void setViewCommand​(boolean viewCommand)
      • isViewComponent

        public boolean isViewComponent()
      • setViewComponent

        public void setViewComponent​(boolean viewComponent)
      • isViewMode

        public boolean isViewMode()
      • setViewMode

        public void setViewMode​(boolean viewMode)
      • getCurrentArea

        public String getCurrentArea()
      • setCurrentArea

        public void setCurrentArea​(String currentArea)
      • getEditLanguages

        public List<String> getEditLanguages()
      • isLightInterface

        public boolean isLightInterface()
      • setLightInterface

        public void setLightInterface​(Boolean isLightInterface)
      • isPreviewEditionMode

        public boolean isPreviewEditionMode()
      • setPreviewEditionMode

        public void setPreviewEditionMode​(boolean editPreview)