Sha256: a6d65fdfaa3ebd47298d6709ab6cbf86a84b279042dcc64a787ec6d5eff072b4

Contents?: true

Size: 1.49 KB

Versions: 16

Compression:

Stored size: 1.49 KB

Contents

# Copyright © 2012 The Pennsylvania State University
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

class DirectoryController < ApplicationController

  # Stub method.  Override this in your application if you want directory lookups
  def user
    #render :json => User.directory_attributes(params[:uid])
    render :json => "" 
  end

  # Stub method.  Override this in your application if you want directory lookups
  def user_attribute
    # if params[:attribute] == "groups"
    #   res = User.groups(params[:uid])
    # else
    #   res = User.directory_attributes(params[:uid], params[:attribute])
    # end
    # render :json => res
    render :json => "" 
  end

  # Stub method.  Override this in your application if you want directory lookups
  def user_groups
    # render :json => User.groups(params[:uid])
    render :json => [] 
  end

  # Stub method.  Override this in your application if you want directory lookups
  def group
    #render :json => Group.exists?(params[:cn])
    render :json => false 
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sufia-3.1.2 app/controllers/directory_controller.rb
sufia-3.1.1 app/controllers/directory_controller.rb
sufia-3.1.0 app/controllers/directory_controller.rb
sufia-3.0.0 app/controllers/directory_controller.rb
sufia-2.0.1 app/controllers/directory_controller.rb
sufia-2.0.0 app/controllers/directory_controller.rb
sufia-1.3.0 app/controllers/directory_controller.rb
sufia-1.2.0 app/controllers/directory_controller.rb
sufia-1.1.0 app/controllers/directory_controller.rb
sufia-1.0.0 app/controllers/directory_controller.rb
sufia-0.1.0 app/controllers/directory_controller.rb
sufia-0.0.8 app/controllers/directory_controller.rb
sufia-0.0.7 app/controllers/directory_controller.rb
sufia-0.0.6 app/controllers/directory_controller.rb
sufia-0.0.5 app/controllers/directory_controller.rb
sufia-0.0.4 app/controllers/directory_controller.rb