notesgrip 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 689f2be079ff5a6424e9c710e47d5ae853788013
4
- data.tar.gz: 108862770223ab12a726bd9695ff6cdfbfee7be9
3
+ metadata.gz: 505f8ae4c13e38c66794da75126da6cfa7a1f799
4
+ data.tar.gz: 41522581612cdab31b12a765e3af4dd4e1f59b65
5
5
  SHA512:
6
- metadata.gz: 82b393dacf265396899fdd21321cb3764499a92f96cc44347dde63d2a624e3819897885429cb87964cc64cd52fc534fe8c31cfce59dca965201ecfad2cbee2d6
7
- data.tar.gz: 26aca3a36c32299caf9bb88924daa903614a894e65099121436d8d5f961349c9fcccc5faee89c7b6a4001219914afeb531e54e55f00b4bc5b26b44ce02cd2a4f
6
+ metadata.gz: 756f16995c0194f16802e35f25957b3d1895504b575217462c79006bd0e8337a02b99614e8d71eaa350d4ab03fcffcb139576b1a5aafcb1bbeb21e77873d421b
7
+ data.tar.gz: 3077bc3b30d822e6b7820c1544669a1d118ee530df232b7ec1c59ab12fad127b3935f2252b5d3d29ceb77aa5bac1b786ce9953e47b83725d5a7d96d6cdfab608
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,18 @@
1
+ == 0.0.8 (2014/09/21)
2
+ [Features:]
3
+ * Define all methods of classes the following.
4
+ * NotesSession
5
+ * NotesDatabase
6
+ * NotesDocument
7
+ * NotesView
8
+ * NotesItem
9
+ * NotesRichtextItem
10
+ * NotesEmbeddedObject
11
+
12
+ == 0.0.7 (2014/09/05)
13
+ [Bugfix:]
14
+ * Fixed Script Error.
15
+
1
16
  == 0.0.6 (2014/09/05)
2
17
  [Features:]
3
18
  * Add methods to NotesRichTextItem class
data/README.rdoc CHANGED
@@ -15,6 +15,9 @@ Notesgrip is Ruby library to handle all Notes classes.
15
15
  }
16
16
 
17
17
  = Documentation
18
+ In RubyDoc.Info, all Notesgrip classes are Listed.
19
+ http://rubydoc.info/gems/notesgrip/
20
+
18
21
  == Notesgrip::Notes_Wrapper
19
22
  Base class of all Notesgrip classes.
20
23
  This class wraps a various Notes objects.
@@ -0,0 +1,36 @@
1
+ require 'notesgrip'
2
+
3
+ ns = Notesgrip::NotesSession.new
4
+ db = ns.database("technotes", "names.nsf")
5
+
6
+ # UniversalID
7
+ doc = db.CreateDocument("People")
8
+ p doc.unid # UniversalID
9
+
10
+ # Item Access
11
+ item = doc['FullName'] # Create new NotesItem automatically.
12
+ richItem = doc.CreateRichTextItem( "Body" )
13
+ p doc['Body'] # NotesDocument#[name] return NotesItem or NotesRichTextItem
14
+
15
+ # GetDocumentByUNID
16
+ unid = nil
17
+ db.each_document {|doc|
18
+ unid = doc.unid
19
+ break
20
+ }
21
+ doc = db.GetDocumentByUNID(unid)
22
+
23
+ # each_item
24
+ doc.each_item {|item|
25
+ p item
26
+ }
27
+
28
+ # CopyAllItems
29
+ new_doc = db.CreateDocument("People")
30
+ new_doc.CopyAllItems(doc)
31
+
32
+ # Item Copy
33
+ new_doc['FullName_Copy'] = doc['FullName']
34
+ p new_doc['FullName_Copy']
35
+
36
+
@@ -0,0 +1,14 @@
1
+ require 'notesgrip'
2
+
3
+ ns = Notesgrip::NotesSession.new
4
+ db = ns.database("technotes", "call.nsf")
5
+
6
+ doc = db.CreateDocument("main")
7
+
8
+ doc['Subject'].text = "RichText TEST"
9
+ body = doc.CreateRichTextItem( "body" )
10
+ body.text = "Hello, RichText\n"
11
+
12
+ doc['body'].text += "Add File.\n"
13
+ doc['body'].AddFile("./sample_NotesRichTextItem.rb")
14
+ doc.save
@@ -11,6 +11,15 @@ db = ns.database("myServer", "names.nsf")
11
11
  # Create NotesName
