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)

Methods

Attributes

name  [RW] 
permissions  [RW] 
workitem_count  [RW] 

Public Class methods

[Source]

    # 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

Public Instance methods

Returns true if the current user may browse the headers of this store

[Source]

     # 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

[Source]

     # 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

[Source]

     # File lib/openwfe/orest/workitem.rb, line 98
 98:         def may_read? ()
 99:             return @permissions.index('r') > -1
100:         end

Returns true if the current user may modify workitems (and at least proceed/forward them) in this store

[Source]

     # File lib/openwfe/orest/workitem.rb, line 106
106:         def may_write? ()
107:             @permissions.index('w') > -1
108:         end

[Validate]