1 package org.apache.fulcrum.security.entity; 2 3 56 57 import org.apache.fulcrum.security.util.RoleSet; 58 import org.apache.fulcrum.security.util.TurbineSecurityException; 59 60 69 public interface Group extends SecurityEntity 70 { 71 74 public static final String GLOBAL_GROUP_NAME = "global"; 75 76 81 String getName(); 82 83 88 void setName(String name); 89 90 96 void save() 97 throws TurbineSecurityException; 98 99 104 void remove() 105 throws TurbineSecurityException; 106 107 113 void rename(String name) 114 throws TurbineSecurityException; 115 116 124 void grant(User user, Role role) 125 throws TurbineSecurityException; 126 127 135 void grant(User user, RoleSet roleSet) 136 throws TurbineSecurityException; 137 138 146 void revoke(User user, Role role) 147 throws TurbineSecurityException; 148 149 157 void revoke(User user, RoleSet roleSet) 158 throws TurbineSecurityException; 159 160 } 161 | Popular Tags |