📄 jahiasitegroupmanagerservice.java
字号:
//// ____.// __/\ ______| |__/\. _______// __ .____| | \ | +----+ \// _______| /--| | | - \ _ | : - \_________// \\______: :---| : : | : | \________>// |__\---\_____________:______: :____|____:_____\// /_____|//// . . . i n j a h i a w e t r u s t . . .//////package org.jahia.services.usermanager;import java.util.Hashtable;import org.jahia.services.JahiaService;import org.jahia.services.usermanager.JahiaUser;import org.jahia.exceptions.JahiaException;import org.jahia.data.JahiaDOMObject;/** * Manage groups memberhip in a multi site context. * Doesn't delete or create a group or user, only handle the association * between users, groups and sites * * @author Khue Ng */public abstract class JahiaSiteGroupManagerService extends JahiaService{ //------------------------------------------------------------------------- /** * Create a new membership for a group on a gived site * * @param int siteID, the site identifier * @param JahiaGroup group, the group to add to a site * @author NK */ public abstract boolean addGroup (int siteID, JahiaGroup grp) throws JahiaException; //------------------------------------------------------------------------- /** * Remove a group from a site, doesn't delete the group * * @param int siteID, the site identifier * @param JahiaGroup grp reference on the group to be removed from the site. * @author NK */ public abstract boolean removeGroup (int siteID, JahiaGroup grp) throws JahiaException; //------------------------------------------------------------------------- /** * Remove a group membership from all sites * * @param JahiaGroup grp, the group to be removed from all sites. * @author Khue Ng */ public abstract boolean removeGroup (JahiaGroup grp) throws JahiaException; //------------------------------------------------------------------------- /** * Remove all groups of a site ( only the membership, not the groups ) * * @param int siteID, the identifier of the site. * @author Khue Ng */ public abstract boolean removeGroups (int siteID) throws JahiaException; //------------------------------------------------------------------------- /** * This method returns an hashtable of groupname/grp_id couples of members of the requested site * * @param int siteID, the site identifier * @return Return an Hashtable of groupname/grp_id couples members of this site. * @author Khue Ng */ public abstract Hashtable getGroups (int siteID) throws JahiaException; //-------------------------------------------------------------------------- /** * return a DOM document of all groups membership of a site * * @param int the site id * * @return JahiaDOMObject a DOM representation of this object * * @author NK */ public abstract JahiaDOMObject getGroupMembershipsAsDOM( int siteID ) throws JahiaException; //-------------------------------------------------------------------------- /** * return a DOM document of external groups ( from other sites ) * that have membership access on this site * * @param int the site id * * @return JahiaDOMObject a DOM representation of this object * * @author NK */ public abstract JahiaDOMObject getAuthExternalGroupsAsDOM( int siteID ) throws JahiaException; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -