Class: Notesgrip::NotesDbDirectory
Overview
NotesDbDirectory Class ===============
Instance Method Summary
collapse
Methods inherited from GripWrapper
#initialize, #inspect, #raw
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Notesgrip::GripWrapper
Instance Method Details
#CreateDatabase(dbfile) ⇒ Object
226
227
228
229
230
231
232
233
|
# File 'lib/notesgrip/NotesSession.rb', line 226
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
247
248
249
250
251
252
253
|
# File 'lib/notesgrip/NotesSession.rb', line 247
def each_database(fileType=NOTES_DATABASE)
db = GetFirstDatabase(fileType)
while db
yield db
db = GetNextDatabase()
end
end
|
#GetFirstDatabase(fileType = NOTES_DATABASE) ⇒ Object
235
236
237
238
|
# File 'lib/notesgrip/NotesSession.rb', line 235
def GetFirstDatabase(fileType=NOTES_DATABASE)
raw_db = @raw_object.GetFirstDatabase(fileType)
NotesDatabase.new(raw_db)
end
|
#GetNextDatabase ⇒ Object
241
242
243
244
245
|
# File 'lib/notesgrip/NotesSession.rb', line 241
def GetNextDatabase()
raw_db = @raw_object.GetNextDatabase()
return nil unless raw_db
NotesDatabase.new(raw_db)
end
|
#nitialize(raw_doc) ⇒ Object
222
223
224
|
# File 'lib/notesgrip/NotesSession.rb', line 222
def nitialize(raw_doc)
super(raw_doc)
end
|