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