public abstract class AbstractGroup extends java.lang.Object implements Group
Group.GroupType
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
protected java.util.TreeSet<java.lang.String> |
members |
Modifier | Constructor and Description |
---|---|
protected |
AbstractGroup()
Constructor
|
protected |
AbstractGroup(com.hcl.domino.data.Document doc)
Loads a Group from a Document
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAdministrators() |
java.lang.String |
getCategory() |
java.lang.String |
getDescription() |
java.lang.String |
getInternetAddress() |
java.lang.String |
getMailDomain() |
java.util.TreeSet<java.lang.String> |
getMembers() |
java.lang.String |
getMetaversalId() |
java.lang.String |
getName() |
java.lang.String |
getNoteId() |
java.util.List<java.lang.String> |
getOwners() |
Group.GroupType |
getType() |
java.lang.String |
getUnid() |
void |
loadMetadata(com.hcl.domino.data.Database db,
com.hcl.domino.data.Document doc)
Sets metaversalID and UNID from database and note
|
void |
resolve(KeepJnxSession s,
java.util.Map<java.lang.String,java.lang.String> groups)
Iterates through groups to expand out all members to individuals’ names
|
protected java.util.TreeSet<java.lang.String> |
resolveRecursive(KeepJnxSession s,
java.lang.String groupName,
java.util.TreeSet<java.lang.String> incomingMembers,
java.util.ArrayList<java.lang.String> traversedGroups,
java.util.TreeSet<java.lang.String> previousMembers,
java.util.Map<java.lang.String,java.lang.String> allGroups) |
void |
setAdministrators(java.util.List<java.lang.String> administrators) |
void |
setCategory(java.lang.String category) |
void |
setDescription(java.lang.String description) |
void |
setInternetAddress(java.lang.String internetAddress) |
void |
setMailDomain(java.lang.String mailDomain) |
void |
setName(java.lang.String name) |
void |
setOwners(java.util.List<java.lang.String> owners) |
void |
setType(Group.GroupType type) |
void |
writeToNote(com.hcl.domino.data.Document doc)
Serializes values from Group to a specific Document
|
protected static final org.slf4j.Logger logger
protected java.util.TreeSet<java.lang.String> members
protected AbstractGroup()
Constructor
protected AbstractGroup(com.hcl.domino.data.Document doc)
Loads a Group from a Document
doc
- Document from which to load valuespublic java.util.List<java.lang.String> getAdministrators()
getAdministrators
in interface Group
public java.lang.String getCategory()
getCategory
in interface Group
public java.lang.String getDescription()
getDescription
in interface Group
public java.lang.String getInternetAddress()
getInternetAddress
in interface Group
public java.lang.String getMailDomain()
getMailDomain
in interface Group
public java.util.TreeSet<java.lang.String> getMembers()
getMembers
in interface Group
public java.lang.String getMetaversalId()
getMetaversalId
in interface Group
public java.lang.String getName()
public java.lang.String getNoteId()
public java.util.List<java.lang.String> getOwners()
public Group.GroupType getType()
public java.lang.String getUnid()
public void loadMetadata(com.hcl.domino.data.Database db, com.hcl.domino.data.Document doc)
Group
Sets metaversalID and UNID from database and note
loadMetadata
in interface Group
db
- doc
- public void resolve(KeepJnxSession s, java.util.Map<java.lang.String,java.lang.String> groups)
Group
Iterates through groups to expand out all members to individuals’ names
public void setAdministrators(java.util.List<java.lang.String> administrators)
setAdministrators
in interface Group
administrators
- for the group, either named individuals or other groupspublic void setCategory(java.lang.String category)
setCategory
in interface Group
category
- used for grouping groups in the Notes Clientpublic void setDescription(java.lang.String description)
setDescription
in interface Group
description
- for the grouppublic void setInternetAddress(java.lang.String internetAddress)
setInternetAddress
in interface Group
internetAddress
- only relevant to mail groups or multi-purpose groups used for mailingpublic void setMailDomain(java.lang.String mailDomain)
setMailDomain
in interface Group
mailDomain
- only relevant to mail groups or multi-purpose groups used for mailingpublic void setName(java.lang.String name)
public void setOwners(java.util.List<java.lang.String> owners)
public void setType(Group.GroupType type)
public void writeToNote(com.hcl.domino.data.Document doc)
Group
Serializes values from Group to a specific Document
writeToNote
in interface Group
doc
- NoteNote to which to write valuesprotected java.util.TreeSet<java.lang.String> resolveRecursive(KeepJnxSession s, java.lang.String groupName, java.util.TreeSet<java.lang.String> incomingMembers, java.util.ArrayList<java.lang.String> traversedGroups, java.util.TreeSet<java.lang.String> previousMembers, java.util.Map<java.lang.String,java.lang.String> allGroups)
s
- incomingMembers
- traversedGroups
- previousMembers
- allGroups
-