Class: Notesgrip::NotesACL
Overview
NotesACL 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
#CreateACLEntry(name, level) ⇒ Object
370
371
372
373
|
# File 'lib/notesgrip/NotesDatabase.rb', line 370
def CreateACLEntry( name, level )
raw_ACLEntry = @raw_object.CreateACLEntry( name, level )
raw_ACLEntry ? NotesACLEntry.new(raw_ACLEntry) : nil
end
|
#each_entry ⇒ Object
Also known as:
each
399
400
401
402
403
404
405
406
|
# File 'lib/notesgrip/NotesDatabase.rb', line 399
def each_entry
raw_entry = @raw_object.GetFirstEntry
while raw_entry
next_entry = @raw_object.GetNextEntry(raw_entry)
yield NotesACLEntry.new(raw_entry)
raw_entry = next_entry
end
end
|
#GetEntry(name) ⇒ Object
375
376
377
378
|
# File 'lib/notesgrip/NotesDatabase.rb', line 375
def GetEntry( name )
raw_ACLEntry = @raw_object.GetEntry( name )
raw_ACLEntry ? NotesACLEntry.new(raw_ACLEntry) : nil
end
|
#GetFirstEntry ⇒ Object
380
381
382
383
|
# File 'lib/notesgrip/NotesDatabase.rb', line 380
def GetFirstEntry
raw_ACLEntry = @raw_object.GetFirstEntry()
raw_ACLEntry ? NotesACLEntry.new(raw_ACLEntry) : nil
end
|
#GetNextEntry(entry) ⇒ Object
385
386
387
388
|
# File 'lib/notesgrip/NotesDatabase.rb', line 385
def GetNextEntry( entry )
raw_ACLEntry = @raw_object.GetNextEntry(toRaw(entry))
raw_ACLEntry ? NotesACLEntry.new(raw_ACLEntry) : nil
end
|
#Parent ⇒ Object
366
367
368
|
# File 'lib/notesgrip/NotesDatabase.rb', line 366
def Parent
NotesDatabase.new(@raw_object.Parent)
end
|
#RemoveACLEntry(name) ⇒ Object
390
391
392
|
# File 'lib/notesgrip/NotesDatabase.rb', line 390
def RemoveACLEntry( name )
@raw_entry.RemoveACLEntry( name )
end
|
#RenameRole(oldName, newName) ⇒ Object
394
395
396
|
# File 'lib/notesgrip/NotesDatabase.rb', line 394
def RenameRole( oldName, newName )
@raw_object.RenameRole( oldName, newName )
end
|