Examples of RollerContext


Examples of org.apache.roller.ui.core.RollerContext

                apiEnabled = website.getEnableBloggerApi().booleanValue();
            }
           
            if (user != null) {
                // are passwords encrypted?
                RollerContext rollerContext =
                        RollerContext.getRollerContext();
                String encrypted =
                        RollerConfig.getProperty("passwds.encryption.enabled");
                //System.out.print("password was [" + password + "] ");
                if ("true".equalsIgnoreCase(encrypted)) {
View Full Code Here

Examples of org.apache.roller.ui.core.RollerContext

            user = userMgr.getUserByUserName(username);
           
            enabled = user.getEnabled().booleanValue();
            if (enabled) {
                // are passwords encrypted?
                RollerContext rollerContext =
                        RollerContext.getRollerContext();
                String encrypted =
                        RollerConfig.getProperty("passwds.encryption.enabled");
                //System.out.print("password was [" + password + "] ");
                if ("true".equalsIgnoreCase(encrypted)) {
View Full Code Here

Examples of org.apache.roller.ui.core.RollerContext

                String to[] = new String[] {user.getEmailAddress()};
                String subject;
                String content;
               
                // Figure URL to entry edit page
                RollerContext rc = RollerContext.getRollerContext();
                String rootURL = RollerRuntimeConfig.getAbsoluteContextURL();
                if (rootURL == null || rootURL.trim().length()==0) {
                    rootURL = RequestUtils.serverURL(request)
                    + request.getContextPath();
                }
View Full Code Here

Examples of org.apache.roller.ui.core.RollerContext

            PageContext pageContext,
            WeblogPageRequest pageRequest) throws RollerException {
       
        mLogger.debug("setupContext( ctx = "+ctx+")");
       
        RollerContext rollerCtx = RollerContext.getRollerContext( );
       
        WebsiteData weblog = null;
        WeblogEntryData entry = null;
        WeblogCategoryData category = null;
        Template page = null;
View Full Code Here

Examples of org.apache.roller.ui.core.RollerContext

                            userID = userPass.substring(0, p);
                            UserData user = mRoller.getUserManager().getUserByUserName(userID);
                            boolean enabled = user.getEnabled().booleanValue();
                            if (enabled) {
                                // are passwords encrypted?
                                RollerContext rollerContext =
                                        RollerContext.getRollerContext();
                                String encrypted =
                                        RollerConfig.getProperty("passwds.encryption.enabled");
                                password = userPass.substring(p+1);
                                if ("true".equalsIgnoreCase(encrypted)) {
View Full Code Here

Examples of org.apache.roller.ui.core.RollerContext

            RequestUtils.lookup(pageContext, name, property, scope);
        if (StringUtils.isNotEmpty(entry.getSummary())) {
            String xformed = entry.getSummary();
            try {       
                if (entry.getPlugins() != null) {
                    RollerContext rctx =
                        RollerContext.getRollerContext();
                    PluginManager ppmgr = roller.getPagePluginManager();
                    Map plugins = ppmgr.getWeblogEntryPlugins(
                        entry.getWebsite());
                    xformed = ppmgr.applyWeblogEntryPlugins(
View Full Code Here

Examples of org.apache.roller.ui.core.RollerContext

            RequestUtils.lookup(pageContext, name, property, scope);
        if (StringUtils.isNotEmpty(entry.getText())) {
            String xformed = entry.getText();;       
            try {
                if (entry.getPlugins() != null) {
                    RollerContext rctx =
                        RollerContext.getRollerContext();
                    try {
                        PluginManager ppmgr = roller.getPagePluginManager();
                        Map plugins = ppmgr.getWeblogEntryPlugins(
                            entry.getWebsite());
View Full Code Here

Examples of org.apache.roller.ui.core.RollerContext

        }
        if (StringUtils.isNotEmpty(sourceText)) {
            try {
                String xformed = sourceText;       
                if (entry.getPlugins() != null) {
                    RollerContext rctx =
                        RollerContext.getRollerContext();
                    try {
                        PluginManager ppmgr = roller.getPagePluginManager();
                        Map plugins = ppmgr.getWeblogEntryPlugins(
                                entry.getWebsite());
View Full Code Here

Examples of org.apache.roller.ui.core.RollerContext

            HttpServletResponse response)
            throws IOException, ServletException {
        UserFormEx form = (UserFormEx)actionForm;
        RollerRequest rreq = RollerRequest.getRollerRequest(request);
        ServletContext ctx = rreq.getServletContext();
        RollerContext rollerContext = RollerContext.getRollerContext();
       
        boolean reg_allowed =
                RollerRuntimeConfig.getBooleanProperty("users.registration.enabled");
       
        if ( !reg_allowed && !request.isUserInRole("admin")) {
View Full Code Here

Examples of org.apache.roller.ui.core.RollerContext

        WebsiteData website = null;
        if (!errors.isEmpty()) {
            saveErrors(request, errors);
            forward = mapping.findForward("createWebsite.page");
        } else try {
            RollerContext rollerContext = RollerContext.getRollerContext();
            UserData user =
                    RollerSession.getRollerSession(request).getAuthenticatedUser();
            UserManager mgr = roller.getUserManager();
           
            if (!RollerConfig.getBooleanProperty("groupblogging.enabled")) {
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.