Package org.apache.roller.pojos

Examples of org.apache.roller.pojos.WebsiteData


            HttpServletRequest  request,
            HttpServletResponse response)
            throws Exception {
        WebsiteFormEx form = (WebsiteFormEx)actionForm;
        UserManager umgr = RollerFactory.getRoller().getUserManager();
        WebsiteData website = umgr.getWebsite(form.getId());
        ActionForward forward = mapping.findForward("removeWebsite.page");
        request.setAttribute("model", new WebsitePageModel(
                "websiteRemove.title", request, response, mapping, website));
        try {
            RollerSession rses = RollerSession.getRollerSession(request);
View Full Code Here


            throws Exception {
        ActionForward forward = mapping.findForward("yourWebsites");
        try {
            UserManager umgr = RollerFactory.getRoller().getUserManager();
            WebsiteFormEx form = (WebsiteFormEx)actionForm;
            WebsiteData website = umgr.getWebsite(form.getId());
           
            RollerSession rses = RollerSession.getRollerSession(request);
            if ( rses.isUserAuthorizedToAdmin(website) ) {
               
                // remove website
View Full Code Here

        boolean authenticated = false;
        boolean userEnabled = false;
        boolean weblogEnabled = false;
        boolean apiEnabled = false;
        boolean weblogFound = false;
        WebsiteData website = null;
        UserData user = null;
        try
        {
            // Get Roller request object for current thread
            RollerRequest rreq = RollerRequest.getRollerRequest();
           
            UserManager userMgr = RollerFactory.getRoller().getUserManager();
            user = userMgr.getUserByUsername(username);
            userEnabled = user.getEnabled().booleanValue();
           
            website = userMgr.getWebsiteByHandle(blogid);
            if (website != null) {
                weblogFound = true;
                weblogEnabled = website.getEnabled().booleanValue();
                apiEnabled = website.getEnableBloggerApi().booleanValue();
            }
           
            if (user != null)
            {   
                // are passwords encrypted?
View Full Code Here

        {
            request.setAttribute("model", new BasePageModel(
                "pagesForm.title", request, response, mapping));  
            RollerRequest rreq = RollerRequest.getRollerRequest(request);
            RollerSession rses = RollerSession.getRollerSession(request);
            WebsiteData website = rreq.getWebsite();
            if ( rses.isUserAuthorizedToAdmin(website) )
            {
                WeblogTemplateForm form = (WeblogTemplateForm)actionForm;
                WeblogTemplate data = new WeblogTemplate();
                form.copyTo(data, request.getLocale());
View Full Code Here

            RollerRequest rreq = RollerRequest.getRollerRequest(request);
            RollerSession rses = RollerSession.getRollerSession(request);
            request.setAttribute("model", new BasePageModel(
                "pagesForm.title", request, response, mapping));
           
            WebsiteData website = rreq.getWebsite();
            if (website == null && form.getId()!=null)
            {
                UserManager mgr = RollerFactory.getRoller().getUserManager();               
                WeblogTemplate template = mgr.getPage(form.getId());
                website = template.getWebsite();
View Full Code Here

        try
        {
            UserManager mgr = RollerFactory.getRoller().getUserManager();
            WeblogTemplateForm form = (WeblogTemplateForm)actionForm;
            WeblogTemplate template = mgr.getPage(form.getId());
            WebsiteData website = template.getWebsite();
           
            RollerSession rses = RollerSession.getRollerSession(request);         
            if ( rses.isUserAuthorizedToAdmin(website) )
            {
                if(!template.isRequired()) {
View Full Code Here

        try
        {
            RollerSession rses = RollerSession.getRollerSession(request);
            RollerRequest rreq = RollerRequest.getRollerRequest(request);
            WeblogTemplate page = (WeblogTemplate) rreq.getPage();
            WebsiteData website = page.getWebsite();
            if ( rses.isUserAuthorizedToAdmin(website) )
            {
                WeblogTemplateForm form = (WeblogTemplateForm)actionForm;
                form.copyFrom(page, request.getLocale());
View Full Code Here

        {
            RollerRequest rreq = RollerRequest.getRollerRequest(request);
            WeblogTemplateForm form = (WeblogTemplateForm)actionForm;
            UserManager mgr = RollerFactory.getRoller().getUserManager();
            WeblogTemplate data = mgr.getPage(form.getId());
            WebsiteData website = data.getWebsite();
           
            RollerSession rses = RollerSession.getRollerSession(request);
            if (rses.isUserAuthorizedToAdmin(website))
            {
                form.copyTo(data, request.getLocale());
View Full Code Here

        RollerRequest rreq = RollerRequest.getRollerRequest(request);
               
        UserData user = rses.getAuthenticatedUser();
        request.setAttribute("user", user);

        WebsiteData wd = rreq.getWebsite();
        request.setAttribute("website", website);

        List pages = mgr.getPages(website);
        request.setAttribute("pages", pages);
       
View Full Code Here

                    new ActionError("inviteMember.error.userNotFound"));
            }
            else
            {
                RollerRequest rreq = RollerRequest.getRollerRequest(request);
                WebsiteData website = rreq.getWebsite();
                PermissionsData perms = umgr.getPermissions(website, user);
                if (perms != null && perms.isPending())
                {
                    errors.add(ActionErrors.GLOBAL_ERROR,
                        new ActionError("inviteMember.error.userAlreadyInvited"));
View Full Code Here

TOP

Related Classes of org.apache.roller.pojos.WebsiteData

Copyright © 2018 www.massapicom. 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.