Skip to Content.
Sympa Menu

grouper-dev - RE: [grouper-dev] No custom GrouperEngine in 2.2.0?

Subject: Grouper Developers Forum

List archive

RE: [grouper-dev] No custom GrouperEngine in 2.2.0?


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Jim Fox <>, Grouper Dev <>
  • Subject: RE: [grouper-dev] No custom GrouperEngine in 2.2.0?
  • Date: Tue, 5 Aug 2014 01:08:18 +0000
  • Accept-language: en-US

Its an oversight. Try making these changes and let me know if it helps.

If you change line 152 in GrouperContext.java to this:

FROM:

return GrouperEngineBuiltin.valueOfIgnoreCase(this.grouperEngine, false);

TO:

return GrouperEngineBuiltin.valueOfIgnoreCase(this.grouperEngine, false,
false);



And add this method to GrouperEngineBuiltin.java:

/**
* do a case-insensitive matching
*
* @param string
* @param exceptionOnNull will not allow null or blank entries
* @param exceptionIfNotFound if string isnt found should there be an
exception
* @return the enum or null or exception if not found
*/
public static GrouperEngineBuiltin valueOfIgnoreCase(String string, boolean
exceptionOnNull, boolean exceptionIfNotFound) {

//check the string
for (GrouperEngineBuiltin grouperEngineBuiltin : values()) {
if (StringUtils.equalsIgnoreCase(string,
grouperEngineBuiltin.grouperEngine)) {
return grouperEngineBuiltin;
}
}

return GrouperUtil.enumValueOfIgnoreCase(GrouperEngineBuiltin.class,
string, exceptionOnNull, exceptionIfNotFound);

}


-----Original Message-----
From:


[mailto:]
On Behalf Of Jim Fox
Sent: Monday, August 04, 2014 3:59 PM
To: Grouper Dev
Subject: [grouper-dev] No custom GrouperEngine in 2.2.0?


In version 2.1.2 am able to use a custom GrouperEngine. It is handy for
audits. Don't know if it's used elsewhere.

In version 2.2.0 I can't do this anymore. Some code in TableIndex.java in
particular seems to require only the default engines. Is this a change of
policy or an oversight?

Thanks,

Jim




Archive powered by MHonArc 2.6.16.

Top of Page