Package org.beangle.ems.security.restrict

Examples of org.beangle.ems.security.restrict.RestrictEntity


    entityDao.saveOrUpdate(pattern);
    return redirect("patterns", "info.save.success");
  }

  public String saveEntity() {
    RestrictEntity entity = (RestrictEntity) populateEntity(RestrictEntity.class, "entity");
    if (null != entity.getName()) {
      entityDao.saveOrUpdate(entity);
      logger.info("save restrict entity with name {}", entity.getName());
    }
    return redirect("fields", "info.save.success");
  }
View Full Code Here


  }

  public String removeEntity() {
    Long entityId = getEntityId("entity");
    if (null != entityId) {
      RestrictEntity entity = (RestrictEntity) entityDao.get(RestrictEntity.class, entityId);
      try {
        entityDao.remove(entity);
      } catch (Exception e) {
        return redirect("fields", "info.remove.failure");
      }
      logger.info("remove entity with name {}", entity.getName());
    }
    return redirect("fields", "info.remove.success");
  }
View Full Code Here

TOP

Related Classes of org.beangle.ems.security.restrict.RestrictEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.