Class: ArsecurityHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/arsecurity_handler.rb

Direct Known Subclasses

DefaultArsecurityHandler

Class Method Summary collapse

Class Method Details

.accept?Boolean

for customize logic, such as for administrator

Returns:

  • (Boolean)

Raises:



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

.permissionsObject



11
12
13
# File 'lib/arsecurity_handler.rb', line 11

def permissions
  raise ArsecurityIllegalException.new("ArsecurityHandler.permissions should be implemented")
end

.reject?Boolean

for customize logic, such as for time restriction

Returns:

  • (Boolean)

Raises:



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