Class | OpenWFE::Store |
In: |
lib/openwfe/orest/workitem.rb
|
Parent: | Object |
Models the information about a store as viewed by the current user (upon calling the listStores or getStoreNames methods)
name | [RW] | |
permissions | [RW] | |
workitem_count | [RW] |
# File lib/openwfe/orest/workitem.rb, line 87 87: def initialize () 88: super() 89: #@name = nil 90: #@workitem_count = nil 91: #@permissions = nil 92: end
Returns true if the current user may browse the headers of this store
# File lib/openwfe/orest/workitem.rb, line 114 114: def may_browse? () 115: @permissions.index('b') > -1 116: end
Returns true if the current user may delegate workitems to this store
# File lib/openwfe/orest/workitem.rb, line 121 121: def may_delegate? () 122: @permissions.index('d') > -1 123: end
Returns true if the current user may read headers and workitems from this store
# File lib/openwfe/orest/workitem.rb, line 98 98: def may_read? () 99: return @permissions.index('r') > -1 100: end