public class DefaultValidationOptions extends Object implements ValidationOptions, Serializable
ValidationOptions
Constructor and Description |
---|
DefaultValidationOptions() |
Modifier and Type | Method and Description |
---|---|
List<ACHandling> |
getForbiddenACHandlingModes()
Define a list of forbidden
ACHandling modes, such as OVERWRITE, MERGE, and CLEAR. |
List<String> |
getForbiddenExtensions()
Define a list of forbidden file extensions, each of which must begin with a period,
followed by one-to-many word characters or periods.
|
List<String> |
getForbiddenFilterRootPrefixes()
Define a list of forbidden filter root path prefixes, such as
/libs , /apps/system ,
/home , etc. |
List<String> |
getPathsDeniedForInclusion()
Define a list of paths which a package filter must exclude to be considered valid.
|
WspFilter |
getValidationFilter()
return the
WorkspaceFilter against
which a package's WorkspaceFilter
will be validated |
boolean |
isAllowNonCoveredRoots()
Allow the package filter to specify filter roots which are not covered by the validation filter, and which are not ancestors of any roots specified by the validation filter
|
DefaultValidationOptions |
setAllowNonCoveredRoots(boolean allowNonCoveredRoots) |
DefaultValidationOptions |
setForbiddenACHandlingModes(List<ACHandling> forbiddenACHandlingModes) |
DefaultValidationOptions |
setForbiddenExtensions(List<String> forbiddenExtensions) |
DefaultValidationOptions |
setForbiddenFilterRootPrefixes(List<String> forbiddenFilterRootPrefixes) |
DefaultValidationOptions |
setPathsDeniedForInclusion(List<String> pathsDeniedForInclusion) |
DefaultValidationOptions |
setValidationFilter(WspFilter validationFilter) |
public WspFilter getValidationFilter()
WorkspaceFilter
against
which a package's WorkspaceFilter
will be validatedgetValidationFilter
in interface ValidationOptions
WorkspaceFilter
public boolean isAllowNonCoveredRoots()
isAllowNonCoveredRoots
in interface ValidationOptions
public DefaultValidationOptions setValidationFilter(WspFilter validationFilter)
public DefaultValidationOptions setAllowNonCoveredRoots(boolean allowNonCoveredRoots)
public List<String> getForbiddenExtensions()
getForbiddenExtensions
in interface ValidationOptions
public DefaultValidationOptions setForbiddenExtensions(List<String> forbiddenExtensions)
public List<ACHandling> getForbiddenACHandlingModes()
ACHandling
modes, such as OVERWRITE, MERGE, and CLEAR.getForbiddenACHandlingModes
in interface ValidationOptions
ACHandling
modespublic DefaultValidationOptions setForbiddenACHandlingModes(List<ACHandling> forbiddenACHandlingModes)
public List<String> getPathsDeniedForInclusion()
getPathsDeniedForInclusion
in interface ValidationOptions
public DefaultValidationOptions setPathsDeniedForInclusion(List<String> pathsDeniedForInclusion)
public List<String> getForbiddenFilterRootPrefixes()
/libs
, /apps/system
,
/home
, etc.getForbiddenFilterRootPrefixes
in interface ValidationOptions
public DefaultValidationOptions setForbiddenFilterRootPrefixes(List<String> forbiddenFilterRootPrefixes)
Copyright © 2013-2017. All Rights Reserved.