Examples of Security


Examples of buri.ddmsence.ddms.security.Security

  }
 
  @Test
  public void testOutputJSONInline() throws InvalidDDMSException {
    DDMSVersion.setCurrentVersion("4.1");
    Security security = SecurityTest.getFixture();
    PropertyReader.setProperty("output.json.inlineAttributes", "false");
    assertEquals("{\"excludeFromRollup\":true,\"securityAttributes\":{\"classification\":\"U\",\"ownerProducer\":[\"USA\"]}}", security.toJSON());
    PropertyReader.setProperty("output.json.inlineAttributes", "true");
    assertEquals("{\"excludeFromRollup\":true,\"classification\":\"U\",\"ownerProducer\":[\"USA\"]}", security.toJSON());
  }
View Full Code Here

Examples of ch.entwine.weblounge.common.security.Security

  /**
   * Registers the security marker in the OSGi registry.
   */
  private void publishSecurityMarker() {
    Dictionary<String, String> securityProperties = new Hashtable<String, String>();
    bundleCtx.registerService(Security.class.getName(), new Security() {
    }, securityProperties);
  }
View Full Code Here

Examples of com.getperka.flatpack.security.Security

    checkMayNot(p, personProps.get("boss"), ALL_OPS);
  }

  private void check(MyPrincipal principal, Person p, Property property, boolean expect,
      CrudOperation... ops) {
    Security security = securities.get();
    for (CrudOperation op : ops) {
      boolean may;
      if (property == null) {
        may = security.may(principal, SecurityTarget.of(p), SecurityAction.of(op));
      } else {
        may = security.may(principal, SecurityTarget.of(p, property), SecurityAction.of(op));
      }
      assertEquals(p.getUuid() + (expect ? " could not " : " should not ") + op, expect, may);
    }
  }
View Full Code Here

Examples of com.opengamma.core.security.Security

    final RawSecurity security = (RawSecurity) target.getPosition().getSecurity();
    return security.getSecurityType().equals(SecurityEntryData.EXTERNAL_SENSITIVITIES_SECURITY_TYPE);
  }

  private ValueProperties.Builder createCurrencyValueProperties(final ComputationTarget target) {
    final Security security = target.getPosition().getSecurity();
    if (FXUtils.isFXSecurity(security)) {
      return createValueProperties(); //TODO what to do in this case?
    }
    final Currency ccy = FinancialSecurityUtils.getCurrency(security);
    if (ccy == null) {
View Full Code Here

Examples of com.sun.enterprise.config.clientbeans.Security

            TargetServer tServer = cc.getTargetServer(0);
            // TargetServer is required.
      //temp solution to target-server+ change in DTD
            // assuming that multiple servers can be specified but only 1st
      // first one will be used.
      Security security = tServer.getSecurity();
      if (security == null) {
    _logger.fine("No Security input set in ClientContainer.xml");
    // do nothing
    return;
      }
      Ssl ssl = security.getSsl();
      if (ssl == null) {
    _logger.fine("No SSL input set in ClientContainer.xml");
    // do nothing
    return;
   
View Full Code Here

Examples of name.abuchen.portfolio.model.Security

{

    @Test
    public void testFIFOPurchasePrice()
    {
        SecurityPosition position = new SecurityPosition(new Security());

        position.addTransaction(new PortfolioTransaction(Dates.today(), null, Type.BUY, 100 * Values.Share.factor(),
                        100000, 0, 0));
        position.addTransaction(new PortfolioTransaction(Dates.today(), null, Type.SELL, 50 * Values.Share.factor(),
                        50000, 0, 0));
View Full Code Here

Examples of net.datacrow.core.web.beans.Security

public class DcSecured {
   
    protected boolean isLoggedIn() {
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();
        Security security = (Security) vr.resolveVariable(fc, "security");
        return security.isLoggedIn();
    }
View Full Code Here

Examples of net.datacrow.core.web.beans.Security

    }
   
    public SecuredUser getUser() {
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();
        Security security = (Security) vr.resolveVariable(fc, "security");
        return security.getUser();
    }
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.model.complex.generateheader.Security

        client.setFirstName("Julia");
        client.setLastName("Roberts");

        order.setClient(client);

        Security security = new Security();
        security.setInstrumentCode("ISIN");
        security.setInstrumentNumber("LU123456789");

        order.setSecurity(security);

        model.put(order.getClass().getName(), order);
        model.put(client.getClass().getName(), client);
        model.put(security.getClass().getName(), security);

        models.add(0, model);

        return models;
    }
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.model.complex.twoclassesandonelink.Security

        client.setFirstName("Julia");
        client.setLastName("Roberts");

        order.setClient(client);

        Security security = new Security();
        security.setInstrumentCode("ISIN");
        security.setInstrumentNumber("LU123456789");

        order.setSecurity(security);

        model.put(order.getClass().getName(), order);
        model.put(client.getClass().getName(), client);
        model.put(security.getClass().getName(), security);

        models.add(0, model);

        return models;
    }
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.