Package org.springframework.roo.project

Examples of org.springframework.roo.project.LogicalPath


    }

    private void createPermissionEvaluator(
            final JavaPackage permissionEvaluatorPackage) {
        installPermissionEvaluatorTemplate(permissionEvaluatorPackage);
        final LogicalPath focusedSrcMainJava = LogicalPath.getInstance(
                SRC_MAIN_JAVA, projectOperations.getFocusedModuleName());
        JavaType permissionEvaluatorClass = new JavaType(
                permissionEvaluatorPackage.getFullyQualifiedPackageName()
                        + ".ApplicationPermissionEvaluator");
        final String identifier = pathResolver.getFocusedCanonicalPath(
View Full Code Here


    @Reference ProjectOperations projectOperations;

    public LogicalPath convertFromText(final String value,
            final Class<?> targetType, final String optionContext) {
        LogicalPath logicalPath = LogicalPath.getInstance(value);
        if (logicalPath.getModule().equals("FOCUSED")) {
            logicalPath = LogicalPath.getInstance(logicalPath.getPath(),
                    projectOperations.getFocusedModuleName());
        }
        return logicalPath;
    }
View Full Code Here

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

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

          final ClassOrInterfaceTypeDetails domainTypeDetails = typeLocationService
                      .getTypeDetails(domainType.getValue());
              if (domainTypeDetails == null) {
                  return null;
              }
              final LogicalPath path = PhysicalTypeIdentifier
                      .getPath(domainTypeDetails.getDeclaredByMetadataId());
              final String pluralId = PluralMetadata.createIdentifier(domainType.getValue(),
                      path);
              final PluralMetadata pluralMetadata = (PluralMetadata) metadataService
                      .get(pluralId);
View Full Code Here

        if (!includeOnMenu) {
            annotationBuilder.addBooleanAttribute("includeOnMenu",
                    includeOnMenu);
        }

        final LogicalPath managedBeanPath = pathResolver
                .getFocusedPath(Path.SRC_MAIN_JAVA);
        final String resourceIdentifier = typeLocationService
                .getPhysicalTypeCanonicalPath(managedBean, managedBeanPath);
        final String declaredByMetadataId = PhysicalTypeIdentifier
                .createIdentifier(managedBean,
View Full Code Here

            if (Modifier.isAbstract(cid.getModifier())) {
                continue;
            }

            final JavaType entity = cid.getName();
            final LogicalPath path = PhysicalTypeIdentifier.getPath(cid
                    .getDeclaredByMetadataId());

            // Check to see if this persistent type has a JSF metadata listening
            // to it
            final String downstreamJsfMetadataId = JsfManagedBeanMetadata
View Full Code Here

                        packagePath + "/i18n");
        copyDirectoryContents("i18n/*.properties", i18nDirectory, false);
    }

    public boolean isInstalledInModule(final String moduleName) {
        final LogicalPath webAppPath = LogicalPath.getInstance(
                Path.SRC_MAIN_WEBAPP, moduleName);
        return fileManager.exists(pathResolver.getIdentifier(webAppPath,
                "WEB-INF/faces-config.xml"))
                || fileManager.exists(pathResolver.getIdentifier(webAppPath,
                        "templates/layout.xhtml"));
View Full Code Here

    public void setup(JsfImplementation jsfImplementation,
            final JsfLibrary jsfLibrary, final Theme theme) {
        jsfImplementation = updateConfiguration(jsfImplementation, jsfLibrary);
        createOrUpdateWebXml(jsfImplementation, theme);

        final LogicalPath webappPath = Path.SRC_MAIN_WEBAPP
                .getModulePathId(projectOperations.getFocusedModuleName());
        copyDirectoryContents("index.html",
                pathResolver.getIdentifier(webappPath, ""), false);
        copyDirectoryContents("viewExpired.xhtml",
                pathResolver.getIdentifier(webappPath, ""), false);
View Full Code Here

                                        .getMetadataIdentiferType())),
                "Expected a valid physical Java type instance identifier (not '%s')",
                physicalJavaTypeIdentifier);
        final JavaType javaType = PhysicalTypeIdentifier
                .getJavaType(physicalJavaTypeIdentifier);
        final LogicalPath path = PhysicalTypeIdentifier
                .getPath(physicalJavaTypeIdentifier);
        return createLocalIdentifier(javaType, path);
    }
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.