Class: SakaiInfo::MissingAuthzRealm

Inherits:
AuthzRealm show all
Defined in:
lib/sakai-info/authz.rb

Instance Attribute Summary

Attributes inherited from AuthzRealm

#maintain_role, #name, #providers

Attributes inherited from SakaiObject

#id

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AuthzRealm

find!, find_by_id, find_by_name, find_by_site_id, find_by_site_id_and_group_id, #roles_serialization, #to_s, #user_count, #users_serialization

Methods included from ModProps

included

Methods inherited from SakaiObject

#dbrow_only_serialization, #dbrow_serialization, descendants, #object_type_serialization, #serialize, #shell_serialization, #to_csv, #to_json, #to_yaml

Constructor Details

#initialize(id) ⇒ MissingAuthzRealm

Returns a new instance of MissingAuthzRealm.



340
341
342
343
344
345
346
347
348
349
# File 'lib/sakai-info/authz.rb', line 340

def initialize(id)
  @dbrow = {}

  @dbrow = {}

  @id = id
  @name = id
  @providers = nil
  @maintain_role = nil
end

Class Method Details

.all_serializationsObject



375
376
377
378
379
# File 'lib/sakai-info/authz.rb', line 375

def self.all_serializations
  [
   :default,
  ]
end

.clear_cacheObject



335
336
337
# File 'lib/sakai-info/authz.rb', line 335

def self.clear_cache
  @@cache = {}
end

.find(id) ⇒ Object



351
352
353
# File 'lib/sakai-info/authz.rb', line 351

def self.find(id)
  @@cache[id] ||= MissingAuthzRealm.new(id)
end

Instance Method Details

#default_serializationObject



363
364
365
366
367
# File 'lib/sakai-info/authz.rb', line 363

def default_serialization
  {
    "id" => "MISSING REALM: #{self.id}",
  }
end

#realm_rolesObject



355
356
357
# File 'lib/sakai-info/authz.rb', line 355

def realm_roles
  []
end

#summary_serializationObject



369
370
371
372
373
# File 'lib/sakai-info/authz.rb', line 369

def summary_serialization
  {
    "id" => "MISSING REALM: #{self.id}",
  }
end

#usersObject



359
360
361
# File 'lib/sakai-info/authz.rb', line 359

def users
  []
end