1 16 17 package org.apache.jetspeed.om.registry; 18 19 import java.util.Vector ; 21 22 import org.apache.jetspeed.om.SecurityReference; 24 import org.apache.jetspeed.om.registry.MetaInfo; 25 26 35 36 public interface SecurityEntry { 37 38 41 public Vector getAccesses(); 42 43 46 public void setAccesses(Vector accesses); 47 48 51 public String getName(); 52 53 56 public void setName(String name); 57 58 61 public String getDescription(); 62 63 66 public void setDescription(String description); 67 68 71 public SecurityReference getSecurityRef(); 72 73 76 public void setSecurityRef(SecurityReference securityRef); 77 78 81 public String getTitle(); 82 83 86 public void setTitle(String title); 87 88 91 public MetaInfo getMetaInfo(); 92 93 96 public void setMetaInfo(MetaInfo metaInfo); 97 98 101 public boolean isHidden(); 102 103 106 public void setHidden(boolean hidden); 107 108 111 public long getId(); 112 113 120 public boolean allowsRole(String role, String action); 121 122 129 public boolean allowsGroup(String group, String action); 130 131 139 public boolean allowsGroupRole(String group, String role, String action); 140 141 148 public boolean allowsUser(String userName, String action); 149 150 158 boolean allowsUser(String userName, String action, String ownerUserName); 159 160 169 boolean grantRoleAccess(String action, String role); 170 171 179 boolean allowsSpecificRole(String action, String role); 180 181 190 boolean grantGroupAccess(String action, String group); 191 192 200 boolean allowsSpecificGroup(String action, String group); 201 202 212 boolean grantGroupRoleAccess(String action, String group, String role); 213 214 223 boolean allowsSpecificGroupRole(String action, String group, String role); 224 225 235 SecurityAccess getAccess(String action); 236 237 245 boolean allowsSpecificUser(String action, String user); 246 247 256 boolean grantUserAccess(String action, String user); 257 258 264 void revokeAccess(String action); 265 266 273 boolean revokeUserAccess(String action, String user); 274 275 282 boolean revokeRoleAccess(String action, String role); 283 284 291 boolean revokeGroupAccess(String action, String group); 292 293 301 boolean revokeGroupRoleAccess(String action, String group, String role); 302 303 } 304 | Popular Tags |