1 9 package org.webdocwf.dods.access; 10 11 import com.lutris.appserver.server.sql.Query; 12 import com.lutris.dods.builder.generator.dataobject.GenericDO; 13 14 public interface User { 15 16 22 public String getName(); 23 24 29 public void restrictQuery(Query query) throws AccessEvalException; 30 31 39 public boolean hasDOCopyAccess(GenericDO obj) throws AccessEvalException; 40 41 49 public boolean hasDOGetAccess(GenericDO obj) throws AccessEvalException; 50 51 59 public boolean hasDOGetVersionAccess(GenericDO obj) throws AccessEvalException; 60 61 69 public boolean hasDOIsReadOnlyAccess(GenericDO obj) throws AccessEvalException; 70 71 79 public boolean hasDOMakeReadOnlyAccess(GenericDO obj) throws AccessEvalException; 80 81 89 public boolean hasDOMakeReadWriteAccess(GenericDO obj) throws AccessEvalException; 90 91 99 public boolean hasDODeleteAccess(GenericDO obj) throws AccessEvalException; 100 101 112 public boolean hasDOGetAttrAccess(GenericDO obj, String attrName, String type, String value) throws AccessEvalException; 113 114 124 public boolean hasDOGetAttrAccess(GenericDO obj, String attrName, Object value) throws AccessEvalException; 125 126 136 public boolean hasDOGetAttrAccess(GenericDO obj, String attrName, boolean value) throws AccessEvalException; 137 138 148 public boolean hasDOGetAttrAccess(GenericDO obj, String attrName, byte value) throws AccessEvalException; 149 150 160 public boolean hasDOGetAttrAccess(GenericDO obj, String attrName, short value) throws AccessEvalException; 161 162 172 public boolean hasDOGetAttrAccess(GenericDO obj, String attrName, int value) throws AccessEvalException; 173 174 184 public boolean hasDOGetAttrAccess(GenericDO obj, String attrName, long value) throws AccessEvalException; 185 186 196 public boolean hasDOGetAttrAccess(GenericDO obj, String attrName, float value) throws AccessEvalException; 197 198 208 public boolean hasDOGetAttrAccess(GenericDO obj, String attrName, double value) throws AccessEvalException; 209 210 220 public boolean hasDOGetAttrAccess(GenericDO obj, String attrName, byte[] value) throws AccessEvalException; 221 222 230 public boolean hasDOCreateAccess(String className) throws AccessEvalException; 231 232 245 public boolean hasDOSetAttrAccess(GenericDO obj, String attrName, String oldType, String oldValue, String newType, String newValue) throws AccessEvalException; 246 247 258 public boolean hasDOSetAttrAccess(GenericDO obj, String attrName, Object oldValue, Object newValue) throws AccessEvalException; 259 260 271 public boolean hasDOSetAttrAccess(GenericDO obj, String attrName, boolean oldValue, boolean newValue) throws AccessEvalException; 272 273 284 public boolean hasDOSetAttrAccess(GenericDO obj, String attrName, byte oldValue, byte newValue) throws AccessEvalException; 285 286 297 public boolean hasDOSetAttrAccess(GenericDO obj, String attrName, short oldValue, short newValue) throws AccessEvalException; 298 299 310 public boolean hasDOSetAttrAccess(GenericDO obj, String attrName, int oldValue, int newValue) throws AccessEvalException; 311 312 323 public boolean hasDOSetAttrAccess(GenericDO obj, String attrName, long oldValue, long newValue) throws AccessEvalException; 324 325 336 public boolean hasDOSetAttrAccess(GenericDO obj, String attrName, float oldValue, float newValue) throws AccessEvalException; 337 338 349 public boolean hasDOSetAttrAccess(GenericDO obj, String attrName, double oldValue, double newValue) throws AccessEvalException; 350 351 362 public boolean hasDOSetAttrAccess(GenericDO obj, String attrName, byte[] oldValue, byte[] newValue) throws AccessEvalException; 363 364 372 public boolean hasQueryAccess(String className) throws AccessEvalException; 373 374 382 public boolean hasQueryFindAccess(GenericDO obj) throws AccessEvalException; 383 384 394 public boolean hasQueryAttrAccess(String className, String attrName, Object queryValue, String cmp_op) throws AccessEvalException; 395 396 406 public boolean hasQueryAttrAccess(String className, String attrName, boolean queryValue, String cmp_op) throws AccessEvalException; 407 408 418 public boolean hasQueryAttrAccess(String className, String attrName, byte queryValue, String cmp_op) throws AccessEvalException; 419 420 430 public boolean hasQueryAttrAccess(String className, String attrName, short queryValue, String cmp_op) throws AccessEvalException; 431 432 442 public boolean hasQueryAttrAccess(String className, String attrName, int queryValue, String cmp_op) throws AccessEvalException; 443 444 454 public boolean hasQueryAttrAccess(String className, String attrName, long queryValue, String cmp_op) throws AccessEvalException; 455 456 466 public boolean hasQueryAttrAccess(String className, String attrName, float queryValue, String cmp_op) throws AccessEvalException; 467 468 478 public boolean hasQueryAttrAccess(String className, String attrName, double queryValue, String cmp_op) throws AccessEvalException; 479 480 490 public boolean hasQueryAttrAccess(String className, String attrName, byte[] queryValue, String cmp_op) throws AccessEvalException; 491 } 492 | Popular Tags |