Examples of enabled()


Examples of org.geoserver.catalog.LayerInfo.enabled()

        this.data = new ArrayList();

        for (Iterator<LayerInfo> it = c.iterator(); it.hasNext();) {
            LayerInfo layer = it.next();
            // ask for enabled() instead of isEnabled() to account for disabled resource/store
            if (layer.enabled()) {
                String wmsPath = layer.getPath() == null? "" : layer.getPath();

                if (wmsPath.startsWith("/")) {
                    wmsPath = wmsPath.substring(1, wmsPath.length());
                }
View Full Code Here

Examples of org.geoserver.catalog.ResourceInfo.enabled()

    /**
     * @see LayerInfo#enabled()
     */
    public boolean enabled() {
        ResourceInfo resource = getResource();
        boolean resourceEnabled = resource != null && resource.enabled();
        boolean thisEnabled = this.isEnabled();
        return resourceEnabled && thisEnabled;
    }

    public void setEnabled(boolean enabled) {
View Full Code Here

Examples of org.globus.workspace.common.print.Print.enabled()

            retCode = BaseClient.UNKNOWN_EXIT_CODE;
        }

        final Print pr = cli.getPr();

        if (!pr.enabled()) {
            // the rest of this method is for printing
            return retCode; // *** EARLY RETURN ***
        }

        if (exitNow != null) {
View Full Code Here

Examples of org.infinispan.configuration.cache.AuthorizationConfigurationBuilder.enabled()

            if (securityModel.hasDefined(ModelKeys.AUTHORIZATION) && securityModel.get(ModelKeys.AUTHORIZATION).hasDefined(ModelKeys.AUTHORIZATION_NAME)) {
                ModelNode authzModel = securityModel.get(ModelKeys.AUTHORIZATION, ModelKeys.AUTHORIZATION_NAME);

                AuthorizationConfigurationBuilder authzBuilder = builder.security().authorization();
                authzBuilder.enabled(CacheAuthorizationResource.ENABLED.resolveModelAttribute(context, authzModel).asBoolean());
                for(ModelNode role : CacheAuthorizationResource.ROLES.resolveModelAttribute(context, authzModel).asList()) {
                    authzBuilder.role(role.asString());
                }
            }
        }
View Full Code Here

Examples of org.infinispan.configuration.cache.BackupConfiguration.enabled()

            BackupConfiguration backup = c.sites().allBackups().get(0);
            assertEquals("NYC", backup.site());
            assertEquals(BackupFailurePolicy.WARN, backup.backupFailurePolicy());
            assertEquals(BackupConfiguration.BackupStrategy.SYNC, backup.strategy());
            assertEquals(12500, backup.replicationTimeout());
            assertFalse(backup.enabled());
            backup = c.sites().allBackups().get(1);
            assertEquals("SFO", backup.site());
            assertEquals(BackupFailurePolicy.IGNORE, backup.backupFailurePolicy());
            assertEquals(BackupConfiguration.BackupStrategy.ASYNC, backup.strategy());
            assertEquals(13000, backup.replicationTimeout());
View Full Code Here

Examples of org.infinispan.configuration.cache.BackupConfigurationBuilder.enabled()

               break;
            case FAILURE_POLICY_CLASS:
               backup.failurePolicyClass(value);
               break;
            case ENABLED:
               backup.enabled(Boolean.parseBoolean(value));
               break;
            default:
               throw ParseUtils.unexpectedElement(reader);
         }
      }
View Full Code Here

Examples of org.infinispan.configuration.cache.CompatibilityModeConfiguration.enabled()

         interceptorChain.setFirstInChain(createInterceptor(new InvocationContextInterceptor(), InvocationContextInterceptor.class));
      }


      CompatibilityModeConfiguration compatibility = configuration.compatibility();
      if (compatibility.enabled()) {
         interceptorChain.appendInterceptor(createInterceptor(
               new TypeConverterInterceptor(compatibility.marshaller()), TypeConverterInterceptor.class), false);
      }

      // add marshallable check interceptor for situations where we want to figure out before marshalling
View Full Code Here

Examples of org.infinispan.configuration.cache.GroupsConfiguration.enabled()

public class GroupManagerFactory extends AbstractNamedCacheComponentFactory implements AutoInstantiableFactory {

   @Override
   public <T> T construct(Class<T> componentType) {
      GroupsConfiguration groupsConfiguration = configuration.clustering().hash().groups();
      if (!groupsConfiguration.enabled())
         return null;

      return componentType.cast(new GroupManagerImpl(groupsConfiguration.groupers()));
   }
}
View Full Code Here

Examples of org.infinispan.configuration.global.GlobalAuthorizationConfiguration.enabled()

   }

   @Override
   public Result execute(Session session) throws StatementException {
      GlobalAuthorizationConfiguration gac = session.getCacheManager().getCacheManagerConfiguration().security().authorization();
      if (!gac.enabled()) {
         throw log.authorizationNotEnabledOnContainer();
      }
      if (!(gac.principalRoleMapper() instanceof ClusterRoleMapper)) {
         throw log.noClusterPrincipalMapper("DENY");
      }
View Full Code Here

Examples of org.infinispan.configuration.global.GlobalAuthorizationConfigurationBuilder.enabled()

      for (int i = 0; i < reader.getAttributeCount(); i++) {
         String value = replaceProperties(reader.getAttributeValue(i));
         Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i));
         switch (attribute) {
            case ENABLED: {
               builder.enabled(Boolean.parseBoolean(value));
               break;
            }
            case MAPPER: {
               builder.principalRoleMapper(Util.<PrincipalRoleMapper>getInstance(value, holder.getClassLoader()));
               break;
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.