Class: Notesgrip::NotesDbDirectory
Overview
NotesDbDirectory Class ===============
Constant Summary
collapse
- NOTES_DATABASE =
1247
- TEMPLATE =
1248
- REPLICA_CANDIDATE =
1245
- TEMPLATE_CANDIDATE =
1246
Instance Method Summary
collapse
Methods inherited from GripWrapper
#inspect, #raw
Constructor Details
Returns a new instance of NotesDbDirectory.
330
331
332
|
# File 'lib/notesgrip/NotesSession.rb', line 330
def initialize(raw_doc)
super(raw_doc)
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Notesgrip::GripWrapper
Instance Method Details
#CreateDatabase(dbfile) ⇒ Object
334
335
336
337
338
339
340
341
|
# File 'lib/notesgrip/NotesSession.rb', line 334
def CreateDatabase(dbfile)
servername = @raw_object.Name
raw_db = NotesSession.new.GetDatabase(servername, dbfile)
unless raw_db.IsOpen
raw_db.Create(servername, dbfile, true)
end
NotesDatabase.new(raw_db)
end
|
#each_database(fileType = NOTES_DATABASE) ⇒ Object
376
377
378
379
380
381
382
|
# File 'lib/notesgrip/NotesSession.rb', line 376
def each_database(fileType=NOTES_DATABASE)
db = GetFirstDatabase(fileType)
while db
yield db
db = GetNextDatabase()
end
end
|
#GetFirstDatabase(fileType = NOTES_DATABASE) ⇒ Object
343
344
345
346
|
# File 'lib/notesgrip/NotesSession.rb', line 343
def GetFirstDatabase(fileType=NOTES_DATABASE)
raw_db = @raw_object.GetFirstDatabase(fileType)
NotesDatabase.new(raw_db)
end
|
#GetNextDatabase ⇒ Object
349
350
351
352
353
|
# File 'lib/notesgrip/NotesSession.rb', line 349
def GetNextDatabase()
raw_db = @raw_object.GetNextDatabase()
return nil unless raw_db
NotesDatabase.new(raw_db)
end
|
#OpenDatabase(dbfile, failover = false) ⇒ Object
355
356
357
358
|
# File 'lib/notesgrip/NotesSession.rb', line 355
def OpenDatabase( dbfile, failover=false )
raw_db = @raw_object.OpenDatabase( dbfile, failover )
NotesDatabase.new(raw_db)
end
|
#OpenDatabaseByReplicaID(repid) ⇒ Object
360
361
362
363
|
# File 'lib/notesgrip/NotesSession.rb', line 360
def OpenDatabaseByReplicaID( repid )
raw_db = @raw_object.OpenDatabaseByReplicaID( repid )
NotesDatabase.new(raw_db)
end
|
#OpenDatabaseIfModified(dbfile, notesDateTime) ⇒ Object
365
366
367
368
|
# File 'lib/notesgrip/NotesSession.rb', line 365
def OpenDatabaseIfModified( dbfile , notesDateTime )
raw_db = @raw_object.OpenDatabaseIfModified( dbfile , notesDateTime )
NotesDatabase.new(raw_db)
end
|
#OpenMailDatabase ⇒ Object
370
371
372
373
|
# File 'lib/notesgrip/NotesSession.rb', line 370
def OpenMailDatabase()
raw_db = @raw_object.OpenMailDatabase()
NotesDatabase.new(raw_db)
end
|