12
12
  userName = ns.CreateName("CN=Administrator/O=tech")
13
13
 
14
+ # ListUp Databases on server(NotesDbDirectory)
15
+
16
+ #db_directory = ns.GetDbDirectory( "technotes" )
17
+ #db = db_directory.GetFirstDatabase
18
+ #while db
19
+ # p db
20
+ # db = db_directory.GetNextDatabase
21
+ #end
22
+
14
23
  # ListUp Databases on server
15
24
  ns.each_database("technotes") {|db|
16
25
  p db
@@ -19,10 +19,6 @@ module Notesgrip
19
19
  NotesACL.new(@raw_object.ACL)
20
20
  end
21
21
 
22
- def ACLActivityLog
23
- @raw_object.ACLActivityLog()
24
- end
25
-
26
22
  def Agents
27
23
  agent_arr = @raw_object.Agents
28
24
  return [] unless agent_arr # Case of No Agent in database
@@ -71,31 +67,6 @@ module Notesgrip
71
67
  ret_list
72
68
  end
73
69
 
74
- CMPC_ARCHIVE_DELETE_COMPACT = 1 # archive and delete, then compact
75
- CMPC_ARCHIVE_DELETE_ONLY = 2 # archive and delete with no compact; supersedes a
76
- CMPC_CHK_OVERLAP = 32768 # check overlap
77
- CMPC_COPYSTYLE = 16 # copy style; supersedes b and B
78
- CMPC_DISABLE_DOCTBLBIT_OPTMZN = 128 # disable document table bit map optimization
79
- CMPC_DISABLE_LARGE_UNKTBL = 4096 # disable large unknown table
80
- CMPC_DISABLE_RESPONSE_INFO = 512 # disable "Don't support specialized response hierarchy"
81
- CMPC_DISABLE_TRANSACTIONLOGGING = 262144 # disable transaction logging
82
- CMPC_DISABLE_UNREAD_MARKS = 1048576 # disable "Don't maintain unread marks"
83
- CMPC_DISCARD_VIEW_INDICES = 32 # discard view indexes
84
- CMPC_ENABLE_DOCTBLBIT_OPTMZN = 64 # enable document table bit map optimization; supersedes f
85
- CMPC_ENABLE_LARGE_UNKTBL = 2048 # enable large unknown table; supersedes k
86
- CMPC_ENABLE_RESPONSE_INFO = 256 # enable "Don't support specialized response hierarchy"; supersedes H
87
- CMPC_ENABLE_TRANSACTIONLOGGING = 131072 # enable transaction logging; supersedes t
88
- CMPC_ENABLE_UNREAD_MARKS = 524288 # enable "Don't maintain unread marks"; supersedes U
89
- CMPC_IGNORE_COPYSTYLE_ERRORS = 1024 # ignore copy-style errors
90
- CMPC_MAX_4GB = 16384 # set maximum database size at 4 gigabytes
91
- CMPC_NO_LOCKOUT = 8192 # do not lock out users
92
- CMPC_RECOVER_INPLACE = 8 # recover unused space in-place and reduce file size; supersedes b
93
- CMPC_RECOVER_REDUCE_INPLACE = 4 # recover unused space in-place without reducing file size
94
- CMPC_REVERT_FILEFORMAT = 65536 # do not convert old file format
95
- def CompactWithOptions( options )
96
- @raw_object.CompactWithOptions( options )
97
- end
98
-
99
70
  def CreateCopy( newServer, newDbFile , maxsize=4 )
100
71
  db = @raw_object.CreateCopy( newServer, newDbFile , maxsize )
101
72
  NotesDatabase.new(db)
@@ -117,15 +88,6 @@ module Notesgrip
117
88
  end
118
89
 
119
90
 
120
- FTINDEX_ALL_BREAKS = 4 # index sentence and paragraph breaks
121
- FTINDEX_ATTACHED_BIN_FILES = 16 # index attached files (binary)
122
- FTINDEX_ATTACHED_FILES = 1 # index attached files (raw text)
123
- FTINDEX_CASE_SENSITIVE = 8 # enable case-sensitive searches
124
- FTINDEX_ENCRYPTED_FIELDS = 2 # index encrypted fields
125
- def CreateFTIndex( options , recreate=false )
126
- @raw_object.CreateFTIndex( options , recreate )
127
- end
128
-
129
91
  def CreateNoteCollection( selectAllFlag = false)
130
92
  raw_notesNotesCollection = @raw_object.CreateNoteCollection( selectAllFlag)
131
93
  NotesNoteCollection.new(raw_notesNotesCollection)
@@ -146,34 +108,6 @@ module Notesgrip
146
108
  NotesView.new(raw_view)
147
109
  end
148
110
 
149
-
150
- FIXUP_INCREMENTAL = 4 # checks only documents since last Fixup
151
- FIXUP_NODELETE = 16 # prevents Fixup from deleting corrupted documents
152
- FIXUP_NOVIEWS = 64 # does not check views
153
- FIXUP_QUICK = 2 # checks documents more quickly but less thoroughly
154
- FIXUP_REVERT = 32 # reverts ID tables to the previous release format
155
- FIXUP_TXLOGGED = 8 # includes databases enabled for transaction logging
156
- FIXUP_VERIFY = 1 # makes no modifications
157
- def Fixup(options)
158
- @raw_object.Fixup(options)
159
- end
160
-
161
-
162
- # Constant for FTSearch
163
- FT_DATE_ASC = 64 # sorts by document creation date in ascending order.
164
- FT_DATE_DES = 32 # sorts by document creation date in descending order.
165
- FT_SCORES = 8 # sorts by relevance score (default).
166
- FT_DATABASE = 8192 # includes Domino databases.
167
- FT_FUZZY = 16384 # searches for related words. Need not be an exact match.
168
- FT_FILESYSTEM = 4096 # includes files that are not Domino databases.
169
- FT_STEMS = 512 # uses stem words as the basis of the search.
170
- FT_THESAURUS = 1024 # uses thesaurus synonyms.
171
- def FTDomainSearch( query, maxDocs=0, sortoptions=FT_SCORES, otheroptions=0, start=0, count=1, entryform="" )
172
- #raw_doc = @raw_object.FTDomainSearch( query, maxDocs, sortoptions, otheroptions, start, count, entryform )
173
- #raw_doc ? NotesDocument.new(raw_doc) : nil
174
- raise "FTDomainSearch() is not work."
175
- end
176
-
177
111
  def FTSearch( query, maxdocs=0, sortoptions=FT_SCORES, otheroptions=0 )
178
112
  raw_docCollection = @raw_object.FTSearch( query, maxdocs, sortoptions, otheroptions)
179
113
  NotesDocumentCollection.new(raw_docCollection)
@@ -238,26 +172,6 @@ module Notesgrip
238
172
  end
239
173
 
240
174
 
241
- DBOPT_LZCOMPRESSION = 65 # uses LZ1 compression for attachments
242
- DBOPT_MAINTAINLASTACCESSED = 44 # maintains LastAccessed property
243
- DBOPT_MOREFIELDS = 54 # allows more fields in database
244
- DBOPT_NOHEADLINEMONITORS = 46 # doesn't allow headline monitoring
245
- DBOPT_NOOVERWRITE = 36 # doesn't overwrite free space
246
- DBOPT_NORESPONSEINFO = 38 # doesn't support specialized response hierarchy
247
- DBOPT_NOTRANSACTIONLOGGING = 45 # disables transaction logging
248
- DBOPT_NOUNREAD = 37 # doesn't maintain unread marks
249
- DBOPT_OPTIMIZATION = 41 # enables document table bitmap optimization
250
- DBOPT_REPLICATEUNREADMARKSTOANY = 71 # replicates unread marks to all servers
251
- DBOPT_REPLICATEUNREADMARKSTOCLUSTER = 70 # replicates unread marks to clustered servers only
252
- DBOPT_SOFTDELETE = 49 # allows soft deletions
253
- def GetOption(optionName)
254
- @raw_object.GetOption(optionName)
255
- end
256
-
257
- def SetOption( optionName, flag )
258
- @raw_object.SetOption(optionName, flag)
259
- end
260
-
261
175
  def GetOutline( outlinename )
262
176
  #raw_outline = @raw_object.GetOutline( outlinename )
263
177
  #NotesOutline.new(raw_outline)
@@ -286,12 +200,6 @@ module Notesgrip
286
200
  raise "Search() is not work."
287
201
  end
288
202
 
289
- def UnprocessedFTSearch(query, maxdocs=0, sortoptions=nil, otheroptions=nil )
290
- #raw_docCollection = @raw_object.UnprocessedFTSearch(query, maxdocs, sortoptions, otheroptions )
291
- #NotesDocumentCollection.new(raw_docCollection)
292
- raise "UnprocessedFTSearch() is not work."
293
- end
294
-
295
203
  # ---- Additional Methods ------
296
204
  def name
297
205
  @raw_object.Title
@@ -337,6 +245,462 @@ module Notesgrip
337
245
  def inspect
338
246
  "<#{self.class}, Name:#{self.name.inspect}, FilePath:#{self.FilePath.inspect}>"
339
247
  end
248
+
249
+ # -------Simple Method Relay--------
250
+ def ACLActivityLog
251
+ @raw_object.ACLActivityLog()
252
+ end
253
+
254
+ def Categories()
255
+ @raw_object.Categories()
256
+ end
257
+
258
+ def Categories=(categoryList)
259
+ @raw_object.Categories = categoryList
260
+ end
261
+
262
+ def Created()
263
+ @raw_object.Created()
264
+ end
265
+
266
+ def CurrentAccessLevel()
267
+ @raw_object.CurrentAccessLevel()
268
+ end
269
+
270
+ def DelayUpdates()
271
+ @raw_object.DelayUpdates()
272
+ end
273
+
274
+ def DelayUpdates=(flag)
275
+ @raw_object.DelayUpdates = flag
276
+ end
277
+
278
+ def DesignTemplateName()
279
+ @raw_object.DesignTemplateName()
280
+ end
281
+
282
+ def FileFormat()
283
+ @raw_object.FileFormat()
284
+ end
285
+
286
+ def FileName()
287
+ @raw_object.FileName()
288
+ end
289
+
290
+ def FilePath()
291
+ @raw_object.FilePath()
292
+ end
293
+
294
+ def FolderReferencesEnabled()
295
+ @raw_object.FolderReferencesEnabled()
296
+ end
297
+
298
+ def FolderReferencesEnabled=(flag)
299
+ @raw_object.FolderReferencesEnabled = flag
300
+ end
301
+
302
+ def FTIndexFrequency()
303
+ @raw_object.FTIndexFrequency()
304
+ end
305
+
306
+ FTINDEX_DAILY = 1
307
+ FTINDEX_HOURLY = 3
308
+ FTINDEX_IMMEDIATE = 4
309
+ FTINDEX_SCHEDULED = 2
310
+ def FTIndexFrequency=(frequency)
311
+ @raw_object.FTIndexFrequency = frequency
312
+ end
313
+
314
+ def HttpURL()
315
+ @raw_object.HttpURL()
316
+ end
317
+
318
+ def IsClusterReplication()
319
+ @raw_object.IsClusterReplication()
320
+ end
321
+
322
+ def IsClusterReplication=(flag)
323
+ @raw_object.IsClusterReplication = flag
324
+ end
325
+
326
+ def IsConfigurationDirectory()
327
+ @raw_object.IsConfigurationDirectory()
328
+ end
329
+
330
+ def IsCurrentAccessPublicReader()
331
+ @raw_object.IsCurrentAccessPublicReader()
332
+ end
333
+
334
+ def IsCurrentAccessPublicWriter()
335
+ @raw_object.IsCurrentAccessPublicWriter()
336
+ end
337
+
338
+ def IsDesignLockingEnabled()
339
+ @raw_object.IsDesignLockingEnabled()
340
+ end
341
+
342
+ def IsDesignLockingEnabled=(flag)
343
+ @raw_object.IsDesignLockingEnabled = flag
344
+ end
345
+
346
+ def IsDirectoryCatalog()
347
+ @raw_object.IsDirectoryCatalog()
348
+ end
349
+
350
+ def IsDocumentLockingEnabled()
351
+ @raw_object.IsDocumentLockingEnabled()
352
+ end
353
+
354
+ def IsDocumentLockingEnabled=(flag)
355
+ @raw_object.IsDocumentLockingEnabled = flag
356
+ end
357
+
358
+ def IsFTIndexed()
359
+ @raw_object.IsFTIndexed()
360
+ end
361
+
362
+ def IsInMultiDbIndexing()
363
+ @raw_object.IsInMultiDbIndexing()
364
+ end
365
+
366
+ def IsInMultiDbIndexing=(flag)
367
+ @raw_object.IsInMultiDbIndexing = flag
368
+ end
369
+
370
+ def IsInService()
371
+ @raw_object.IsInService()
372
+ end
373
+
374
+ def IsInService=(flag)
375
+ @raw_object.IsInService = flag
376
+ end
377
+
378
+ def IsLink()
379
+ @raw_object.IsLink()
380
+ end
381
+
382
+ def IsMultiDbSearch()
383
+ @raw_object.IsMultiDbSearch()
384
+ end
385
+
386
+ def IsOpen()
387
+ @raw_object.IsOpen()
388
+ end
389
+
390
+ def IsPendingDelete()
391
+ @raw_object.IsPendingDelete()
392
+ end
393
+
394
+ def IsPrivateAddressBook()
395
+ @raw_object.IsPrivateAddressBook()
396
+ end
397
+
398
+ def IsPublicAddressBook()
399
+ @raw_object.IsPublicAddressBook()
400
+ end
401
+
402
+ def LastFixup()
403
+ @raw_object.LastFixup()
404
+ end
405
+
406
+ def LastFTIndexed()
407
+ @raw_object.LastFTIndexed()
408
+ end
409
+
410
+ def LastModified()
411
+ @raw_object.LastModified()
412
+ end
413
+
414
+ def LimitRevisions()
415
+ @raw_object.LimitRevisions()
416
+ end
417
+
418
+ def LimitRevisions=(revisions)
419
+ @raw_object.LimitRevisions = revisions
420
+ end
421
+
422
+ def LimitUpdatedBy()
423
+ @raw_object.LimitUpdatedBy()
424
+ end
425
+
426
+ def LimitUpdatedBy=(revisions)
427
+ @raw_object.LimitUpdatedBy = revisions
428
+ end
429
+
430
+ def ListInDbCatalog()
431
+ @raw_object.ListInDbCatalog()
432
+ end
433
+
434
+ def ListInDbCatalog=(flag)
435
+ @raw_object.ListInDbCatalog = flag
436
+ end
437
+
438
+ def Managers()
439
+ @raw_object.Managers()
440
+ end
441
+
442
+ def MaxSize()
443
+ @raw_object.MaxSize()
444
+ end
445
+
446
+ def NotesURL()
447
+ @raw_object.NotesURL()
448
+ end
449
+
450
+ def PercentUsed()
451
+ @raw_object.PercentUsed()
452
+ end
453
+
454
+ def ReplicaID()
455
+ @raw_object.ReplicaID()
456
+ end
457
+
458
+ def Server()
459
+ @raw_object.Server()
460
+ end
461
+
462
+ def Size()
463
+ @raw_object.Size()
464
+ end
465
+
466
+ def SizeQuota()
467
+ @raw_object.SizeQuota()
468
+ end
469
+
470
+ def SizeQuota=(quota)
471
+ @raw_object.SizeQuota = quota
472
+ end
473
+
474
+ def SizeWarning()
475
+ @raw_object.SizeWarning()
476
+ end
477
+
478
+ def SizeWarning=(warning)
479
+ @raw_object.SizeWarning = warning
480
+ end
481
+
482
+ def TemplateName()
483
+ @raw_object.TemplateName()
484
+ end
485
+
486
+ def Title()
487
+ @raw_object.Title()
488
+ end
489
+
490
+ DBTYPE_ADDR_BOOK = 10 # Domino Directory or Personal Address Book
491
+ DBTYPE_IMAP_SVR_PROXY = 6 # IMAP server proxy
492
+ DBTYPE_LIBRARY = 12 # database library
493
+ DBTYPE_LIGHT_ADDR_BOOK = 9 # Directory Catalog
494
+ DBTYPE_MAILBOX = 3 # mailbox
495
+ DBTYPE_MAILFILE = 2 # mail file
496
+ DBTYPE_MULTIDB_SRCH = 8 # Domain Catalog
497
+ DBTYPE_NEWS_SVR_PROXY = 5 # news server proxy
498
+ DBTYPE_PERS_JOURNAL = 11 # Personal Journal
499
+ DBTYPE_PORTFOLIO = 7 # portfolio
500
+ DBTYPE_STANDARD = 13 # standard
501
+ DBTYPE_SUBSCRIPTIONS = 4 # subscriptions
502
+ DBTYPE_WEB_APP = 1 # Web application
503
+ def Type()
504
+ @raw_object.Type()
505
+ end
506
+
507
+ def UndeleteExpireTime()
508
+ @raw_object.UndeleteExpireTime()
509
+ end
510
+
511
+ def UndeleteExpireTime=(hours)
512
+ @raw_object.UndeleteExpireTime = hours
513
+ end
514
+
515
+ def UnprocessedDocuments()
516
+ #@raw_object.UnprocessedDocuments()
517
+ raise "UnprocessedDocuments() is not work."
518
+ end
519
+
520
+ def Compact()
521
+ sizeDelta = @raw_object.Compact()
522
+ return sizeDelta
523
+ end
524
+
525
+ CMPC_ARCHIVE_DELETE_COMPACT = 1 # archive and delete, then compact
526
+ CMPC_ARCHIVE_DELETE_ONLY = 2 # archive and delete with no compact; supersedes a
527
+ CMPC_CHK_OVERLAP = 32768 # check overlap
528
+ CMPC_COPYSTYLE = 16 # copy style; supersedes b and B
529
+ CMPC_DISABLE_DOCTBLBIT_OPTMZN = 128 # disable document table bit map optimization
530
+ CMPC_DISABLE_LARGE_UNKTBL = 4096 # disable large unknown table
531
+ CMPC_DISABLE_RESPONSE_INFO = 512 # disable "Don't support specialized response hierarchy"
532
+ CMPC_DISABLE_TRANSACTIONLOGGING = 262144 # disable transaction logging
533
+ CMPC_DISABLE_UNREAD_MARKS = 1048576 # disable "Don't maintain unread marks"
534
+ CMPC_DISCARD_VIEW_INDICES = 32 # discard view indexes
535
+ CMPC_ENABLE_DOCTBLBIT_OPTMZN = 64 # enable document table bit map optimization; supersedes f
536
+ CMPC_ENABLE_LARGE_UNKTBL = 2048 # enable large unknown table; supersedes k
537
+ CMPC_ENABLE_RESPONSE_INFO = 256 # enable "Don't support specialized response hierarchy"; supersedes H
538
+ CMPC_ENABLE_TRANSACTIONLOGGING = 131072 # enable transaction logging; supersedes t
539
+ CMPC_ENABLE_UNREAD_MARKS = 524288 # enable "Don't maintain unread marks"; supersedes U
540
+ CMPC_IGNORE_COPYSTYLE_ERRORS = 1024 # ignore copy-style errors
541
+ CMPC_MAX_4GB = 16384 # set maximum database size at 4 gigabytes
542
+ CMPC_NO_LOCKOUT = 8192 # do not lock out users
543
+ CMPC_RECOVER_INPLACE = 8 # recover unused space in-place and reduce file size; supersedes b
544
+ CMPC_RECOVER_REDUCE_INPLACE = 4 # recover unused space in-place without reducing file size
545
+ CMPC_REVERT_FILEFORMAT = 65536 # do not convert old file format
546
+ def CompactWithOptions( options )
547
+ @raw_object.CompactWithOptions( options )
548
+ end
549
+
550
+ def Create()
551
+ #@raw_object.Create()
552
+ raise "Create() is not work."
553
+ end
554
+
555
+ FTINDEX_ALL_BREAKS = 4 # index sentence and paragraph breaks
556
+ FTINDEX_ATTACHED_BIN_FILES = 16 # index attached files (binary)
557
+ FTINDEX_ATTACHED_FILES = 1 # index attached files (raw text)
558
+ FTINDEX_CASE_SENSITIVE = 8 # enable case-sensitive searches
559
+ FTINDEX_ENCRYPTED_FIELDS = 2 # index encrypted fields
560
+ def CreateFTIndex( options , recreate=false )
561
+ @raw_object.CreateFTIndex( options , recreate )
562
+ end
563
+
564
+ def EnableFolder(foldername)
565
+ @raw_object.EnableFolder(foldername)
566
+ end
567
+
568
+ FIXUP_INCREMENTAL = 4 # checks only documents since last Fixup
569
+ FIXUP_NODELETE = 16 # prevents Fixup from deleting corrupted documents
570
+ FIXUP_NOVIEWS = 64 # does not check views
571
+ FIXUP_QUICK = 2 # checks documents more quickly but less thoroughly
572
+ FIXUP_REVERT = 32 # reverts ID tables to the previous release format
573
+ FIXUP_TXLOGGED = 8 # includes databases enabled for transaction logging
574
+ FIXUP_VERIFY = 1 # makes no modifications
575
+ def Fixup(options)
576
+ @raw_object.Fixup(options)
577
+ end
578
+
579
+ # Constant for FTSearch
580
+ FT_DATE_ASC = 64 # sorts by document creation date in ascending order.
581
+ FT_DATE_DES = 32 # sorts by document creation date in descending order.
582
+ FT_SCORES = 8 # sorts by relevance score (default).
583
+ FT_DATABASE = 8192 # includes Domino databases.
584
+ FT_FUZZY = 16384 # searches for related words. Need not be an exact match.
585
+ FT_FILESYSTEM = 4096 # includes files that are not Domino databases.
586
+ FT_STEMS = 512 # uses stem words as the basis of the search.
587
+ FT_THESAURUS = 1024 # uses thesaurus synonyms.
588
+ def FTDomainSearch( query, maxDocs=0, sortoptions=FT_SCORES, otheroptions=0, start=0, count=1, entryform="" )
589
+ #raw_doc = @raw_object.FTDomainSearch( query, maxDocs, sortoptions, otheroptions, start, count, entryform )
590
+ #raw_doc ? NotesDocument.new(raw_doc) : nil
591
+ raise "FTDomainSearch() is not work."
592
+ end
593
+
594
+ DBOPT_LZCOMPRESSION = 65 # uses LZ1 compression for attachments
595
+ DBOPT_MAINTAINLASTACCESSED = 44 # maintains LastAccessed property
596
+ DBOPT_MOREFIELDS = 54 # allows more fields in database
597
+ DBOPT_NOHEADLINEMONITORS = 46 # doesn't allow headline monitoring
598
+ DBOPT_NOOVERWRITE = 36 # doesn't overwrite free space
599
+ DBOPT_NORESPONSEINFO = 38 # doesn't support specialized response hierarchy
600
+ DBOPT_NOTRANSACTIONLOGGING = 45 # disables transaction logging
601
+ DBOPT_NOUNREAD = 37 # doesn't maintain unread marks
602
+ DBOPT_OPTIMIZATION = 41 # enables document table bitmap optimization
603
+ DBOPT_REPLICATEUNREADMARKSTOANY = 71 # replicates unread marks to all servers
604
+ DBOPT_REPLICATEUNREADMARKSTOCLUSTER = 70 # replicates unread marks to clustered servers only
605
+ DBOPT_SOFTDELETE = 49 # allows soft deletions
606
+ def GetOption(optionName)
607
+ @raw_object.GetOption(optionName)
608
+ end
609
+
610
+ def GrantAccess(name, level)
611
+ @raw_object.GrantAccess(name, level)
612
+ end
613
+
614
+ def MarkForDelete()
615
+ @raw_object.MarkForDelete()
616
+ end
617
+
618
+ def Open()
619
+ @raw_object.Open()
620
+ end
621
+
622
+ def OpenByReplicaID()
623
+ raise "OpenByReplicaID() is not work."
624
+ end
625
+
626
+ def OpenIfModified()
627
+ raise "OpenIfModified() is not work."
628
+ end
629
+
630
+ def OpenMail()
631
+ raise "OpenIfModified() is not work."
632
+ end
633
+
634
+ def OpenURLDb()
635
+ raise "OpenURLDb() is not work."
636
+ end
637
+
638
+ def OpenWithFailover()
639
+ raise "OpenWithFailover() is not work."
640
+ end
641
+
642
+ def QueryAccess(name)
643
+ @raw_object.QueryAccess(name)
644
+ end
645
+
646
+ def QueryAccessPrivileges(name)
647
+ @raw_object.QueryAccessPrivileges(name)
648
+ end
649
+
650
+ def QueryAccessRoles(name)
651
+ @raw_object.QueryAccessRoles(name)
652
+ end
653
+
654
+ def Remove()
655
+ @raw_object.Remove()
656
+ end
657
+
658
+ def RemoveFTIndex()
659
+ @raw_object.RemoveFTIndex()
660
+ end
661
+
662
+ def Replicate(serverName)
663
+ @raw_object.Replicate(serverName)
664
+ end
665
+
666
+ def RevokeAccess(name)
667
+ @raw_object.RevokeAccess(name)
668
+ end
669
+
670
+ def SetOption( optionName, flag )
671
+ @raw_object.SetOption(optionName, flag)
672
+ end
673
+
674
+ DBSIGN_DOC_ACL = 64 # signs the ACL
675
+ DBSIGN_DOC_AGENT = 512 # signs all agents
676
+ DBSIGN_DOC_ALL = 32767 # (default) signs all elements except data documents' active content
677
+ DBSIGN_DOC_DATA = 1 # signs all data documents' active content (hotspots)
678
+ DBSIGN_DOC_FORM = 4 # signs all forms
679
+ DBSIGN_DOC_HELP = 256 # signs the "About Database" and "Using Database" documents
680
+ DBSIGN_DOC_ICON = 16 # signs the icon
681
+ DBSIGN_DOC_REPLFORMULA = 2048 # signs the replication formula
682
+ DBSIGN_DOC_SHAREDFIELD = 1024 # signs all shared fields
683
+ DBSIGN_DOC_VIEW = 8 # signs all views
684
+ def Sign(documentType)
685
+ @raw_object.Sign(documentType)
686
+ end
687
+
688
+ def UnprocessedFTSearch(query, maxdocs=0, sortoptions=nil, otheroptions=nil )
689
+ raise "UnprocessedFTSearch() is not work."
690
+ end
691
+
692
+ def UnprocessedFTSearchRange(query, maxdocs=0, sortoptions=nil, otheroptions=nil, start=0)
693
+ raise "UnprocessedFTSearchRange() is not work."
694
+ end
695
+
696
+ def UnprocessedSearch(formula, notesDateTime, maxDocs)
697
+ raise "UnprocessedSearch() is not work."
698
+ end
699
+
700
+ def UpdateFTIndex(createFlag)
701
+ @raw_object.UpdateFTIndex(createFlag)
702
+ end
703
+
340
704
  end
341
705
 
342
706
  # ====================================================