What's new? | Help | Directory | Sign in
Google
zogi
XML-RPC Bundle For OpenGroupware's ZideStore Integration Server
  
  
  
  
    
Search
for
Updated Nov 30, 2007 by adamtaunowilliams
Appointment  
The Appointment entity dictionary

The Appointment entity represents an even in the OpenGroupware schedular application.

The PARTICIPANTS special key contains an array of participant entities.

The NOTES special key contains an array of note entities.

The FLAGS attribute is an array of strings; these are provided to the client as hints for dealing with the object. This attribute is read only, if the application sends the "FLAGS" attribute to the server it will be ignored.

NOTE: As of r388 three new attributes are provided: "readAccessTeamObjectId", "writeAccessObjectIds", and "FLAGS".

NOTE: As of r379 when encoding a contact as a participant the "lastname" key is now "lastName". "lastname" was a typo. If you code expected the previous spelling of the key you may have to update your application.

PHP

Notification

The notification attribute is the number of minutes before the start of the appointment that participants will be reminded of the appointment.

The act of notification is performed either by the "skyaptnotify" tool or by a custom tool and the getNotifications method.

Participant status, comment, role, & RSVP

The details concerning the fields of the participant entry are documented on the appropriate Wiki page. A user can change their own participant status using the ParticipantStatus entity.

Conflicts

The CONFLICTS special key contains an array of appointmentConflict entities. Appointment conflict detection can be disabled for an appointment by setting the isConflictDisabled to a value of one.

NOTE: Official support for isConflictDisabled was added in r779 (2007-11-02). It could always be set via putObject but was not returned in the rendered appointment until r779.

Resources

Resources assigned to an appointment appear in the RESOURCES subkey array. To assign a Resource to an appointment via putObject include the resource in the RESOURCES key when submitting the appointment; to save the assignment of the Resource to the Appointment only the "objectId" value is required, other values will be ignored.

print "--To assign resources to an appointment--"
app['_RESOURCES'] = [ { 'objectId': 465950 }, { 'objectId': 465990 } ]
app = server.zogi.putObject(app)
pprint.pprint(app)

Example Of An Appointment Entity

{'FLAGS': ['VISIBLE', 'DELETE', 'WRITE', 'SELF'],
 '_NOTES': [],
 '_OBJECTLINKS': [],
  '_PARTICIPANTS': [{'entityName': 'participant',
                     'firstName': 'Adam',
                    'lastname': 'Williams',
                     'objectId': 11920,
                    'participantEntityName': 'Contact',
                    'participantObjectId': 10160,
                    'role': 'REQ-PARTICIPANT'}],
 '_PROPERTIES': [],
 '_RESOURCES': [{'category': 'Rooms',
                 'email': '',
                 'emailSubject': '',
                 'entityName': 'Resource',
                 'name': 'Grand Rapids South Conference Room',
                 'notificationTime': 0,
                 'objectId': 465950},
                {'category': 'IT Equipment',
                 'email': 'cisstaff@morrison-ind.com',
                 'emailSubject': 'OGoResource: Conference Phone',
                 'entityName': 'Resource',
                 'name': 'Conference Phone',
                 'notificationTime': 0,
                 'objectId': 465990}],
 'appointmentType': 'tradeshow',
 'comment': '',
 'end': <DateTime '20061220T17:00:00' at b79f7cac>,
 'entityName': 'Appointment',
 'keywords': '',
 'notification': 120,
 'location': 'Test',
 'objectId': 11900,
 'ownerObjectId': 10160,
 'readAccessTeamObjectId': 11530,
 'start': <DateTime '20061220T14:00:00' at b79f7d8c>,
 'title': 'Test',
 'version': 1,
 'isConflictDisabled': 0,
 'writeAccessObjectIds': ['11530']}

Home


Sign in to add a comment