public boolean isDeletable() { Security security = new Security(); return security.check(OperationsType.DELETE, sessionBean.getUser(), profile); }
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); }
/** * 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); }