@Override public boolean isUnitTestCreationAvailable() { return projectOperations.isFocusedProjectAvailable() && projectOperations.isFeatureInstalled(FeatureNames.JPA); }
@Override public boolean isJpaAuditSetupPossible() { return getProjectOperations().isFeatureInstalled(FeatureNames.SECURITY) && getProjectOperations().isFeatureInstalled(FeatureNames.JPA) && !getProjectOperations().isFeatureInstalled(AUDIT_FEATURE_NAME); }
/** * This operation checks if this feature is installed in module. * JSON is installed in module if Spring MVC has been installed before. * * @return true if Spring MVC has been installed, if not return false. */ @Override public boolean isInstalledInModule(String moduleName) { // Check if JSON MVC and Spring MVC config exists return getProjectOperations().isFeatureInstalled(FeatureNames.MVC); }
/** * This operation will check if add controllers operation is available * * @return true if add controller operation is available. false if not. */ @Override public boolean isAddControllerAvailable() { return getProjectOperations().isFeatureInstalled(FeatureNames.MVC); }
/** * This operation will check if add detail controllers operation is * available * * @return true if add detail controller operation is available. false if * not. */ @Override public boolean isAddDetailControllerAvailable() { return getProjectOperations().isFeatureInstalled(FeatureNames.MVC); }
/** * This operation will check if the operation publish services methods is * available * * @return true if publish services methods is available. false if not. */ @Override public boolean isPublishOperationsAvailable() { return getProjectOperations().isFeatureInstalled(FeatureNames.MVC); }
@Override public boolean isInstallLanguageCommandAvailable() { return getProjectOperations().isFeatureInstalled(FeatureNames.MVC); }
@CliAvailabilityIndicator("security filtering") public boolean isFilteringOperationAvailable() { return projectOperations.isFeatureInstalled(FeatureNames.SECURITY); }
@Override public boolean isJpaAuditAddPossible() { return getProjectOperations().isFeatureInstalled(FeatureNames.SECURITY) && getProjectOperations().isFeatureInstalled(FeatureNames.AUDIT); }
/** * Method which returns whether the 'web mvc exception handler' command should be available. * * @return <code>true</code> if required feature is not already installed. */ @CliAvailabilityIndicator("web mvc exception handler") public boolean isExceptionHandlerCommandAvailable() { return projectOperations.isFeatureInstalled(FeatureNames.MVC); }
@Override public boolean isJpaInstalled() { return getProjectOperations().isFeatureInstalled(FeatureNames.JPA); }
@Override public boolean isRepositoryInstallationPossible() { return getProjectOperations().isFeatureInstalled(FeatureNames.JPA); }
@Override public boolean isIntegrationTestCreationAvailable() { Set<JavaType> jsonControllers = typeLocationService.findTypesWithAnnotation(RooJavaType.ROO_JSON); return projectOperations.isFocusedProjectAvailable() && projectOperations.isFeatureInstalled(FeatureNames.MVC) && !jsonControllers.isEmpty(); }
@Override public boolean isIntegrationTestCreationAvailable() { Set<JavaType> thymeleafControllers = typeLocationService.findTypesWithAnnotation(RooJavaType.ROO_THYMELEAF); return projectOperations.isFocusedProjectAvailable() && projectOperations.isFeatureInstalled(FeatureNames.MVC) && !thymeleafControllers.isEmpty(); }
@Override public boolean isIntegrationTestCreationAvailable() { Set<JavaType> repositories = typeLocationService.findTypesWithAnnotation(RooJavaType.ROO_REPOSITORY_JPA); return projectOperations.isFocusedProjectAvailable() && projectOperations.isFeatureInstalled(FeatureNames.JPA) && !repositories.isEmpty(); }
/** * This operation checks if this feature is installed in module. * THYMELEAF is installed in module if thymeleaf dependencies has been installed before. * * @return true if thymeleaf dependencies has been installed, if not return false. */ @Override public boolean isInstalledInModule(String moduleName) { // THYMELEAF is installed if Spring MVC has been installed and Thymeleaf // dependencies has been installed. return getProjectOperations().isFeatureInstalled(FeatureNames.MVC) && hasThymeleafDependencies(moduleName); }
@Override public boolean isInstallationAvailable() { return getProjectOperations().isFocusedProjectAvailable() && getProjectOperations().isFeatureInstalled(FeatureNames.MVC) && !getProjectOperations().isFeatureInstalled("DEFAULT"); }
@Override public boolean isInstallationAvailable() { return getProjectOperations().isFocusedProjectAvailable() && getProjectOperations().isFeatureInstalled(FeatureNames.MVC) && !getProjectOperations().isFeatureInstalled("SPRINGLETS_JPA"); }
/** * This method checks if web mvc templates setup command is available or not. * * Templates setup command will be available if exists some type that * has been installed. * * @return */ @CliAvailabilityIndicator("web mvc templates setup") public boolean isInstallTemplateAvailable() { return getProjectOperations().isFeatureInstalled(FeatureNames.MVC) && !getControllerMVCResponseTypes(true).isEmpty(); }
@Override public boolean isCacheSetupAvailable() { return getProjectOperations().isFocusedProjectAvailable() && getProjectOperations().isFeatureInstalled(FeatureNames.JPA); }