Examples of applyPolicy()


Examples of org.apache.archiva.policies.DownloadPolicy.applyPolicy()

            String setting = StringUtils.defaultString( settings.get( key ), defaultSetting );

            log.debug( "Applying [{}] policy with [{}]", key, setting );
            try
            {
                policy.applyPolicy( setting, request, localFile );
            }
            catch ( PolicyConfigurationException e )
            {
                log.error( e.getMessage(), e );
            }
View Full Code Here

Examples of org.apache.archiva.policies.DownloadPolicy.applyPolicy()

            String setting = StringUtils.defaultString( settings.get( key ), defaultSetting );

            log.debug( "Applying [{}] policy with [{}]", key, setting );
            try
            {
                policy.applyPolicy( setting, request, localFile );
            }
            catch ( PolicyConfigurationException e )
            {
                log.error( e.getMessage(), e );
            }
View Full Code Here

Examples of org.apache.archiva.policies.DownloadPolicy.applyPolicy()

            String setting = StringUtils.defaultString( settings.get( key ), defaultSetting );

            log.debug( "Applying [{}] policy with [{}]", key, setting );
            try
            {
                policy.applyPolicy( setting, request, localFile );
            }
            catch ( PolicyConfigurationException e )
            {
                log.error( e.getMessage(), e );
            }
View Full Code Here

Examples of org.apache.archiva.policies.DownloadPolicy.applyPolicy()

            String setting = StringUtils.defaultString( settings.get( key ), defaultSetting );

            log.debug( "Applying [{}] policy with [{}]", key, setting );
            try
            {
                policy.applyPolicy( setting, request, localFile );
            }
            catch ( PolicyConfigurationException e )
            {
                log.error( e.getMessage(), e );
            }
View Full Code Here

Examples of org.apache.archiva.policies.DownloadPolicy.applyPolicy()

            String setting = StringUtils.defaultString( settings.get( key ), defaultSetting );

            log.debug( "Applying [{}] policy with [{}]", key, setting );
            try
            {
                policy.applyPolicy( setting, request, localFile );
            }
            catch ( PolicyConfigurationException e )
            {
                log.error( e.getMessage(), e );
            }
View Full Code Here

Examples of org.apache.axis2.description.AxisBinding.applyPolicy()

        Map endPointMap = axisService.getEndpoints();
        for (Object o : endPointMap.entrySet()) {
            Map.Entry entry = (Map.Entry) o;
            AxisEndpoint point = (AxisEndpoint) entry.getValue();
            AxisBinding binding = point.getBinding();
            binding.applyPolicy(policy);
        }

        // handle each module required
        try {
            boolean transactionStarted = Transaction.isStarted();
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.impl.jaxb.PolicyServicePort.applyPolicy()

        PolicyServicePort port = fPortProvider.getPolicyServicePort();

        try {
            javax.xml.ws.Holder<CmisExtensionType> portExtension = convertExtensionHolder(extension);

            port.applyPolicy(repositoryId, policyId, objectId, portExtension);

            setExtensionValues(portExtension, extension);
        } catch (CmisException e) {
            throw convertException(e);
        } catch (Exception e) {
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.impl.jaxb.PolicyServicePort.applyPolicy()

        PolicyServicePort port = portProvider.getPolicyServicePort();

        try {
            javax.xml.ws.Holder<CmisExtensionType> portExtension = convertExtensionHolder(extension);

            port.applyPolicy(repositoryId, policyId, objectId, portExtension);

            setExtensionValues(portExtension, extension);
        } catch (CmisException e) {
            throw convertException(e);
        } catch (Exception e) {
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.impl.jaxb.PolicyServicePort.applyPolicy()

        PolicyServicePort port = portProvider.getPolicyServicePort();

        try {
            javax.xml.ws.Holder<CmisExtensionType> portExtension = convertExtensionHolder(extension);

            port.applyPolicy(repositoryId, policyId, objectId, portExtension);

            setExtensionValues(portExtension, extension);
        } catch (CmisException e) {
            throw convertException(e);
        } catch (Exception e) {
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.server.CmisService.applyPolicy()

        try {
            service = getService(wsContext, repositoryId);

            ExtensionsData extData = convertExtensionHolder(extension);

            service.applyPolicy(repositoryId, policyId, objectId, extData);

            setExtensionValues(extData, extension);
        } catch (Exception e) {
            throw convertException(e);
        } finally {
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.