Examples of SecurityType


Examples of com.moneydance.apps.md.model.SecurityType

        this.name = name;
    }

    public SecurityTypeWrapper(SecurityAccountWrapper securityAccountWrapper) throws Exception {

        SecurityType securityType = securityAccountWrapper.getSecurityType();
        if (securityType == null) {
            this.securityType = null;
        } else {
            this.securityType = securityType;
        }
View Full Code Here

Examples of com.opengamma.bbg.loader.SecurityType

    }
  }

  private Integer getNormalizationFactorCore(String buid) {
    ExternalIdBundle buidBundle = ExternalIdBundle.of(_bbgScheme, buid);
    SecurityType securityType = _securityTypeResolver.getSecurityType(Collections.singleton(buidBundle)).get(buidBundle);
    if (securityType == null) {
      s_logger.warn("Unable to determine security type for BUID " + buid);
      return null;
    }
    switch (securityType) {
View Full Code Here

Examples of org.apache.geronimo.xml.ns.security_1.SecurityType

public class MarshallerListener extends Marshaller.Listener{

    @Override
    public void beforeMarshal(Object source) {
        if (source instanceof SecurityType) {
            SecurityType security = (SecurityType)source;
            if (security.getRoleMappings() != null && security.getRoleMappings().getRole().size() == 0) {
                security.setRoleMappings(null);
            }
        } else if (source instanceof WebAppType) {
            WebAppType webapp = (WebAppType)source;
            GbeanLocatorType gbeanlocator = webapp.getWebContainer();
            if (gbeanlocator != null && isEmpty(gbeanlocator.getGbeanLink()) && isEmpty(gbeanlocator.getPattern())) {
View Full Code Here

Examples of org.apache.geronimo.xml.ns.security_1.SecurityType

        Object plan = element;
        if (WebAppType.class.isInstance (plan)) {
            if (((WebAppType)plan).getSecurity() == null) {
                setSecurity (element, new org.apache.geronimo.xml.ns.security_1.ObjectFactory().createSecurityType());
            }
            SecurityType security = (SecurityType)((WebAppType)plan).getSecurity();
            if (security.getRoleMappings() == null) {
                security.setRoleMappings (new org.apache.geronimo.xml.ns.security_1.ObjectFactory().createRoleMappingsType());
            }
            return security;
        } else if (ApplicationType.class.isInstance (plan)) {
            if (((ApplicationType)plan).getSecurity() == null) {
                setSecurity (element, new org.apache.geronimo.xml.ns.security_1.ObjectFactory().createSecurityType());
            }
            SecurityType security = (SecurityType)((ApplicationType)plan).getSecurity();
            if (security.getRoleMappings() == null) {
                security.setRoleMappings (new org.apache.geronimo.xml.ns.security_1.ObjectFactory().createRoleMappingsType());
            }
            return security;
        } else if (OpenejbJarType.class.isInstance (plan)) {
            if (((OpenejbJarType)plan).getSecurity() == null) {
                setSecurity (element, new org.apache.geronimo.xml.ns.security_1.ObjectFactory().createSecurityType());
            }
            SecurityType security = (SecurityType)((OpenejbJarType)plan).getSecurity();
            if (security.getRoleMappings() == null) {
                security.setRoleMappings (new org.apache.geronimo.xml.ns.security_1.ObjectFactory().createRoleMappingsType());
            }
            return security;
        }
        return null;
    }
View Full Code Here

Examples of org.apache.geronimo.xml.ns.security_1.SecurityType

        }
        return null;
    }

    public static RoleMappingsType getRoleMappings(JAXBElement plan, boolean create) {
      SecurityType security = JAXBModelUtils.getSecurity(plan);
        if (security == null && create) {
            security = new SecurityType();
            JAXBModelUtils.setSecurity(plan, security);
        }
        if (security != null) {
          RoleMappingsType roleMappings = security.getRoleMappings();
            if (roleMappings == null && create) {
                roleMappings = new RoleMappingsType();
                security.setRoleMappings(roleMappings);
            }
            return roleMappings;
        }
        return null;
    }
View Full Code Here

Examples of org.voltdb.compiler.deploymentfile.SecurityType

            snapshot.setFrequency(m_snapshotFrequency);
            snapshot.setPrefix(m_snapshotPrefix);
            snapshot.setRetain(m_snapshotRetain);
        }

        SecurityType security = factory.createSecurityType();
        deployment.setSecurity(security);
        security.setEnabled(m_securityEnabled);
        SecurityProviderString provider = SecurityProviderString.HASH;
        if (m_securityEnabled) try {
            provider = SecurityProviderString.fromValue(m_securityProvider);
        } catch (IllegalArgumentException shouldNotHappenSeeSetter) {
        }
        security.setProvider(provider);

        if (m_commandLogSync != null || m_commandLogEnabled != null ||
                m_commandLogFsyncInterval != null || m_commandLogMaxTxnsBeforeFsync != null ||
                m_commandLogSize != null) {
            CommandLogType commandLogType = factory.createCommandLogType();
View Full Code Here

Examples of org.voltdb.compiler.deploymentfile.SecurityType

            snapshot.setFrequency(m_snapshotFrequency);
            snapshot.setPrefix(m_snapshotPrefix);
            snapshot.setRetain(m_snapshotRetain);
        }

        SecurityType security = factory.createSecurityType();
        deployment.setSecurity(security);
        security.setEnabled(m_securityEnabled);
        SecurityProviderString provider = SecurityProviderString.HASH;
        if (m_securityEnabled) try {
            provider = SecurityProviderString.fromValue(m_securityProvider);
        } catch (IllegalArgumentException shouldNotHappenSeeSetter) {
        }
        security.setProvider(provider);

        // set the command log (which defaults to off)
        CommandLogType commandLogType = factory.createCommandLogType();
        commandLogType.setEnabled(m_commandLogEnabled);
        if (m_commandLogSync != null) {
View Full Code Here

Examples of org.voltdb.compiler.projectfile.SecurityType

    void compileXMLRootNode(ProjectType project) throws VoltCompilerException {
        m_catalog = new Catalog();
        temporaryCatalogInit();

        SecurityType security = project.getSecurity();
        if (security != null) {
            m_catalog.getClusters().get("cluster").
                setSecurityenabled(security.isEnabled());

        }

        DatabaseType database = project.getDatabase();
        if (database != null) {
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.