Kofax DM API Manual de usuario Pagina 260

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 528
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 259
240 CHAPTER 4
HasRight
HasRight
Use this method to determine if the specified user or group rights mask
permits the right you specify.
Syntax
PCDDocObject.HasRight( strRightName, intRightsIn
)
Parameters
Returns
Returns TRUE if the named right is available to the user.
Usage
It is important that you use late binding when creating a
PCDDocObject object that will use the
HasRight method. Using early
binding to create the PCDDocObject can result in the
HasRight
method generating an error.
The Profile and QuickSearch rights are the lower 16 bits of a 32-bit
integer. Bit settings are OR’ed together. For example, a user with rights
to view profiles (binary
0000000000000001) and edit profiles (binary
0000000000000010) would have a rights setting of 3 (binary
0000000000000011).
The following Profile rights are supported:
strRightName A string value that identifies the name of the right.
intRightsIn The rights mask in which you want to identify
whether the right is available to the user.
Value Token Description
1 %PR_VIEW View Profile
2 %PR_EDIT Edit Profile
4 %PR_CONTENT_VIEW View Document Content
8 %PR_CONTENT_RETRIEVE Retrieve Document Content
Vista de pagina 259
1 2 ... 255 256 257 258 259 260 261 262 263 264 265 ... 527 528

Comentarios a estos manuales

Sin comentarios