BrightSide Workbench Full Report + Source Code
AcceptanceStatus.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2011 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 package org.turro.action;
19 
24 public enum AcceptanceStatus {
25 
26  FULLY_ACCEPTED("/_zul/images/acceptation_accepted.png", true),
27  FULLY_PENDING("/_zul/images/acceptation_pending.png", false),
28  SELF_ACCEPTED("/_zul/images/acceptation_accepted_self.png", false),
29  SELF_PENDING("/_zul/images/acceptation_pending_self.png", false),
30  SOME_PENDING("/_zul/images/acceptation_pending.png", false),
31  NONE_EXISTS("/_zul/images/acceptation.png", true);
32 
33  private String image;
34  private boolean pass;
35 
36  private AcceptanceStatus(String image, boolean pass) {
37  this.image = image;
38  this.pass = pass;
39  }
40 
41  public String getImage() {
42  return image;
43  }
44 
45  public boolean isPass() {
46  return pass;
47  }
48 
49 }