Beispiel #1
0
 public boolean isDeletable() {
   Security security = new Security();
   return security.check(OperationsType.DELETE, sessionBean.getUser(), profile);
 }
Beispiel #2
0
 public boolean isVisible() {
   Security security = new Security();
   return security.check(OperationsType.READ, sessionBean.getUser(), profile);
 }
 @Override
 public boolean isVisible() {
   Security security = new Security();
   return security.check(OperationsType.READ, sb.getUser(), collection);
 }
 @Override
 public boolean isDeletable() {
   Security security = new Security();
   return security.check(OperationsType.DELETE, sb.getUser(), collection);
 }
Beispiel #5
0
 /**
  * true if current {@link User} can UPDATE the {@link CollectionImeji}
  *
  * @return
  */
 public boolean isEditable() {
   Security security = new Security();
   return security.check(OperationsType.UPDATE, sessionBean.getUser(), collection);
 }