Package com.sun.enterprise.admin.target

Examples of com.sun.enterprise.admin.target.Target


    public ObjectName createAuditModule(AttributeList   attrs,
                                        Properties      props,
                                        String          targetName)
        throws MBeanException
    {
        final Target target = getTarget(targetName);
        check1ToN(target);
        final ObjectName securityService = getSecurityServiceMBean(target);
        final ObjectName on = (ObjectName)invoke1(securityService,
            "createAuditModule", attrs, AttributeList.class.getName());
        setProperties(on, props);
View Full Code Here


    }

    public ObjectName[] listAuditModules(String targetName)
        throws MBeanException
    {
        final Target target = getListTarget(targetName);
        final ObjectName securityService = getSecurityServiceMBean(target);
        return (ObjectName[])invoke0(securityService, "getAuditModule");
    }
View Full Code Here

    }

    public boolean deleteAuditModule(String name, String targetName)
        throws MBeanException
    {
        final Target target = getTarget(targetName);
        check1ToN(target);
        final ObjectName securityService = getSecurityServiceMBean(target);
        invoke1(securityService, "removeAuditModuleByName", name,
                String.class.getName());
        return true;
View Full Code Here

    public ObjectName createJmsHost(AttributeList   attrs,
                                    Properties      props,
                                    String          targetName)
        throws MBeanException
    {
        final Target target = getTarget(targetName);
        check1ToN(target);
        final ObjectName jmsService = getJmsServiceMBean(target, true);
        final ObjectName jmsHost = (ObjectName)invoke1(jmsService,
            "createJmsHost", attrs, AttributeList.class.getName());
        setProperties(jmsHost, props);
View Full Code Here

    }

    public boolean deleteJmsHost(String name, String targetName)
        throws MBeanException
    {
        final Target target = getTarget(targetName);
        check1ToN(target);
        final ObjectName jmsService = getJmsServiceMBean(target, false);
        assertIt((jmsService != null),
            localStrings.getString("configsMBean.no_jms_service"));
View Full Code Here

        return true;
    }

    public ObjectName[] listJmsHosts(String targetName) throws MBeanException
    {
        final Target target = getListTarget(targetName);
        final ObjectName jmsService = getJmsServiceMBean(target, false);
        assertIt((jmsService != null),
            localStrings.getString("configsMBean.no_jms_service"));
        return (ObjectName[])invoke0(jmsService, "getJmsHost");
    }
View Full Code Here

        Properties      props,        //provider's properties
        String          targetName    // target name (config, instance, cluster, or 'server')
        )
        throws Exception
    {
        final Target target = getTarget(targetName);
        check1ToN(target);
        final ConfigTarget configTarget = target.getConfigTarget();
        boolean bMessageConfigJustCreated = false;
        Config config = ConfigAPIHelper.getConfigByName(getConfigContext(), configTarget.getName());
        SecurityService securityService = config.getSecurityService();
       
        //message-security-config
View Full Code Here

        String  messageLayer,     // auth-layer attribute of message-security-config
        String  providerId,   // provider id
        String  targetName    // target name (config, instance, cluster, or 'server')
        ) throws Exception
    {
        final Target target = getTarget(targetName);
        check1ToN(target);
        Config config = ConfigAPIHelper.getConfigByName(getConfigContext(),
                        target.getConfigTarget().getName());
        SecurityService securityService = config.getSecurityService();
        MessageSecurityConfig messageSecurity =
            securityService.getMessageSecurityConfigByAuthLayer(messageLayer);
        if(messageSecurity==null)
        {
View Full Code Here

    public ObjectName[] listMessageSecurityProviders(
        String  messageLayer,     // auth-layer attribute of message-security-config
        String  targetName    // target name (config, instance, cluster, or 'server')
        ) throws Exception
    {
        final Target target = getListTarget(targetName);
        Config config = ConfigAPIHelper.getConfigByName(getConfigContext(),
                        target.getConfigTarget().getName());
        SecurityService securityService = config.getSecurityService();
        if(securityService==null)
            return null;
        if(messageLayer!=null)
        {
View Full Code Here

    public ObjectName createJaccProvider(   AttributeList   attrs,
                                            Properties      props,
                                            String          targetName)
        throws MBeanException
    {
        final Target target = getTarget(targetName);
        check1ToN(target);
        final ObjectName securityService = getSecurityServiceMBean(target);
        final ObjectName jaccProvider = (ObjectName)invoke1(securityService,
            "createJaccProvider", attrs, AttributeList.class.getName());
        setProperties(jaccProvider, props);
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.target.Target

Copyright © 2018 www.massapicom. 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.