| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
package org.kuali.rice.kew.user; |
| 18 | |
|
| 19 | |
import java.io.Serializable; |
| 20 | |
|
| 21 | |
|
| 22 | |
|
| 23 | |
|
| 24 | |
|
| 25 | |
|
| 26 | |
|
| 27 | |
|
| 28 | 0 | public class UserCapabilities implements Serializable { |
| 29 | |
|
| 30 | |
private static final long serialVersionUID = 2306224360420470187L; |
| 31 | |
|
| 32 | 0 | private boolean lookupSupported = false; |
| 33 | 0 | private boolean reportSupported = false; |
| 34 | 0 | private boolean createSupported = false; |
| 35 | 0 | private boolean editSupported = 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 | |
|
| 62 | |
public static UserCapabilities getAll() { |
| 63 | 0 | UserCapabilities capabilities = new UserCapabilities(); |
| 64 | 0 | capabilities.setCreateSupported(true); |
| 65 | 0 | capabilities.setEditSupported(true); |
| 66 | 0 | capabilities.setLookupSupported(true); |
| 67 | 0 | capabilities.setReportSupported(true); |
| 68 | 0 | return capabilities; |
| 69 | |
} |
| 70 | |
|
| 71 | |
public static UserCapabilities getReadOnly() { |
| 72 | 0 | UserCapabilities capabilities = new UserCapabilities(); |
| 73 | 0 | capabilities.setReportSupported(true); |
| 74 | 0 | capabilities.setLookupSupported(true); |
| 75 | 0 | return capabilities; |
| 76 | |
} |
| 77 | |
|
| 78 | |
} |