Module: JGrouper
- Defined in:
- lib/jgrouper.rb,
lib/jgrouper/stem.rb,
lib/jgrouper/field.rb,
lib/jgrouper/group.rb,
lib/jgrouper/member.rb,
lib/jgrouper/source.rb,
lib/jgrouper/subject.rb,
lib/jgrouper/version.rb,
lib/jgrouper/exporter.rb,
lib/jgrouper/privilege.rb,
lib/jgrouper/group_type.rb,
lib/jgrouper/audit_archiver.rb,
lib/jgrouper/export_file_diff.rb,
lib/jgrouper/export_file_entry.rb,
lib/jgrouper/export_file_reader.rb
Overview
:nodoc:
Defined Under Namespace
Classes: AuditArchiver, ExportFileDiff, ExportFileEntry, ExportFileReader, Exporter, Field, Group, GroupType, Member, Privilege, Source, Stem, Subject
Constant Summary collapse
- VERSION =
'0.7.0'
Class Method Summary collapse
-
.home!(path) ⇒ Object
Initialize Grouper API or raise exception if path does not exist.
-
.start_root_session ⇒ Object
TODO Block method?.
Class Method Details
.home!(path) ⇒ Object
Initialize Grouper API or raise exception if path does not exist.
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 |
# File 'lib/jgrouper.rb', line 153 def self.home!(path) raise "ERROR: path does not exist - #{path}" unless File.directory?(path) ENV['CLASSPATH'].split(':').each { |cp| $CLASSPATH << cp } [ "#{path}/lib/grouper/", "#{path}/lib/jdbcSamples" ].each do |dir| Dir[ "#{dir}/*.jar" ].each { |jar| $CLASSPATH << jar } end $CLASSPATH << File.join( path, 'conf' ) $CLASSPATH << File.join( path, 'dist', 'lib', 'grouper.jar' ) %w( edu.internet2.middleware.grouper.Field edu.internet2.middleware.grouper.FieldFinder edu.internet2.middleware.grouper.GroupFinder edu.internet2.middleware.grouper.GrouperSession edu.internet2.middleware.grouper.GroupTypeFinder edu.internet2.middleware.grouper.MemberFinder edu.internet2.middleware.grouper.privs.Privilege edu.internet2.middleware.subject.provider.SourceManager edu.internet2.middleware.grouper.StemFinder edu.internet2.middleware.grouper.SubjectFinder edu.internet2.middleware.subject.SubjectNotFoundException ).each do |klass| java_import klass do |pkg, cls| "J#{cls}"; end end end |
.start_root_session ⇒ Object
TODO Block method?
183 184 185 186 |
# File 'lib/jgrouper.rb', line 183 def self.start_root_session # TODO Block method? JGrouperSession.start_root_session end |