public String deleteSpri() {
try {
SPrivlege s = this.sPrivlegeManager.getSPriv(sp);
/**获取s关联的所有GROUP对象集合**/
Set<Group> groups=s.getGroups();
for(Group g:groups){
/**取消关联**/
g.getSprivleges().remove(s);
}
/**删除**/
this.sPrivlegeManager.delete(s);
return SUCCESS;
} catch (Exception e) {
System.out.println(e.getMessage());
return
ERROR;
}
}