KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > dspace > checker > ChecksumCheckResults


1 /*
2  * Copyright (c) 2004-2005, Hewlett-Packard Company and Massachusetts
3  * Institute of Technology. All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are
7  * met:
8  *
9  * - Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *
12  * - Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the distribution.
15  *
16  * - Neither the name of the Hewlett-Packard Company nor the name of the
17  * Massachusetts Institute of Technology nor the names of their
18  * contributors may be used to endorse or promote products derived from
19  * this software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25  * HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
28  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
29  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
30  * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
31  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
32  * DAMAGE.
33  */

34 package org.dspace.checker;
35
36 /**
37  * Enumeration of ChecksumCheckResults containing constants for checksum
38  * comparison result that must correspond to values in checksum_result table.
39  *
40  * @author Jim Downing
41  * @author Grace Carpenter
42  * @author Nathan Sarr
43  *
44  *
45  * @todo Refactor these as properties of ChecksumChecker?
46  */

47 public class ChecksumCheckResults
48 {
49     /**
50      * Bitstream not found result.
51      */

52     public static final String JavaDoc BITSTREAM_NOT_FOUND = "BITSTREAM_NOT_FOUND";
53
54     /**
55      * BitstreamInfo not found result.
56      */

57     public static final String JavaDoc BITSTREAM_INFO_NOT_FOUND = "BITSTREAM_INFO_NOT_FOUND";
58
59     /**
60      * Bitstream not to be processed result.
61      */

62     public static final String JavaDoc BITSTREAM_NOT_PROCESSED = "BITSTREAM_NOT_PROCESSED";
63
64     /**
65      * Bitstream marked as deleted result.
66      */

67     public static final String JavaDoc BITSTREAM_MARKED_DELETED = "BITSTREAM_MARKED_DELETED";
68
69     /**
70      * Bitstream tallies with recorded checksum result.
71      */

72     public static final String JavaDoc CHECKSUM_MATCH = "CHECKSUM_MATCH";
73
74     /**
75      * Bitstream digest does not tally with recorded checksum result.
76      */

77     public static final String JavaDoc CHECKSUM_NO_MATCH = "CHECKSUM_NO_MATCH";
78
79     /**
80      * Previous checksum result not found.
81      */

82     public static final String JavaDoc CHECKSUM_PREV_NOT_FOUND = "CHECKSUM_PREV_NOT_FOUND";
83
84     /**
85      * No match between requested algorithm and previously used algorithm.
86      */

87     public static final String JavaDoc CHECKSUM_ALGORITHM_INVALID = "CHECKSUM_ALGORITHM_INVALID";
88 }
89
Popular Tags