Class: ArsecurityHandler
- Inherits:
-
Object
- Object
- ArsecurityHandler
- Defined in:
- lib/arsecurity_handler.rb
Direct Known Subclasses
Class Method Summary collapse
-
.accept? ⇒ Boolean
for customize logic, such as for administrator.
-
.get_conditions(invocation) ⇒ Object
for changing conditions.
- .permissions ⇒ Object
-
.reject? ⇒ Boolean
for customize logic, such as for time restriction.
- .set_conditions(invocation, conditions) ⇒ Object
Class Method Details
.accept? ⇒ Boolean
for customize logic, such as for administrator
4 5 6 |
# File 'lib/arsecurity_handler.rb', line 4 def accept? raise ArsecurityIllegalException.new("ArsecurityHandler.accept? should be implemented") end |
.get_conditions(invocation) ⇒ Object
for changing conditions
16 17 18 |
# File 'lib/arsecurity_handler.rb', line 16 def get_conditions(invocation) raise ArsecurityIllegalException.new("ArsecurityHandler.get_conditions should be implemented") end |
.permissions ⇒ Object
11 12 13 |
# File 'lib/arsecurity_handler.rb', line 11 def raise ArsecurityIllegalException.new("ArsecurityHandler.permissions should be implemented") end |
.reject? ⇒ Boolean
for customize logic, such as for time restriction
8 9 10 |
# File 'lib/arsecurity_handler.rb', line 8 def reject? raise ArsecurityIllegalException.new("ArsecurityHandler.reject? should be implemented") end |
.set_conditions(invocation, conditions) ⇒ Object
20 21 22 |
# File 'lib/arsecurity_handler.rb', line 20 def set_conditions(invocation, conditions) raise ArsecurityIllegalException.new("ArsecurityHandler.set_conditions should be implemented") end |