Class ContactGroup
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.service.ServiceObject
-
- microsoft.exchange.webservices.data.core.service.item.Item
-
- microsoft.exchange.webservices.data.core.service.item.ContactGroup
-
public class ContactGroup extends Item
Represents a Contact Group. Properties available on contact groups are defined in the ContactGroupSchema class.
-
-
Constructor Summary
Constructors Constructor Description ContactGroup(ExchangeService service)Initializes an unsaved local instance of the class.ContactGroup(ItemAttachment parentAttachment)Initializes an new instance of the class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContactGroupbind(ExchangeService service, ItemId id)Binds to an existing contact group and loads the specified set of property.Calling this method results in a call to EWS.static ContactGroupbind(ExchangeService service, ItemId id, PropertySet propertySet)Binds to an existing contact group and loads the specified set of property.Calling this method results in a call to EWS.StringgetDisplayName()Gets the display name of the contact group.StringgetFileAs()Gets the name under which this contact group is filed as.GroupMemberCollectiongetMembers()Gets the members of the contact group.ExchangeVersiongetMinimumRequiredServerVersion()Gets the minimum required server version.ServiceObjectSchemagetSchema()Internal method to return the schema associated with this type of object.voidsetDisplayName(String value)Sets the display name.voidsetSubject(String subject)Sets the subject.-
Methods inherited from class microsoft.exchange.webservices.data.core.service.item.Item
copy, copy, delete, getAllowedResponseActions, getAttachments, getBody, getCategories, getConversationId, getCulture, getDateTimeCreated, getDateTimeReceived, getDateTimeSent, getDefaultAffectedTaskOccurrences, getDefaultSendCancellationsMode, getDefaultSendInvitationsMode, getDefaultSendInvitationsOrCancellationsMode, getDisplayCc, getDisplayTo, getEffectiveRights, getExtendedProperties, getHasAttachments, getId, getIdPropertyDefinition, getImportance, getInReplyTo, getInternetMessageHeaders, getIsAssociated, getIsDraft, getIsFromMe, getIsNew, getIsReminderSet, getIsResend, getIsSubmitted, getIsTimeZoneHeaderRequired, getIsUnmodified, getItemClass, getLastModifiedName, getLastModifiedTime, getMimeContent, getParentAttachment, getParentFolderId, getReminderDueBy, getReminderMinutesBeforeStart, getRootItemId, getSensitivity, getSize, getSubject, getUniqueBody, getWebClientEditFormQueryString, getWebClientReadFormQueryString, hasUnprocessedAttachmentChanges, internalCreate, internalDelete, internalLoad, internalUpdate, isAttachment, move, move, removeExtendedProperty, save, save, save, setBody, setCategories, setCulture, setExtendedProperty, setImportance, setInReplyTo, setIsReminderSet, setItemClass, setMimeContent, setReminderDueBy, setReminderMinutesBeforeStart, setSensitivity, throwIfThisIsAttachment, update, validate
-
Methods inherited from class microsoft.exchange.webservices.data.core.service.ServiceObject
addServiceObjectChangedEvent, changed, clearChangeLog, clearServiceObjectChangedEvent, getChangeXmlElementName, getDeleteFieldXmlElementName, getIsCustomDateTimeScopingRequired, getLoadedPropertyDefinitions, getObjectFromPropertyDefinition, getPropertyBag, getService, getSetFieldXmlElementName, getXmlElementName, getXmlElementNameOverride, isDirty, isNew, load, load, loadFromXml, loadFromXml, removeServiceObjectChangedEvent, schema, setService, throwIfThisIsNew, throwIfThisIsNotNew, tryGetExtendedProperty, tryGetProperty, tryGetProperty, writeToXml, writeToXmlForUpdate
-
-
-
-
Constructor Detail
-
ContactGroup
public ContactGroup(ExchangeService service) throws Exception
Initializes an unsaved local instance of the class.- Parameters:
service- the service- Throws:
Exception- the exception
-
ContactGroup
public ContactGroup(ItemAttachment parentAttachment) throws Exception
Initializes an new instance of the class.- Parameters:
parentAttachment- the parent attachment- Throws:
Exception- the exception
-
-
Method Detail
-
getFileAs
public String getFileAs() throws Exception
Gets the name under which this contact group is filed as.- Returns:
- the file as
- Throws:
Exception- the exception
-
getDisplayName
public String getDisplayName() throws Exception
Gets the display name of the contact group.- Returns:
- the display name
- Throws:
Exception- the exception
-
setDisplayName
public void setDisplayName(String value) throws Exception
Sets the display name.- Parameters:
value- the new display name- Throws:
Exception- the exception
-
getMembers
public GroupMemberCollection getMembers() throws Exception
Gets the members of the contact group.- Returns:
- the members
- Throws:
Exception- the exception
-
bind
public static ContactGroup bind(ExchangeService service, ItemId id, PropertySet propertySet) throws Exception
Binds to an existing contact group and loads the specified set of property.Calling this method results in a call to EWS.- Parameters:
service- the serviceid- the idpropertySet- the property set- Returns:
- A ContactGroup instance representing the contact group corresponding to the specified Id
- Throws:
Exception- the exception
-
bind
public static ContactGroup bind(ExchangeService service, ItemId id) throws Exception
Binds to an existing contact group and loads the specified set of property.Calling this method results in a call to EWS.- Parameters:
service- the serviceid- the id- Returns:
- A ContactGroup instance representing the contact group corresponding to the specified Id.
- Throws:
Exception- the exception
-
getSchema
public ServiceObjectSchema getSchema()
Internal method to return the schema associated with this type of object.
-
getMinimumRequiredServerVersion
public ExchangeVersion getMinimumRequiredServerVersion()
Gets the minimum required server version.- Overrides:
getMinimumRequiredServerVersionin classItem- Returns:
- Earliest Exchange version in which this service object type is supported.
-
setSubject
public void setSubject(String subject) throws ServiceObjectPropertyException
Sets the subject.- Overrides:
setSubjectin classItem- Parameters:
subject- the new subject- Throws:
ServiceObjectPropertyException- the service object property exception
-
-