Changes between Version 11 and Version 12 of GrouperInstall


Ignore:
Timestamp:
06/09/13 07:14:45 (11 years ago)
Author:
uaguest_SPatel1@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GrouperInstall

    v11 v12  
    223223}}} 
    224224 
     225== Patches == 
     226 
     227A bug was found in the Grouper API while debugging the building loader.  The source directory (/srv/grouper/grouper.api-2.1.4/src) was patched with the fix.  The fix will also be available in the next version of Grouper.  To apply the fix, update the file src/grouper/edu/internet2/middleware/grouper/app/loader/db/GrouperLoaderResultset.java with the latest version from the 2.1 branch in Grouper's SVN repository.  Then run 'ant dist' again. 
    225228 
    226229== Basic Grouper Configuration == 
     
    653656}}} 
    654657 
     658== Custom development == 
     659 
     660Custom code development for this proof of concept has been added to the following location:  /srv/grouper_custom. 
     661 
     662Note that this should all probably get added to a UA source control repository. 
     663 
     6641.  The file conf/ua_buildings.properties contains the building information with the fields short name, long name, and campus name.  There is one building per line and the fields are pipe separated. 
     665 
     6662.  The class src/edu/ua/iam/grouper/BuildingLoaderHelper.java contains logic to convert an officeLocation attribute value to a group name.  The algorithm is: 
     667 
     668    a) Check to see if the officeLocation value entirely matches a building short name. 
     669 
     670    b) If a match is not found, remove the first word in the officeLocation value and check again. 
     671 
     672    c) Repeat (b) until a match is found or there is nothing left to check. 
     673 
     674    d) If no match is found, return "UNKNOWN" as the group name. 
     675 
     676    e) If a match is found, return the campus name followed by the short name of the building (separated by a hyphen). 
     677 
     6783.  So for instance, all of the following officeLocation values translate to the Grouper group "ua:inst:buildings:groups:UAF Main Campus - BUTRO": 
     679 
     680{{{ 
     681officeLocation: 211 BUTRO 
     682officeLocation: 211 BUTRO BUTRO 
     683officeLocation: BUTRO 
     684officeLocation: Suite 001 BUTRO 
     685}}} 
     686 
     6874.  The custom code can be deployed by simply running 'ant'.  This will copy both the properties file and the code into the Grouper API installation. 
     688 
     689{{{ 
     690[root@grinnell grouper_custom]# cd /srv/grouper_custom/ 
     691[root@grinnell grouper_custom]# ant 
     692Buildfile: build.xml 
     693 
     694init: 
     695 
     696clean: 
     697   [delete] Deleting directory /srv/grouper_custom/build 
     698   [delete] Deleting: /srv/grouper_custom/dist/lib/grouper_custom.jar 
     699 
     700prepare: 
     701    [mkdir] Created dir: /srv/grouper_custom/build 
     702 
     703prepare-src: 
     704    [mkdir] Created dir: /srv/grouper_custom/build/src 
     705    [mkdir] Created dir: /srv/grouper_custom/build/classes 
     706     [copy] Copying 1 file to /srv/grouper_custom/build/src 
     707 
     708build: 
     709    [javac] Compiling 1 source file to /srv/grouper_custom/build/classes 
     710 
     711jar: 
     712      [jar] Building jar: /srv/grouper_custom/dist/lib/grouper_custom.jar 
     713 
     714all: 
     715     [copy] Copying 1 file to /srv/grouper/grouper.api-2.1.4/lib/custom 
     716 
     717BUILD SUCCESSFUL 
     718Total time: 1 second 
     719[root@grinnell grouper_custom]# 
     720}}} 
     721 
    655722 
    656723== Set up loader for the office building for people ==