Package org.springframework.roo.project

Examples of org.springframework.roo.project.LogicalPath


        if (formBackingTypePersistenceMetadata == null) {
            return null;
        }
        final ClassOrInterfaceTypeDetails formBackingTypeDetails = typeLocationService
                .getTypeDetails(formBackingType);
        final LogicalPath formBackingTypePath = PhysicalTypeIdentifier
                .getPath(formBackingTypeDetails.getDeclaredByMetadataId());
        metadataDependencyRegistry.registerDependency(PhysicalTypeIdentifier
                .createIdentifier(formBackingType, formBackingTypePath),
                JspMetadata.createIdentifier(formBackingType,
                        formBackingTypePath));
        final LogicalPath path = JspMetadata.getPath(jspMetadataId);

        // Install web artifacts only if Spring MVC config is missing
        // TODO: Remove this call when 'controller' commands are gone
        final PathResolver pathResolver = projectOperations.getPathResolver();
        final LogicalPath webappPath = LogicalPath.getInstance(
                Path.SRC_MAIN_WEBAPP, path.getModule());

        if (!fileManager.exists(pathResolver.getIdentifier(webappPath,
                WEB_INF_VIEWS))) {
            jspOperations.installCommonViewArtefacts(path.getModule());
View Full Code Here


            // corresponding local metadata identification string would have
            // been
            if (WebScaffoldMetadata.isValid(upstreamDependency)) {
                final JavaType javaType = WebScaffoldMetadata
                        .getJavaType(upstreamDependency);
                final LogicalPath path = WebScaffoldMetadata
                        .getPath(upstreamDependency);
                downstreamDependency = JspMetadata.createIdentifier(javaType,
                        path);
            }
            else if (WebFinderMetadata.isValid(upstreamDependency)) {
                final JavaType javaType = WebFinderMetadata
                        .getJavaType(upstreamDependency);
                final LogicalPath path = WebFinderMetadata
                        .getPath(upstreamDependency);
                downstreamDependency = JspMetadata.createIdentifier(javaType,
                        path);
            }
View Full Code Here

    @Override
    protected String getGovernorPhysicalTypeIdentifier(
            final String metadataIdentificationString) {
        final JavaType javaType = WebJsonMetadata
                .getJavaType(metadataIdentificationString);
        final LogicalPath path = WebJsonMetadata
                .getPath(metadataIdentificationString);
        return PhysicalTypeIdentifier.createIdentifier(javaType, path);
    }
View Full Code Here

        final ClassOrInterfaceTypeDetails jsonTypeDetails = typeLocationService
                .getTypeDetails(jsonObject);
        if (jsonTypeDetails == null) {
            return null;
        }
        final LogicalPath jsonObjectPath = PhysicalTypeIdentifier
                .getPath(jsonTypeDetails.getDeclaredByMetadataId());
        final JsonMetadata jsonMetadata = (JsonMetadata) metadataService
                .get(JsonMetadata.createIdentifier(jsonObject, jsonObjectPath));
        if (jsonMetadata == null) {
            return null;
View Full Code Here

                                final String pathString = path.getValue();
                                pathMap.put(type.getFullyQualifiedTypeName(),
                                        pathString);
                                return pathString;
                            }
                            final LogicalPath cidPath = PhysicalTypeIdentifier
                                    .getPath(cid.getDeclaredByMetadataId());
                            webScaffoldMetadataKey = WebScaffoldMetadata
                                    .createIdentifier(cid.getName(), cidPath);
                            webScaffoldMetadata = (WebScaffoldMetadata) metadataService
                                    .get(webScaffoldMetadataKey);
View Full Code Here

                .getTypeDetails(formBackingType);
        Validate.notNull(
                formBackingType,
                "Class or interface type details isn't available for type '%s'",
                formBackingType);
        final LogicalPath logicalPath = PhysicalTypeIdentifier
                .getPath(javaTypeDetails.getDeclaredByMetadataId());
        final String finderMetadataKey = FinderMetadata.createIdentifier(
                formBackingType, logicalPath);
        registerDependency(finderMetadataKey, metadataIdentificationString);
        final FinderMetadata finderMetadata = (FinderMetadata) metadataService
View Full Code Here

                .getTypeDetails(javaType);
        Validate.notNull(
                javaTypeDetails,
                "Class or interface type details isn't available for type '%s'",
                javaType);
        final LogicalPath logicalPath = PhysicalTypeIdentifier
                .getPath(javaTypeDetails.getDeclaredByMetadataId());
        final String pluralMetadataKey = PluralMetadata.createIdentifier(
                javaType, logicalPath);
        final PluralMetadata pluralMetadata = (PluralMetadata) metadataService
                .get(pluralMetadataKey);
View Full Code Here

        installCommonViewArtefacts(projectOperations.getFocusedModuleName());
    }

    public void installCommonViewArtefacts(final String moduleName) {
        Validate.isTrue(isProjectAvailable(), "Project metadata required");
        final LogicalPath webappPath = Path.SRC_MAIN_WEBAPP
                .getModulePathId(moduleName);
        if (!isControllerAvailable()) {
            webMvcOperations.installAllWebMvcArtifacts();
        }
View Full Code Here

                && !projectOperations
                        .isFeatureInstalledInFocusedModule(FeatureNames.JSF);
    }

    public boolean isInstalledInModule(final String moduleName) {
        final LogicalPath webAppPath = LogicalPath.getInstance(
                Path.SRC_MAIN_WEBAPP, moduleName);
        return fileManager.exists(projectOperations.getPathResolver()
                .getIdentifier(webAppPath, "WEB-INF/spring/webmvc-config.xml"));
    }
View Full Code Here

    private ClassOrInterfaceTypeDetails getGovernor(
            final String metadataIdentificationString) {
        final JavaType governorTypeName = GwtLocatorMetadata
                .getJavaType(metadataIdentificationString);
        final LogicalPath governorTypePath = GwtLocatorMetadata
                .getPath(metadataIdentificationString);
        final String physicalTypeId = PhysicalTypeIdentifier.createIdentifier(
                governorTypeName, governorTypePath);
        return typeLocationService.getTypeDetails(physicalTypeId);
    }
View Full Code Here

TOP

Related Classes of org.springframework.roo.project.LogicalPath

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.