|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.forum.webservices.server.GroupServiceImpl
public class GroupServiceImpl
| Constructor Summary | |
|---|---|
GroupServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addAdministratorToGroup(long userID,
long groupID)
Make the user with the specified userID an administrator of the group with the specified groupID. |
void |
addMemberToGroup(long userID,
long groupID)
Add the user with the specified userID to the group with the specified groupID. |
Group |
createGroup(java.lang.String name,
java.lang.String description)
Creates a new group. |
void |
deleteGroup(long groupID)
Delete the group with the specified id. |
void |
deleteProperty(java.lang.String name,
long groupID)
Deletes an extended property from the specfied group. |
int |
getAdministratorCount(long groupID)
Returns the count of how many administrators there are for the group with the specified ID. |
Group |
getGroup(long id)
Returns a Group by its ID. |
User[] |
getGroupAdmins(long groupID)
Returns an array of all the user IDs that administer this group. |
Group |
getGroupByName(java.lang.String name)
Returns a Group by its name. |
int |
getGroupCount()
Returns a count of all groups in the system. |
User[] |
getGroupMembers(long groupID)
Returns an array of all userIDs for all the members of a particular group. |
Group[] |
getGroups()
Returns an array of all the group IDs for all the groups in the system. |
Property[] |
getProperties(long groupID)
Returns an array of all the extended properties for a group. |
Group[] |
getUserGroups(long userID)
Returns an array of all the group IDs that a user belongs too. |
void |
removeAdministratorFromGroup(long userID,
long groupID)
Remove the user with the specified ID as an administrator from the group with the specified ID. |
void |
removeMemberFromGroup(long userID,
long groupID)
Remove the user with the specified id from the group with the specified id. |
void |
setProperty(java.lang.String name,
java.lang.String value,
long groupID)
Set a new extended property on the specified group. |
void |
updateGroup(Group group)
Update the following group in the system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroupServiceImpl()
| Method Detail |
|---|
public Group getGroup(long id)
throws GroupNotFoundException
GroupServiceGroup by its ID.
getGroup in interface GroupServiceid - The ID of the group.
GroupNotFoundException
public Group getGroupByName(java.lang.String name)
throws GroupNotFoundException
GroupServiceGroup by its name.
getGroupByName in interface GroupServicename - The name of the group.
GroupNotFoundException
public User[] getGroupMembers(long groupID)
throws GroupNotFoundException
GroupService
getGroupMembers in interface GroupServicegroupID - The ID of the group to acquire members for.
GroupNotFoundExceptionpublic int getGroupCount()
GroupService
getGroupCount in interface GroupServicepublic Group[] getGroups()
GroupService
getGroups in interface GroupService
public Group[] getUserGroups(long userID)
throws UserNotFoundException
GroupService
getUserGroups in interface GroupServiceuserID - The ID of the user to acquire group IDs for.
UserNotFoundException
public User[] getGroupAdmins(long groupID)
throws GroupNotFoundException
GroupService
getGroupAdmins in interface GroupServicegroupID - The group ID to acquire administrator IDs for.
GroupNotFoundException
public int getAdministratorCount(long groupID)
throws GroupNotFoundException
GroupService
getAdministratorCount in interface GroupServicegroupID - The ID of the group to acquire the administrator count for.
GroupNotFoundException
public Group createGroup(java.lang.String name,
java.lang.String description)
throws GroupAlreadyExistsException
GroupService
createGroup in interface GroupServicename - The name of the group.description - A short description of this group.
GroupAlreadyExistsException
public void deleteGroup(long groupID)
throws GroupNotFoundException
GroupService
deleteGroup in interface GroupServicegroupID - The id of the group to delete.
GroupNotFoundException
public void updateGroup(Group group)
throws GroupNotFoundException
GroupService
updateGroup in interface GroupServicegroup - The group to update.
GroupNotFoundException
public Property[] getProperties(long groupID)
throws GroupNotFoundException
GroupService
getProperties in interface GroupServicegroupID - The ID of the group to acquire extended properties for.
GroupNotFoundException
public void setProperty(java.lang.String name,
java.lang.String value,
long groupID)
throws GroupNotFoundException
GroupService
setProperty in interface GroupServicename - The extended property name.value - The extended property value.groupID - The ID of the group to set the extended property on.
GroupNotFoundException
public void deleteProperty(java.lang.String name,
long groupID)
throws GroupNotFoundException
GroupService
deleteProperty in interface GroupServicename - The name of the extended property to delete.groupID - The id of the group to delete an extended property from.
GroupNotFoundException
public void addMemberToGroup(long userID,
long groupID)
throws UserNotFoundException,
GroupNotFoundException
GroupService
addMemberToGroup in interface GroupServiceuserID - The ID of the user to add to a group.groupID - The ID of the group to add a user too.
UserNotFoundException
GroupNotFoundException
public void addAdministratorToGroup(long userID,
long groupID)
throws UserNotFoundException,
GroupNotFoundException
GroupService
addAdministratorToGroup in interface GroupServiceuserID - The ID of the user to add as a member to a group.groupID - The ID of the group to make a user an administrator for.
UserNotFoundException
GroupNotFoundException
public void removeMemberFromGroup(long userID,
long groupID)
throws UserNotFoundException,
GroupNotFoundException
GroupService
removeMemberFromGroup in interface GroupServiceuserID - The ID of the User to remove from a group.groupID - The ID of the group to remove a user from.
UserNotFoundException
GroupNotFoundException
public void removeAdministratorFromGroup(long userID,
long groupID)
throws UserNotFoundException,
GroupNotFoundException
GroupService
removeAdministratorFromGroup in interface GroupServiceuserID - The ID of the user to remove admin status from a group.groupID - The ID of the group to remove the user as an admin.
UserNotFoundException
GroupNotFoundException
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||