Package com.dotmarketing.cmis.proxy

Examples of com.dotmarketing.cmis.proxy.DotResponseProxy.sendError()


          Logger.debug(HTMLPageAPIImpl.class, "401 URI = " + uri);

          Logger.debug(HTMLPageAPIImpl.class, "Unauthorized URI = "
              + uri);
          responseProxy.sendError(401,
              "The requested page/file is unauthorized");
          return "An SYSTEM ERROR OCCURED !";

        } else if (!permissionAPI.getReadRoles(ident).contains(
            APILocator.getRoleAPI().loadLoggedinSiteRole())) {
View Full Code Here


            // the user doesn't have permissions to see this page
            // go to unauthorized page
            Logger
                .warn(HTMLPageAPIImpl.class,
                    "VELOCITY CHECKING PERMISSION: Page doesn't have any access for this user");
            responseProxy.sendError(403,
                "The requested page/file is forbidden");
            return "PAGE NOT FOUND!";
          }
        }
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.