Class MCRRoleServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.user2.MCRRoleServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class MCRRoleServlet extends MCRServlet
This servlet is used in the role sub select for when administrate a user. The property MCR.user2.RoleCategories can hold any category IDs that could be possible roots for roles.
Author:
Thomas Scheffler (yagee)
See Also:
  • Constructor Details

    • MCRRoleServlet

      public MCRRoleServlet()
  • Method Details

    • init

      public void init() throws jakarta.servlet.ServletException
      Overrides:
      init in class MCRServlet
      Throws:
      jakarta.servlet.ServletException
    • think

      protected void think(MCRServletJob job) throws Exception
      Description copied from class: MCRServlet
      1st phase of doGetPost. This method has a seperate transaction. Per default id does nothing as a fallback to the old behaviour.
      Overrides:
      think in class MCRServlet
      Throws:
      Exception
      See Also:
    • render

      protected void render(MCRServletJob job, Exception ex) throws Exception
      Description copied from class: MCRServlet
      2nd phase of doGetPost This method has a seperate transaction and gets the same MCRServletJob from the first phase (think) and any exception that occurs at the first phase. By default this method calls doGetPost(MCRServletJob) as a fallback to the old behaviour.
      Overrides:
      render in class MCRServlet
      Parameters:
      job - same instance as of think(MCRServlet job)
      ex - any exception thrown by think(MCRServletJob) or transaction commit
      Throws:
      Exception - if render could not handle ex to produce a nice user page