1 23 24 package org.infoglue.cms.security; 25 26 import java.util.List ; 27 import java.util.Properties ; 28 29 import org.infoglue.cms.entities.management.GroupVO; 30 import org.infoglue.cms.entities.management.RoleVO; 31 import org.infoglue.cms.entities.management.SystemUserVO; 32 import org.infoglue.cms.exception.Bug; 33 import org.infoglue.cms.exception.SystemException; 34 35 40 41 public interface AuthorizationModule 42 { 43 46 47 public boolean getSupportUpdate(); 48 49 52 53 public boolean getSupportDelete(); 54 55 58 59 public boolean getSupportCreate(); 60 61 64 65 public InfoGluePrincipal getAuthorizedInfoGluePrincipal(String userName) throws Exception ; 66 67 70 71 public InfoGlueRole getAuthorizedInfoGlueRole(String roleName) throws Exception ; 72 73 76 77 public InfoGlueGroup getAuthorizedInfoGlueGroup(String groupName) throws Exception ; 78 79 82 83 public List authorizeUser(String userName) throws Exception ; 84 85 88 89 public List getRoles() throws Exception ; 90 91 94 95 public List getGroups() throws Exception ; 96 97 100 101 public List getUsers() throws Exception ; 102 103 107 108 public List getUsers(String roleName) throws Exception ; 109 110 113 114 public List getRoleUsers(String roleName) throws Exception ; 115 116 119 120 public List getGroupUsers(String groupName) throws Exception ; 121 122 133 134 public List getFilteredUsers(String firstName, String lastName, String userName, String email, String [] roleIds) throws Exception ; 135 136 139 140 public void createInfoGluePrincipal(SystemUserVO systemUserVO) throws Exception ; 141 142 145 146 public void updateInfoGluePrincipal(SystemUserVO systemUserVO, String [] roleNames, String [] groupNames) throws Exception ; 147 148 151 152 public void updateInfoGluePrincipalPassword(String userName) throws Exception ; 153 154 157 158 public void updateInfoGluePrincipalPassword(String userName, String oldPassword, String newPassword) throws Exception ; 159 160 163 164 public void deleteInfoGluePrincipal(String userName) throws Exception ; 165 166 167 170 171 public void createInfoGlueRole(RoleVO roleVO) throws Exception ; 172 173 176 177 public void updateInfoGlueRole(RoleVO roleVO, String [] userNames) throws Exception ; 178 179 182 183 public void deleteInfoGlueRole(String roleName) throws Exception ; 184 185 186 189 190 public void createInfoGlueGroup(GroupVO groupVO) throws Exception ; 191 192 195 196 public void updateInfoGlueGroup(GroupVO roleVO, String [] userNames) throws Exception ; 197 198 201 202 public void deleteInfoGlueGroup(String groupName) throws Exception ; 203 204 public Properties getExtraProperties(); 205 206 public void setExtraProperties(Properties properties); 207 208 public void setTransactionObject(Object transactionObject); 209 210 public Object getTransactionObject(); 211 } | Popular Tags |