Examples of canConfigure()


Examples of org.apache.geronimo.deployment.ConfigurationBuilder.canConfigure()

        } catch (java.io.IOException e) {
            return new FailedProgressObject(CommandType.DISTRIBUTE, "Could not read deployment plan");
        }
        for (Iterator iterator = builders.iterator(); iterator.hasNext();) {
            ConfigurationBuilder configurationBuilder = (ConfigurationBuilder) iterator.next();
            if (configurationBuilder.canConfigure(plan)) {
                return server.distribute(targetList, configurationBuilder, moduleArchive, plan);
            }
        }
        return new FailedProgressObject(CommandType.DISTRIBUTE, "No configuration builder found for module");
    }
View Full Code Here

Examples of org.apache.geronimo.deployment.ConfigurationBuilder.canConfigure()

        } catch (java.io.IOException e) {
            return new FailedProgressObject(CommandType.DISTRIBUTE, "Could not read deployment plan");
        }
        for (Iterator iterator = builders.iterator(); iterator.hasNext();) {
            ConfigurationBuilder configurationBuilder = (ConfigurationBuilder) iterator.next();
            if (configurationBuilder.canConfigure(plan)) {
                return server.distribute(targetList, configurationBuilder, moduleArchive, plan);
            }
        }
        return new FailedProgressObject(CommandType.DISTRIBUTE, "No configuration builder found for module");
    }
View Full Code Here

Examples of org.jasig.portal.security.IAuthorizationPrincipal.canConfigure()

                final IAuthorizationPrincipal ap = authorizationService.newPrincipal(ei.getKey(), ei.getType());
               
                final IPortletDefinition portletDefinition = this.portletEntityRegistry.getParentPortletDefinition(portletWindow.getPortletEntityId());
                final IChannelDefinition channelDefinition = portletDefinition.getChannelDefinition();
               
                if (!ap.canConfigure(channelDefinition.getId())) {
                    throw new AuthorizationException(person.getUserName() + " does not have permission to render '" + channelDefinition.getFName() + "' in " + portletMode + " PortletMode");
                }
            }
           
            portletWindow.setPortletMode(portletMode);
View Full Code Here

Examples of org.jasig.portal.security.IAuthorizationPrincipal.canConfigure()

                final IAuthorizationPrincipal ap = authorizationService.newPrincipal(ei.getKey(), ei.getType());
               
                final IPortletEntity portletEntity = portletWindow.getPortletEntity();
                final IPortletDefinition portletDefinition = portletEntity.getPortletDefinition();
               
                if (!ap.canConfigure(portletDefinition.getPortletDefinitionId().getStringId())) {

                    logger.error("User {} attempted to use portlet {} in {} but lacks permission to use that mode.  " +
                            "THIS MAY BE AN ATTEMPT TO EXPLOIT A HISTORICAL SECURITY FLAW.  " +
                            "You should probably figure out who this user is and why they are trying to access " +
                            "unauthorized portlet modes.",
View Full Code Here

Examples of org.jdesktop.wonderland.modules.avatarbase.client.registry.spi.AvatarSPI.canConfigure()

        // Next, ask the selected avatar whether Customize and Delete is
        // supported
        if (selected == true) {
            AvatarSPI avatar = (AvatarSPI) avatarList.getSelectedValue();
            customizeButton.setEnabled(avatar.canConfigure());
            deleteButton.setEnabled(avatar.canDelete());
        }

        // Finally, we see if the select avatar is the one currently in use.
        // If so, do not enable the Use button
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.