Package org.apache.cocoon.components.source

Examples of org.apache.cocoon.components.source.RestrictableSource


        try {

            Source source = resolver.resolveURI(uri);

            if (source instanceof RestrictableSource) {
                RestrictableSource restrictablesource = (RestrictableSource)source;

                restrictablesource.setSourceCredential(new SourceCredential(principal, password));

                SourcePermission permission =
                    new PrincipalSourcePermission(subject, privilege, inheritable, negative);

                restrictablesource.addSourcePermission(permission);
            } else
                throw new ProcessingException("Source isn't restrictable");
        } catch (SourceException se) {
            if (getLogger().isDebugEnabled())
                getLogger().debug("Exception occurs while modifying the source", se);
View Full Code Here


        try {

            Source source = resolver.resolveURI(uri);

            if (source instanceof RestrictableSource) {
                RestrictableSource restrictablesource = (RestrictableSource)source;

                restrictablesource.setSourceCredential(new SourceCredential(principal, password));

                SourcePermission permission =
                    new PrincipalSourcePermission(subject, privilege, inheritable, negative);

                restrictablesource.removeSourcePermission(permission);
            } else
                throw new ProcessingException("Source isn't restrictable");
        } catch (SourceException se) {
            if (getLogger().isDebugEnabled())
                getLogger().debug("Exception occurs while modifying the source", se);
View Full Code Here

        try {

            Source source = resolver.resolveURI(uri);

            if (source instanceof RestrictableSource) {
                RestrictableSource restrictablesource = (RestrictableSource)source;

                restrictablesource.setSourceCredential(new SourceCredential(principal, password));

                SourcePermission permission =
                    new GroupSourcePermission(subject, privilege, inheritable, negative);

                restrictablesource.addSourcePermission(permission);
            } else
                throw new ProcessingException("Source isn't restrictable");
        } catch (SourceException se) {
            if (getLogger().isDebugEnabled())
                getLogger().debug("Exception occurs while modifying the source", se);
View Full Code Here

        try {

            Source source = resolver.resolveURI(uri);

            if (source instanceof RestrictableSource) {
                RestrictableSource restrictablesource = (RestrictableSource)source;

                restrictablesource.setSourceCredential(new SourceCredential(principal, password));

                SourcePermission permission =
                    new GroupSourcePermission(subject, privilege, inheritable, negative);

                restrictablesource.removeSourcePermission(permission);
            } else
                throw new ProcessingException("Source isn't restrictable");
        } catch (SourceException se) {
            if (getLogger().isDebugEnabled())
                getLogger().debug("Exception occurs while modifying the source", se);
View Full Code Here

TOP

Related Classes of org.apache.cocoon.components.source.RestrictableSource

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.