Zimlet JavaScript API Reference - ZmResource

Class ZmResource


Extends ZmContact.

This class represents a resource.

Defined in: ZmResource.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ZmResource(id, list, resType)
Creates a resource.
Method Summary
Method Attributes Method Name and Description
<static>  
ZmResource.createFromDom(node, args)
Creates a resource from an XML node.
 
Gets the resource email.
 
Gets the resource full name.
 
Initializes from an email address.
 
Checks if the resource is a location.
Methods borrowed from class ZmContact:
create, createFromVCard, getAddressBook, getAllDLMembers, getAllGroupMembers, getAttendeeKey, getAttendeeText, getAttr, getAttrs, getCompanyField, getDLMembers, getEmails, getFields, getFileAs, getFileAsNoName, getFolderId, getGroupMembers, getHeader, getHomeAddrField, getIcon, getId, getImageUrl, getLookupEmail, getNormalizedAttrs, getOtherAddrField, getParticipantRole, getParticipantStatus, getPhone, getToolTip, getUnknownFields, getWorkAddrField, initFromPhone, isDistributionList, isEmpty, isGroup, isLocked, isReadOnly, isShared, modify, removeAttr, setAttr, setParticipantRole, setParticipantStatus, toString
Methods borrowed from class ZmItem:
cache, canAddTag, clear, deleteLocal, flagLocal, getById, getDefaultDndAction, getRestUrl, getTagImageFromIds, getTagImageInfo, hasTag, move, moveLocal, removeAllTagsLocal, rename, setFlag, tagLocal
Methods borrowed from class ZmModel:
addChangeListener, removeAllChangeListeners, removeChangeListener
Class Detail
ZmResource(id, list, resType)
Creates a resource.
Parameters:
{String} id
the id
{ZmList} list
the list
{constant} resType
the resource type
See:
ZmCalBaseItem
Method Detail
<static> ZmResource.createFromDom(node, args)
Creates a resource from an XML node.
Parameters:
node
a "calresource" XML node
args
args to pass to the constructor

{String} getEmail()
Gets the resource email.
Returns:
{String} the email

{String} getFullName()
Gets the resource full name.
Returns:
{String} the full name

initFromEmail(email)
Initializes from an email address.
Parameters:
{AjxEmailAddress|String} email
an email address object an email string

{Boolean} isLocation()
Checks if the resource is a location.
Returns:
{Boolean} true if is location

Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:33 GMT-0400 (EDT)