public class CrowdGroup extends Object implements com.jivesoftware.base.Group, com.jivesoftware.util.Cacheable
Modifier | Constructor and Description |
---|---|
protected |
CrowdGroup(long ID)
Creates a new CrowdGroup.
|
protected |
CrowdGroup(String name,
String description,
List members)
Creates a new CrowdGroup.
|
Modifier and Type | Method and Description |
---|---|
void |
addAdministrator(com.jivesoftware.base.User user) |
void |
addMember(com.jivesoftware.base.User user) |
void |
deleteProperty(String name) |
boolean |
equals(Object object) |
int |
getAdministratorCount() |
Iterator |
getAdministrators() |
int |
getCachedSize() |
Date |
getCreationDate() |
String |
getDescription() |
long |
getID() |
int |
getMemberCount() |
Iterator |
getMembers() |
Date |
getModificationDate() |
String |
getName() |
com.jivesoftware.base.Permissions |
getPermissions(com.jivesoftware.base.AuthToken auth) |
String |
getProperty(String name) |
Iterator |
getPropertyNames() |
int |
hashCode() |
boolean |
isAdministrator(com.jivesoftware.base.User user) |
boolean |
isAuthorized(long permissionType) |
boolean |
isMember(com.jivesoftware.base.User user) |
void |
removeAdministrator(com.jivesoftware.base.User user) |
void |
removeMember(com.jivesoftware.base.User user) |
void |
setCreationDate(Date creationDate) |
void |
setDescription(String description) |
void |
setModificationDate(Date modificationDate) |
void |
setName(String name) |
void |
setProperty(String name,
String value) |
String |
toString()
Returns a String representation of the Group object using the group name.
|
protected CrowdGroup(String name, String description, List members)
name
- the name for the new entry.protected CrowdGroup(long ID) throws com.jivesoftware.base.GroupNotFoundException
ID
- the ID for the existing entry.com.jivesoftware.base.GroupNotFoundException
public long getID()
getID
in interface com.jivesoftware.base.Group
public String getName()
getName
in interface com.jivesoftware.base.Group
public void setName(String name) throws com.jivesoftware.base.UnauthorizedException
setName
in interface com.jivesoftware.base.Group
com.jivesoftware.base.UnauthorizedException
public String getDescription()
getDescription
in interface com.jivesoftware.base.Group
public void setDescription(String description) throws com.jivesoftware.base.UnauthorizedException
setDescription
in interface com.jivesoftware.base.Group
com.jivesoftware.base.UnauthorizedException
public Date getCreationDate()
getCreationDate
in interface com.jivesoftware.base.Group
public void setCreationDate(Date creationDate) throws com.jivesoftware.base.UnauthorizedException
setCreationDate
in interface com.jivesoftware.base.Group
com.jivesoftware.base.UnauthorizedException
public Date getModificationDate()
getModificationDate
in interface com.jivesoftware.base.Group
public void setModificationDate(Date modificationDate) throws com.jivesoftware.base.UnauthorizedException
setModificationDate
in interface com.jivesoftware.base.Group
com.jivesoftware.base.UnauthorizedException
public String getProperty(String name)
getProperty
in interface com.jivesoftware.base.Group
public void setProperty(String name, String value) throws com.jivesoftware.base.UnauthorizedException
setProperty
in interface com.jivesoftware.base.Group
com.jivesoftware.base.UnauthorizedException
public void deleteProperty(String name) throws com.jivesoftware.base.UnauthorizedException
deleteProperty
in interface com.jivesoftware.base.Group
com.jivesoftware.base.UnauthorizedException
public Iterator getPropertyNames()
getPropertyNames
in interface com.jivesoftware.base.Group
public void addAdministrator(com.jivesoftware.base.User user) throws com.jivesoftware.base.UnauthorizedException
addAdministrator
in interface com.jivesoftware.base.Group
com.jivesoftware.base.UnauthorizedException
public void removeAdministrator(com.jivesoftware.base.User user) throws com.jivesoftware.base.UnauthorizedException
removeAdministrator
in interface com.jivesoftware.base.Group
com.jivesoftware.base.UnauthorizedException
public void addMember(com.jivesoftware.base.User user) throws com.jivesoftware.base.UnauthorizedException
addMember
in interface com.jivesoftware.base.Group
com.jivesoftware.base.UnauthorizedException
public void removeMember(com.jivesoftware.base.User user) throws com.jivesoftware.base.UnauthorizedException
removeMember
in interface com.jivesoftware.base.Group
com.jivesoftware.base.UnauthorizedException
public boolean isAdministrator(com.jivesoftware.base.User user)
isAdministrator
in interface com.jivesoftware.base.Group
public boolean isMember(com.jivesoftware.base.User user)
isMember
in interface com.jivesoftware.base.Group
public int getAdministratorCount()
getAdministratorCount
in interface com.jivesoftware.base.Group
public int getMemberCount()
getMemberCount
in interface com.jivesoftware.base.Group
public Iterator getMembers()
getMembers
in interface com.jivesoftware.base.Group
public Iterator getAdministrators()
getAdministrators
in interface com.jivesoftware.base.Group
public com.jivesoftware.base.Permissions getPermissions(com.jivesoftware.base.AuthToken auth)
getPermissions
in interface com.jivesoftware.base.Group
public boolean isAuthorized(long permissionType)
isAuthorized
in interface com.jivesoftware.base.Group
public int getCachedSize()
getCachedSize
in interface com.jivesoftware.util.Cacheable
public String toString()
Copyright © 2013 Atlassian. All Rights Reserved.