1 15 package org.jahia.services.usermanager; 16 17 import org.jahia.data.JahiaDOMObject; 18 import org.jahia.exceptions.JahiaException; 19 import org.jahia.services.JahiaService; 20 21 import java.util.Properties ; 22 import java.util.Set ; 23 import java.util.Vector ; 24 25 26 public abstract class JahiaGroupManagerService extends JahiaService { 27 28 public static final String USERS_GROUPNAME = "users"; 29 public static final String ADMINISTRATORS_GROUPNAME = "administrators"; 30 public static final String GUEST_GROUPNAME = "guest"; 31 32 33 42 public abstract Vector getProviderList (); 43 44 53 public abstract JahiaGroup createGroup (int siteID, String name, Properties properties); 54 55 56 68 public abstract JahiaGroup lookupGroup (int siteID, String name); 69 70 71 82 public abstract JahiaGroup lookupGroup (String groupID); 83 84 85 94 public abstract boolean deleteGroup (JahiaGroup group); 95 96 97 108 public abstract boolean groupExists (int siteID, String name); 109 110 111 119 public abstract boolean removeUserFromAllGroups (JahiaUser user); 120 121 128 public abstract Vector getGroupnameList (); 129 130 139 public abstract Vector getGroupnameList (int siteID); 140 141 150 public abstract Vector getGroupList (int siteID); 151 152 163 public abstract Vector getGroupList (); 164 165 174 public abstract Vector getUserMembership (JahiaUser user); 175 176 177 181 public abstract JahiaGroup getAdministratorGroup (int siteID); 182 183 184 190 public abstract JahiaGroup getGuestGroup (int siteID); 191 192 205 public abstract Set searchGroups (int siteID, Properties searchCriterias); 206 207 222 public abstract Set searchGroups (String providerKey, int siteID, 223 Properties searchCriterias); 224 234 public abstract Vector getAdminGrantedSites (JahiaUser user) throws JahiaException; 235 236 237 247 public abstract JahiaDOMObject getGroupsAsDOM (int siteID) 248 throws JahiaException; 249 250 260 public abstract JahiaDOMObject getGroupPropsAsDOM (int siteID) 261 throws JahiaException; 262 263 264 274 public abstract JahiaDOMObject getAppRoleGroupsAsDOM (int siteID) 275 throws JahiaException; 276 277 278 288 public abstract JahiaDOMObject getUserGroupAccessAsDOM (int siteID) 289 throws JahiaException; 290 291 292 303 public abstract JahiaDOMObject getAppGroupAccessAsDOM (int siteID) 304 throws JahiaException; 305 306 312 public abstract void updateCache(JahiaGroup jahiaGroup); 313 314 } 315 | Popular Tags |