BrightSide Workbench Full Report + Source Code
ReferenceStatus.java
Go to the documentation of this file.
1
/*
2
* TurrĂ³ i Cutiller Foundation. License notice.
3
* Copyright (C) 2012 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.erp.entity;
19
20
import
java.util.EnumSet;
21
26
public
enum
ReferenceStatus
{
27
28
REFERENCE_PENDING
(-1),
29
REFERENCE_PLANNING
(0),
30
REFERENCE_READY
(1),
31
REFERENCE_ONWORK
(2),
32
REFERENCE_FINISHED
(3),
33
REFERENCE_DELIVERED
(4);
34
35
private
int
statusOrder;
36
37
private
ReferenceStatus
(
int
statusOrder) {
38
this.statusOrder = statusOrder;
39
}
40
41
public
int
getStatusOrder
() {
42
return
statusOrder;
43
}
44
45
public
static
boolean
hasStarted
(
ReferenceStatus
status) {
46
return
EnumSet.of(REFERENCE_READY, REFERENCE_ONWORK, REFERENCE_FINISHED, REFERENCE_DELIVERED).contains(status);
47
}
48
49
}
org.turro.erp.entity.ReferenceStatus
Definition:
ReferenceStatus.java:26
org.turro.erp.entity.ReferenceStatus.hasStarted
static boolean hasStarted(ReferenceStatus status)
Definition:
ReferenceStatus.java:45
org.turro.erp.entity.ReferenceStatus.REFERENCE_PENDING
REFERENCE_PENDING
Definition:
ReferenceStatus.java:28
org.turro.erp.entity.ReferenceStatus.getStatusOrder
int getStatusOrder()
Definition:
ReferenceStatus.java:41
org.turro.erp.entity.ReferenceStatus.REFERENCE_FINISHED
REFERENCE_FINISHED
Definition:
ReferenceStatus.java:32
org.turro.erp.entity.ReferenceStatus.REFERENCE_DELIVERED
REFERENCE_DELIVERED
Definition:
ReferenceStatus.java:33
org.turro.erp.entity.ReferenceStatus.REFERENCE_READY
REFERENCE_READY
Definition:
ReferenceStatus.java:30
org.turro.erp.entity.ReferenceStatus.REFERENCE_ONWORK
REFERENCE_ONWORK
Definition:
ReferenceStatus.java:31
org.turro.erp.entity.ReferenceStatus.REFERENCE_PLANNING
REFERENCE_PLANNING
Definition:
ReferenceStatus.java:29
TurroProjects
Public
BrightSide
bserp-core
src
main
java
org
turro
erp
entity
ReferenceStatus.java
Generated on Tue Mar 12 2024 07:01:20 for BrightSide by
1.9.1