Line 29... |
Line 29... |
29 |
public static final String DELETE_ROW_TABLE = "DELETE_ROW";
|
29 |
public static final String DELETE_ROW_TABLE = "DELETE_ROW";
|
30 |
public static final String MODIFY_ROW_TABLE = "UPDATE_ROW";
|
30 |
public static final String MODIFY_ROW_TABLE = "UPDATE_ROW";
|
31 |
public static final String ADD_ROW_TABLE = "INSERT_ROW";
|
31 |
public static final String ADD_ROW_TABLE = "INSERT_ROW";
|
32 |
public static final String VIEW_ROW_TABLE = "SELECT_ROW";
|
32 |
public static final String VIEW_ROW_TABLE = "SELECT_ROW";
|
33 |
public static final String SAVE_ROW_TABLE = "SAVE_ROW";
|
33 |
public static final String SAVE_ROW_TABLE = "SAVE_ROW";
|
- |
|
34 |
public static final String USER_UI_LOCK_ROW = "LIST_UI_LOCK_ROWS";
|
- |
|
35 |
public static final String USER_UI_UNLOCK_ROW = "LIST_UI_UNLOCK_ROWS";
|
34 |
|
36 |
|
35 |
public static final List<String> getCodes() {
|
37 |
public static final List<String> getCodes() {
|
36 |
return Arrays.asList(CODE, CODE_MODIF, DELETE_ROW_TABLE, MODIFY_ROW_TABLE, ADD_ROW_TABLE, VIEW_ROW_TABLE, SAVE_ROW_TABLE);
|
38 |
return Arrays.asList(CODE, CODE_MODIF, DELETE_ROW_TABLE, MODIFY_ROW_TABLE, ADD_ROW_TABLE, VIEW_ROW_TABLE, SAVE_ROW_TABLE, USER_UI_UNLOCK_ROW, USER_UI_LOCK_ROW);
|
37 |
}
|
39 |
}
|
38 |
|
40 |
|
39 |
public static RightTuple createRight(final SQLTable t, final boolean b) {
|
41 |
public static RightTuple createRight(final SQLTable t, final boolean b) {
|
40 |
return createRight(CODE, t, b);
|
42 |
return createRight(CODE, t, b);
|
41 |
}
|
43 |
}
|
Line 117... |
Line 119... |
117 |
public List<RightTuple> expand(UserRightsManager mngr, String rightCode, String object, boolean haveRight) {
|
119 |
public List<RightTuple> expand(UserRightsManager mngr, String rightCode, String object, boolean haveRight) {
|
118 |
final List<RightTuple> res = new ArrayList<RightTuple>();
|
120 |
final List<RightTuple> res = new ArrayList<RightTuple>();
|
119 |
res.add(new RightTuple(DELETE_ROW_TABLE, object, haveRight));
|
121 |
res.add(new RightTuple(DELETE_ROW_TABLE, object, haveRight));
|
120 |
res.add(new RightTuple(MODIFY_ROW_TABLE, object, haveRight));
|
122 |
res.add(new RightTuple(MODIFY_ROW_TABLE, object, haveRight));
|
121 |
res.add(new RightTuple(ADD_ROW_TABLE, object, haveRight));
|
123 |
res.add(new RightTuple(ADD_ROW_TABLE, object, haveRight));
|
- |
|
124 |
res.add(new RightTuple(USER_UI_LOCK_ROW, object, haveRight));
|
- |
|
125 |
res.add(new RightTuple(USER_UI_UNLOCK_ROW, object, haveRight));
|
122 |
if (getCode() == CODE)
|
126 |
if (getCode() == CODE)
|
123 |
res.add(new RightTuple(VIEW_ROW_TABLE, object, haveRight));
|
127 |
res.add(new RightTuple(VIEW_ROW_TABLE, object, haveRight));
|
124 |
return res;
|
128 |
return res;
|
125 |
}
|
129 |
}
|
126 |
}
|
130 |
}
|