| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
package org.kuali.rice.kew.workgroup; |
| 18 | |
|
| 19 | |
import java.io.Serializable; |
| 20 | |
|
| 21 | |
|
| 22 | |
|
| 23 | |
|
| 24 | |
|
| 25 | |
|
| 26 | |
|
| 27 | |
|
| 28 | 0 | public class WorkgroupCapabilities implements Serializable { |
| 29 | |
|
| 30 | |
private static final long serialVersionUID = -4776610168111831105L; |
| 31 | 0 | private boolean lookupSupported = false; |
| 32 | 0 | private boolean reportSupported = false; |
| 33 | 0 | private boolean createSupported = false; |
| 34 | 0 | private boolean editSupported = false; |
| 35 | 0 | private boolean routingSupported = false; |
| 36 | |
|
| 37 | |
public boolean isCreateSupported() { |
| 38 | 0 | return createSupported; |
| 39 | |
} |
| 40 | |
public void setCreateSupported(boolean createSupported) { |
| 41 | 0 | this.createSupported = createSupported; |
| 42 | 0 | } |
| 43 | |
public boolean isEditSupported() { |
| 44 | 0 | return editSupported; |
| 45 | |
} |
| 46 | |
public void setEditSupported(boolean editSupported) { |
| 47 | 0 | this.editSupported = editSupported; |
| 48 | 0 | } |
| 49 | |
public boolean isLookupSupported() { |
| 50 | 0 | return lookupSupported; |
| 51 | |
} |
| 52 | |
public void setLookupSupported(boolean lookupSupported) { |
| 53 | 0 | this.lookupSupported = lookupSupported; |
| 54 | 0 | } |
| 55 | |
public boolean isReportSupported() { |
| 56 | 0 | return reportSupported; |
| 57 | |
} |
| 58 | |
public void setReportSupported(boolean reportSupported) { |
| 59 | 0 | this.reportSupported = reportSupported; |
| 60 | 0 | } |
| 61 | |
public boolean isRoutingSupported() { |
| 62 | 0 | return routingSupported; |
| 63 | |
} |
| 64 | |
public void setRoutingSupported(boolean routingSupported) { |
| 65 | 0 | this.routingSupported = routingSupported; |
| 66 | 0 | } |
| 67 | |
|
| 68 | |
public static WorkgroupCapabilities getAll() { |
| 69 | 0 | WorkgroupCapabilities capabilities = new WorkgroupCapabilities(); |
| 70 | 0 | capabilities.setCreateSupported(true); |
| 71 | 0 | capabilities.setEditSupported(true); |
| 72 | 0 | capabilities.setLookupSupported(true); |
| 73 | 0 | capabilities.setReportSupported(true); |
| 74 | 0 | capabilities.setRoutingSupported(true); |
| 75 | 0 | return capabilities; |
| 76 | |
} |
| 77 | |
|
| 78 | |
public static WorkgroupCapabilities getReadOnly() { |
| 79 | 0 | WorkgroupCapabilities capabilities = new WorkgroupCapabilities(); |
| 80 | 0 | capabilities.setReportSupported(true); |
| 81 | 0 | capabilities.setLookupSupported(true); |
| 82 | 0 | return capabilities; |
| 83 | |
} |
| 84 | |
|
| 85 | |
|
| 86 | |
} |