Example #1
0
 public boolean isDeletable() {
   Security security = new Security();
   return security.check(OperationsType.DELETE, sessionBean.getUser(), profile);
 }
Example #2
0
 public boolean isVisible() {
   Security security = new Security();
   return security.check(OperationsType.READ, sessionBean.getUser(), profile);
 }
Example #3
0
 @Override
 public boolean isVisible() {
   Security security = new Security();
   return security.check(OperationsType.READ, sb.getUser(), collection);
 }
Example #4
0
 @Override
 public boolean isDeletable() {
   Security security = new Security();
   return security.check(OperationsType.DELETE, sb.getUser(), collection);
 }
Example #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);
 }