Interface ValidationService
-
public interface ValidationServiceValidation Service
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Boolean>evaluateJavaIdentifiers(String[] identifiers)Map<String,Boolean>evaluateMavenIdentifiers(String[] identifiers)booleanisBranchNameValid(String branchName)booleanisFileNameValid(String fileName)booleanisFileNameValid(org.uberfire.backend.vfs.Path path, String fileName)booleanisJavaFileNameValid(String fileName)booleanisPackageNameValid(String packageName)booleanisProjectNameValid(String projectName)booleanisTimerIntervalValid(String timerInterval)booleanvalidate(org.guvnor.common.services.project.model.POM pom)Validate whole POMbooleanvalidateArtifactId(String artifactId)Validate ArtifactID element of POM's GAVCollection<org.guvnor.common.services.shared.validation.model.ValidationMessage>validateForCopy(org.uberfire.backend.vfs.Path path)<T> Collection<org.guvnor.common.services.shared.validation.model.ValidationMessage>validateForCopy(org.uberfire.backend.vfs.Path path, T content)Collection<org.guvnor.common.services.shared.validation.model.ValidationMessage>validateForDelete(org.uberfire.backend.vfs.Path path)<T> Collection<org.guvnor.common.services.shared.validation.model.ValidationMessage>validateForDelete(org.uberfire.backend.vfs.Path path, T content)<T> Collection<org.guvnor.common.services.shared.validation.model.ValidationMessage>validateForSave(org.uberfire.backend.vfs.Path path, T content)booleanvalidateGAVVersion(String version)Validate Version element of POM's GAVbooleanvalidateGroupId(String groupId)Validate GroupID element of POM's GAV
-
-
-
Method Detail
-
isProjectNameValid
boolean isProjectNameValid(String projectName)
-
isPackageNameValid
boolean isPackageNameValid(String packageName)
-
isFileNameValid
boolean isFileNameValid(org.uberfire.backend.vfs.Path path, String fileName)
-
isJavaFileNameValid
boolean isJavaFileNameValid(String fileName)
-
isFileNameValid
boolean isFileNameValid(String fileName)
-
isBranchNameValid
boolean isBranchNameValid(String branchName)
-
isTimerIntervalValid
boolean isTimerIntervalValid(String timerInterval)
-
validate
boolean validate(org.guvnor.common.services.project.model.POM pom)
Validate whole POM- Parameters:
pom-- Returns:
- true if valid
-
validateGroupId
boolean validateGroupId(String groupId)
Validate GroupID element of POM's GAV- Parameters:
groupId-- Returns:
- true if valid
-
validateArtifactId
boolean validateArtifactId(String artifactId)
Validate ArtifactID element of POM's GAV- Parameters:
artifactId-- Returns:
- true if valid
-
validateGAVVersion
boolean validateGAVVersion(String version)
Validate Version element of POM's GAV- Parameters:
version-- Returns:
- true if valid
-
validateForSave
<T> Collection<org.guvnor.common.services.shared.validation.model.ValidationMessage> validateForSave(org.uberfire.backend.vfs.Path path, T content)
-
validateForCopy
<T> Collection<org.guvnor.common.services.shared.validation.model.ValidationMessage> validateForCopy(org.uberfire.backend.vfs.Path path, T content)
-
validateForCopy
Collection<org.guvnor.common.services.shared.validation.model.ValidationMessage> validateForCopy(org.uberfire.backend.vfs.Path path)
-
validateForDelete
<T> Collection<org.guvnor.common.services.shared.validation.model.ValidationMessage> validateForDelete(org.uberfire.backend.vfs.Path path, T content)
-
validateForDelete
Collection<org.guvnor.common.services.shared.validation.model.ValidationMessage> validateForDelete(org.uberfire.backend.vfs.Path path)
-
-