Sun Java System Calendar Server 6 2005Q4 Developer's Guide

Method: SetAttribute

Purpose

Set an attribute value for a user.

Syntax

PRUint32 SetAttribute (char* aUser,
                       char* aKey,
                       char* aValue,
                       PRInt32 *aReturnCode)=0;

Parameters

The method has the following parameters:

aUser

The name of the user. 

aKey

The attribute key. 

aValue

The value. 

aReturnCode

On return, contains a constant that determines whether the server should continue with the default, or with the override processing. 

One of the following constants: 

  • NS_CONTINUE_DEFAULT_PROCESSING

  • NS_OVERRIDE_DEFAULT_PROCESSING

Returns

NS_OK on success, non-zero error code on failure.

Description

Sets the specified attribute for the specified user to the specified value.