Examples of Policy


Examples of org.apache.wookie.proxy.Policy

      //
      // Create access policies for each access request in the widget model
      //
      for(IAccessEntity accessEntity:model.getAccessList()){
        Policy policy = new Policy();
        policy.setOrigin(accessEntity.getOrigin());
        policy.setScope(widget.getGuid());
        policy.setDirective("DENY");
        if (grantAccessRequests){
          policy.setDirective("ALLOW");
          _logger.info("access policy granted for "+widget.getWidgetTitle("en")+" to access "+policy.getOrigin());
        }
        Policies.getInstance().addPolicy(policy);
      }
    } catch (ConfigurationException e) {
      _logger.error("problem with policies configuration", e);
View Full Code Here

Examples of org.apache.ws.policy.Policy

            } catch (FileNotFoundException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }

            Policy newPolicy = prdr.readPolicy(fis);
            newPolicy = (Policy) newPolicy.normalize();

            if (merged == null) {
                merged = newPolicy;
            } else {
                merged = (Policy) merged.merge(newPolicy);
View Full Code Here

Examples of org.cipango.kaleo.presence.policy.Policy

 
  protected Presentity newResource(String uri)
  {
    Presentity presentity = new Presentity(uri);
    presentity.addListener(getEventNotifier());
    Policy policy = _policyManager.getPolicy(presentity);
    policy.addListener(_policyListener);
    return presentity;
  }
View Full Code Here

Examples of org.drools.examples.decisiontable.Policy

        // typical decision tables are used statelessly
        StatelessKnowledgeSession ksession = kbase.newStatelessKnowledgeSession();

        //now create some test data
        Driver driver = new Driver();
        Policy policy = new Policy();

        ksession.execute( Arrays.asList( new Object[]{driver, policy} ) );

        System.out.println( "BASE PRICE IS: " + policy.getBasePrice() );
        System.out.println( "DISCOUNT IS: " + policy.getDiscountPercent() );

        return policy.getBasePrice();

    }
View Full Code Here

Examples of org.fusesource.ide.camel.model.generated.Policy

        imageProvider.addIconsForClass(new Multicast());
        imageProvider.addIconsForClass(new OnCompletion());
        imageProvider.addIconsForClass(new OnException());
        imageProvider.addIconsForClass(new Otherwise());
        imageProvider.addIconsForClass(new Pipeline());
        imageProvider.addIconsForClass(new Policy());
        imageProvider.addIconsForClass(new PollEnrich());
        imageProvider.addIconsForClass(new Process());
        imageProvider.addIconsForClass(new RecipientList());
        imageProvider.addIconsForClass(new RemoveHeader());
        imageProvider.addIconsForClass(new RemoveHeaders());
View Full Code Here

Examples of org.jboss.dashboard.security.Policy

                        manager.delete(element);
                    }
                }

                // Remove attached workspace permissions.
                Policy policy = SecurityServices.lookup().getSecurityPolicy();
                policy.removePermissions(workspace);

                // Notify instances removal before deleting workspace.
                Iterator instanceIt = workspace.getPanelInstancesSet().iterator();
                while (instanceIt.hasNext()) {
                    PanelInstance instance = (PanelInstance) instanceIt.next();
                    instance.instanceRemoved(session);
                }

                // Notify panels before deleting workspace.
                Iterator sectionIt = workspace.getSections().iterator();
                while (sectionIt.hasNext()) {
                    Section section = (Section) sectionIt.next();
                    Panel[] panels = section.getAllPanels();
                    for (int i = 0; i < panels.length; i++) {
                        Panel panel = panels[i];
                        panel.getProvider().getDriver().fireBeforePanelRemoved(panel);
                        panel.panelRemoved();
                    }
                }

                policy.save();

                // Delete workspace.
                session.delete(workspace);
                session.flush();
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.Policy

   {
      for(XACMLPolicy xp:policies)
      {
         if(xp.getType() == XACMLPolicy.POLICY)
         {
            Policy p = xp.get(XACMLConstants.UNDERLYING_POLICY);
            WrapperPolicyFinderModule wpfm = new WrapperPolicyFinderModule(p);
            pfml.add(wpfm);
         }
      }
      this.map.put(XACMLConstants.POLICY_FINDER_MODULE, pfml);
View Full Code Here

Examples of org.jboss.soa.esb.services.rules.Policy

  private String input = "Sent Notification to:";
 
  public Message process(Message message) throws ActionProcessingException {
   
    Driver driver = (Driver) message.getBody().get("Driver");
    Policy policy = (Policy) message.getBody().get("Policy")
    System.out.println("{ ================ " + input);   
    System.out.println("Name: " + driver.getName());
    System.out.println("Policy Price: " + policy.getBasePrice());
    System.out.println("} ================ " + input);
   
 
    return message;
  }
View Full Code Here

Examples of org.jclouds.elb.domain.Policy

public class GetPolicyResponseTest extends BaseHandlerTest {

   public void test() {
      InputStream is = getClass().getResourceAsStream("/describe_policy.xml");

      Policy expected = expected();

      PolicyHandler handler = injector.getInstance(PolicyHandler.class);
      Policy result = factory.create(handler).parse(is);

      assertEquals(result, expected);
      assertEquals(result.getAttributes(), expected.getAttributes());
   }
View Full Code Here

Examples of org.jclouds.iam.domain.Policy

      Role newRole;
      try {
         newRole = api.getRoleApi().createWithPolicy(roleName, RoleApiLiveTest.assumeRolePolicy);
         getAnonymousLogger().info("created role: " + newRole);
         api(roleName).create("S3Access", s3Policy);
         Policy newPolicy = api(roleName).get("S3Access");
         getAnonymousLogger().info("created policy: " + newPolicy);
         checkPolicy(newPolicy);
         assertEquals(newPolicy.getDocument(), s3Policy);
         api(roleName).delete("S3Access");
         assertNull(api(roleName).get("S3Access"));
      } finally {
         api(roleName).delete("S3Access");
         api.getRoleApi().delete(roleName);
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.