1 17 18 package org.sape.carbon.services.security.management; 19 20 import java.util.Collection ; 21 import java.util.Map ; 22 import java.util.Set ; 23 24 import org.sape.carbon.core.component.FunctionalInterface; 25 26 44 public interface UserManagerJmxAdapter extends FunctionalInterface { 45 58 void createUser(String userName, Map userInfo) 59 throws DuplicatePrincipalException, SecurityManagementDataStoreException; 60 61 69 void removeUser(String userName) 70 throws UnknownPrincipalException, SecurityManagementDataStoreException; 71 72 85 void updatePassword(String userName, String password) 86 throws UnknownPrincipalException, SecurityManagementDataStoreException; 87 88 96 void createGroup(String groupName) 97 throws DuplicateGroupException, SecurityManagementDataStoreException; 98 99 107 void removeGroup(String groupName) 108 throws UnknownGroupException, SecurityManagementDataStoreException; 109 110 121 boolean addUserToGroup(String userName, String groupName) 122 throws UnknownPrincipalException, SecurityManagementDataStoreException; 123 124 137 boolean addGroupToGroup(String childGroupName, String parentGroupName) 138 throws 139 UnknownPrincipalException, 140 UnknownGroupException, 141 SecurityManagementDataStoreException; 142 143 156 boolean removeUserFromGroup(String userName, String groupName) 157 throws 158 UnknownPrincipalException, 159 UnknownGroupException, 160 SecurityManagementDataStoreException; 161 162 175 boolean removeGroupFromGroup(String childGroupName, String parentGroupName) 176 throws 177 UnknownGroupException, 178 UnknownPrincipalException, 179 SecurityManagementDataStoreException; 180 181 191 Collection retreiveAllMemberNames(String groupName) 192 throws UnknownGroupException, SecurityManagementDataStoreException; 193 194 199 Set retreiveAllUserNames() throws SecurityManagementDataStoreException; 200 201 206 Set retreiveAllGroupNames() throws SecurityManagementDataStoreException; 207 } 208 | Popular Tags |