/** * Returns an <code> IGroupMember </code> representing either a group or a portal entity. If the * parm <code> type </code> is the group type, the <code> IGroupMember </code> is an <code> * IEntityGroup </code> else it is an <code> IEntity </code> . */ public static IGroupMember getGroupMember(String key, Class<?> type) throws GroupsException { /* * WARNING: The 'type' parameter is not the leafType; you're obligated * to say whether you want a group or a non-group (i.e. some type of * entity). In fact, the underlying implementation blindly instantiates * whatever you tell it to. */ LOGGER.trace("Invoking getEntity for key='{}', type='{}'", key, type); return instance().igetGroupMember(key, type); }
/** * Returns an <code> IGroupMember </code> representing either a group or a portal entity. If the * parm <code> type </code> is the group type, the <code> IGroupMember </code> is an <code> * IEntityGroup </code> else it is an <code> IEntity </code> . */ public static IGroupMember getGroupMember(String key, Class<?> type) throws GroupsException { /* * WARNING: The 'type' parameter is not the leafType; you're obligated * to say whether you want a group or a non-group (i.e. some type of * entity). In fact, the underlying implementation blindly instantiates * whatever you tell it to. */ LOGGER.trace("Invoking getEntity for key='{}', type='{}'", key, type); return instance().igetGroupMember(key, type); }