Package com.volantis.mcs.objects

Examples of com.volantis.mcs.objects.FileExtension


     * @throws RepositoryException if an error occurs
     */
    private Collection getTypedPolicyBuilderNames(PolicyType policyType) throws RepositoryException {
        Collection policyNames = new ArrayList();
        try {
            FileExtension extension =
                    FileExtension.getFileExtensionForPolicyType(policyType);
            IFolder policySourceFolder = project.getFolder(getPolicySourcePath());
            addPolicyNames(policySourceFolder, extension, policyNames,
                    policySourceFolder.getProjectRelativePath());
        } catch (CoreException ce) {
View Full Code Here


        IStatus status = Status.OK_STATUS;

        progressMonitor.beginTask(TASK_NAME, files.length);
        boolean isCancelled = false;
        for (int i = 0; i < files.length && !isCancelled; i++) {
            FileExtension extension =
                    FileExtension.getFileExtensionForExtension(files[i].
                    getFileExtension());
            if (extension == FileExtension.DEVICE_REPOSITORY) {
                searchDeviceRepository(files[i]);
            } else {
View Full Code Here

     */
    private static void addFileToScope(List scope, IFile file,
                               FileExtension[] fileExtensions) {
        boolean extensionIsInScope = fileExtensions == null;
        if (!extensionIsInScope) {
            FileExtension extension = FileExtension.
                    getFileExtensionForExtension(file.
                    getFileExtension());
            for (int i2 = 0; i2 < fileExtensions.length &&
                    !extensionIsInScope; i2++) {
                extensionIsInScope =
View Full Code Here

    private boolean isPolicyResource(String resourceName) {

        boolean result = false;
        String extension = resourceName.substring(
                resourceName.lastIndexOf('.') + 1);
        FileExtension fileExtension =
                FileExtension.getFileExtensionForExtension(extension);
        if (fileExtension != null && fileExtension.isPolicyFileExtension()) {
            result = true;
        }
        return result;
    }
View Full Code Here

     * @param attributeType the attributeType representing the policy
     */
    private void createPolicySelectorControl(final ControlDetails controlDetails,
                                             String attributeType) {
        final PolicySelector policySelector;
        FileExtension extension =
                FileExtension.getFileExtensionForPolicyType(attributeType);
        try {
            FileExtension[] extensions = new FileExtension[]{extension};
            SelectionDialogDetails selectionDialogDetails =
                    new SelectionDialogDetails(
View Full Code Here

        final int type = resource.getType();
        if (type == IResource.FILE) {
            // First check that the resource is within the policy source
            // hierarchy.
            if (inPolicySource(resource)) {
                FileExtension fileExtension =
                        FileExtension.getFileExtensionForExtension(
                                resource.getFileExtension());

                if (fileExtension != null &&
                        fileExtension.isPolicyFileExtension()) {
                    // Always clear the markers for this resource.
                    clearMarkers(resource);

                    // This file is a recognized file type which may now
                    // be validated.
View Full Code Here

     * @return The value.
     */
    protected Value createIdentityValue(
            ExpressionContext context, Project project, String policyName) {

        FileExtension extension =
                FileExtension.getFileExtensionForLocalPolicy(policyName);
        PolicyType policyType = null;
        if (extension != null) {
            policyType = extension.getPolicyType();

        }
        if (policyType == null) {
            throw new IllegalArgumentException(
                    "Cannot determine policy type for " + policyName +
View Full Code Here

TOP

Related Classes of com.volantis.mcs.objects.FileExtension

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.