|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.integration.jive.CrowdGroup
public class CrowdGroup
This is a modified version of the Jive LDAP group integration class LdapGroup. All calls to LDAP have been replaced with calls to Crowd.
Thus the caching mechanisms and inherent inefficiency in some of the calls have been retained from the original implementation. This is "as good as" Jive's LDAP implementation.
| Constructor Summary | |
|---|---|
protected |
CrowdGroup(long ID)
Creates a new CrowdGroup. |
protected |
CrowdGroup(java.lang.String name,
java.lang.String description,
java.util.List members)
Creates a new CrowdGroup. |
| Method Summary | |
|---|---|
void |
addAdministrator(com.jivesoftware.base.User user)
|
void |
addMember(com.jivesoftware.base.User user)
|
void |
deleteProperty(java.lang.String name)
|
boolean |
equals(java.lang.Object object)
|
int |
getAdministratorCount()
|
java.util.Iterator |
getAdministrators()
|
int |
getCachedSize()
|
java.util.Date |
getCreationDate()
|
java.lang.String |
getDescription()
|
long |
getID()
|
int |
getMemberCount()
|
java.util.Iterator |
getMembers()
|
java.util.Date |
getModificationDate()
|
java.lang.String |
getName()
|
com.jivesoftware.base.Permissions |
getPermissions(com.jivesoftware.base.AuthToken auth)
|
java.lang.String |
getProperty(java.lang.String name)
|
java.util.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(java.util.Date creationDate)
|
void |
setDescription(java.lang.String description)
|
void |
setModificationDate(java.util.Date modificationDate)
|
void |
setName(java.lang.String name)
|
void |
setProperty(java.lang.String name,
java.lang.String value)
|
java.lang.String |
toString()
Returns a String representation of the Group object using the group name. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected CrowdGroup(java.lang.String name,
java.lang.String description,
java.util.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| Method Detail |
|---|
public long getID()
getID in interface com.jivesoftware.base.Grouppublic java.lang.String getName()
getName in interface com.jivesoftware.base.Group
public void setName(java.lang.String name)
throws com.jivesoftware.base.UnauthorizedException
setName in interface com.jivesoftware.base.Groupcom.jivesoftware.base.UnauthorizedExceptionpublic java.lang.String getDescription()
getDescription in interface com.jivesoftware.base.Group
public void setDescription(java.lang.String description)
throws com.jivesoftware.base.UnauthorizedException
setDescription in interface com.jivesoftware.base.Groupcom.jivesoftware.base.UnauthorizedExceptionpublic java.util.Date getCreationDate()
getCreationDate in interface com.jivesoftware.base.Group
public void setCreationDate(java.util.Date creationDate)
throws com.jivesoftware.base.UnauthorizedException
setCreationDate in interface com.jivesoftware.base.Groupcom.jivesoftware.base.UnauthorizedExceptionpublic java.util.Date getModificationDate()
getModificationDate in interface com.jivesoftware.base.Group
public void setModificationDate(java.util.Date modificationDate)
throws com.jivesoftware.base.UnauthorizedException
setModificationDate in interface com.jivesoftware.base.Groupcom.jivesoftware.base.UnauthorizedExceptionpublic java.lang.String getProperty(java.lang.String name)
getProperty in interface com.jivesoftware.base.Group
public void setProperty(java.lang.String name,
java.lang.String value)
throws com.jivesoftware.base.UnauthorizedException
setProperty in interface com.jivesoftware.base.Groupcom.jivesoftware.base.UnauthorizedException
public void deleteProperty(java.lang.String name)
throws com.jivesoftware.base.UnauthorizedException
deleteProperty in interface com.jivesoftware.base.Groupcom.jivesoftware.base.UnauthorizedExceptionpublic java.util.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.Groupcom.jivesoftware.base.UnauthorizedException
public void removeAdministrator(com.jivesoftware.base.User user)
throws com.jivesoftware.base.UnauthorizedException
removeAdministrator in interface com.jivesoftware.base.Groupcom.jivesoftware.base.UnauthorizedException
public void addMember(com.jivesoftware.base.User user)
throws com.jivesoftware.base.UnauthorizedException
addMember in interface com.jivesoftware.base.Groupcom.jivesoftware.base.UnauthorizedException
public void removeMember(com.jivesoftware.base.User user)
throws com.jivesoftware.base.UnauthorizedException
removeMember in interface com.jivesoftware.base.Groupcom.jivesoftware.base.UnauthorizedExceptionpublic boolean isAdministrator(com.jivesoftware.base.User user)
isAdministrator in interface com.jivesoftware.base.Grouppublic boolean isMember(com.jivesoftware.base.User user)
isMember in interface com.jivesoftware.base.Grouppublic int getAdministratorCount()
getAdministratorCount in interface com.jivesoftware.base.Grouppublic int getMemberCount()
getMemberCount in interface com.jivesoftware.base.Grouppublic java.util.Iterator getMembers()
getMembers in interface com.jivesoftware.base.Grouppublic java.util.Iterator getAdministrators()
getAdministrators in interface com.jivesoftware.base.Grouppublic com.jivesoftware.base.Permissions getPermissions(com.jivesoftware.base.AuthToken auth)
getPermissions in interface com.jivesoftware.base.Grouppublic boolean isAuthorized(long permissionType)
isAuthorized in interface com.jivesoftware.base.Grouppublic int getCachedSize()
getCachedSize in interface com.jivesoftware.util.Cacheablepublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||