01: package projectmanagement.presentation;
02:
03: import com.lutris.logging.*;
04: import com.lutris.appserver.server.httpPresentation.*;
05: import com.lutris.appserver.server.*;
06: import java.io.*;
07:
08: /**
09: * Class to handle authorization errors.
10: *
11: * @author Sasa Bojanic
12: * @version 1.0
13: */
14: public class AuthorizationError implements HttpPresentation {
15:
16: /**
17: * This implements the run method in HttpPresentation.
18: *
19: * @param HttpPresentationComms
20: * @exception HttpPresentationException
21: */
22: public void run(HttpPresentationComms comms)
23: throws HttpPresentationException {
24:
25: AuthorizationErrorHTML page = new AuthorizationErrorHTML();
26: String aem = "You either don't have appropriate authorization level "
27: + "to execute wanted action or your session data dissapeared!"
28: + "Please, log in with appropriate authorization so you can "
29: + "get access to the wanted action item.";
30: page.setTextLblAuthorizationErrorMessage(aem);
31:
32: comms.response.writeDOM(page);
33: }
34: }
|