Package org.dspace.contentreport
Enum Class Filter
- All Implemented Interfaces:
Serializable,Comparable<Filter>,Constable
Available filters for the Filtered Collections and Filtered Items reports.
In this enum, each item corresponds to a separate property, not values of
a single property, hence the @JsonProperty applied to each of them.
For each item, the annotation value is read through reflection and copied into
the id property, which eliminates repetitions, hence reducing the risk or errors.
- Author:
- Jean-François Morin (Université Laval)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMatches items having bitstreams with a MIME type that matches one defined in the "rest.report-mime-document" configuration property.Matches items having at least one non-text bitstream.Matches items having bitstreams with a MIME type starting with "image" (e.g., image/jpeg, image/png).Matches items having at least one non-JPEG thumbnail.Matches items having at least one PDF of size more than 25 Mb (configurable in rest.cfg).Matches items having licence documentation (a licence bitstream named other than license.txt).Matches items having bitstreams of multiple types (document, image, other).Matches items having multiple original bitstreams.Matches items having no original bitstreams.Matches items having at least one non-generated thumbnail.Matches items having exactly one original bitstream.Matches items having at least one document, but all of supported types.Matches items having at least one image, but all of supported types.Matches items having at least one original without a thumbnail.Matches items having metadata with restricted access.Matches items having at least one original with restricted access.Matches items having at least one thumbnail with restricted access.Matches items having at least one PDF of size less than 20 kb (configurable in rest.cfg).Matches items having at least one thumbnail of size less than 400 bytes (configurable in rest.cfg).Matches items having at least one unsupported bundle.Matches items having at least one document of an unsupported type.Matches items having at least one image of an unsupported type.Matches items having bitstreams with a MIME type other than document (cf.Matches items having no licence-typed bitstreams. -
Method Summary
-
Enum Constant Details
-
IS_ITEM
-
IS_WITHDRAWN
-
IS_NOT_WITHDRAWN
-
IS_DISCOVERABLE
-
IS_NOT_DISCOVERABLE
-
HAS_MULTIPLE_ORIGINALS
Matches items having multiple original bitstreams. -
HAS_NO_ORIGINALS
Matches items having no original bitstreams. -
HAS_ONE_ORIGINAL
Matches items having exactly one original bitstream. -
HAS_DOC_ORIGINAL
Matches items having bitstreams with a MIME type that matches one defined in the "rest.report-mime-document" configuration property. -
HAS_IMAGE_ORIGINAL
Matches items having bitstreams with a MIME type starting with "image" (e.g., image/jpeg, image/png). -
HAS_UNSUPPORTED_TYPE
Matches items having bitstreams with a MIME type other than document (cf. HAS_DOCUMENT above) or image (cf. HAS_IMAGE_ORIGINAL above). -
HAS_MIXED_ORIGINAL
Matches items having bitstreams of multiple types (document, image, other). -
HAS_PDF_ORIGINAL
-
HAS_JPEG_ORIGINAL
-
HAS_SMALL_PDF
Matches items having at least one PDF of size less than 20 kb (configurable in rest.cfg). -
HAS_LARGE_PDF
Matches items having at least one PDF of size more than 25 Mb (configurable in rest.cfg). -
HAS_DOC_WITHOUT_TEXT
Matches items having at least one non-text bitstream. -
HAS_ONLY_SUPPORTED_IMAGE_TYPE
Matches items having at least one image, but all of supported types. -
HAS_UNSUPPORTED_IMAGE_TYPE
Matches items having at least one image of an unsupported type. -
HAS_ONLY_SUPPORTED_DOC_TYPE
Matches items having at least one document, but all of supported types. -
HAS_UNSUPPORTED_DOC_TYPE
Matches items having at least one document of an unsupported type. -
HAS_UNSUPPORTED_BUNDLE
Matches items having at least one unsupported bundle. -
HAS_SMALL_THUMBNAIL
Matches items having at least one thumbnail of size less than 400 bytes (configurable in rest.cfg). -
HAS_ORIGINAL_WITHOUT_THUMBNAIL
Matches items having at least one original without a thumbnail. -
HAS_INVALID_THUMBNAIL_NAME
Matches items having at least one non-JPEG thumbnail. -
HAS_NON_GENERATED_THUMBNAIL
Matches items having at least one non-generated thumbnail. -
NO_LICENSE
Matches items having no licence-typed bitstreams. -
HAS_LICENSE_DOCUMENTATION
Matches items having licence documentation (a licence bitstream named other than license.txt). -
HAS_RESTRICTED_ORIGINAL
Matches items having at least one original with restricted access. -
HAS_RESTRICTED_THUMBNAIL
Matches items having at least one thumbnail with restricted access. -
HAS_RESTRICTED_METADATA
Matches items having metadata with restricted access.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getId
-
getCategory
-
testItem
-
get
-
getFilters
-