mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 21:13:19 +00:00
[DS-707] Boolean instantiations
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5496 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -208,7 +208,7 @@ public class ShibAuthentication implements AuthenticationMethod
|
||||
// the person exists, just return ok
|
||||
context.setCurrentUser(eperson);
|
||||
request.getSession().setAttribute("shib.authenticated",
|
||||
new Boolean("true"));
|
||||
Boolean.TRUE);
|
||||
}
|
||||
|
||||
return AuthenticationMethod.SUCCESS;
|
||||
|
@@ -471,14 +471,14 @@ public class X509Authentication implements AuthenticationMethod
|
||||
if (email.substring(email.length() - emailDomain.length()).equals(
|
||||
emailDomain))
|
||||
{
|
||||
session.setAttribute("x509Auth", new Boolean(true));
|
||||
session.setAttribute("x509Auth", Boolean.TRUE);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// No configured email domain to verify. Just flag
|
||||
// as authenticated so special groups are granted.
|
||||
session.setAttribute("x509Auth", new Boolean(true));
|
||||
session.setAttribute("x509Auth", Boolean.TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -139,7 +139,7 @@ public class ChoiceAuthorityManager
|
||||
log.warn("Skipping invalid ChoiceAuthority configuration property: "+key+": does not have schema.element.qualifier");
|
||||
continue property;
|
||||
}
|
||||
closed.put(fkey, new Boolean(ConfigurationManager.getBooleanProperty(key)));
|
||||
closed.put(fkey, Boolean.valueOf(ConfigurationManager.getBooleanProperty(key)));
|
||||
}
|
||||
else
|
||||
log.error("Illegal configuration property: "+key);
|
||||
|
@@ -126,7 +126,7 @@ public class PluginManager
|
||||
{
|
||||
String key = REUSABLE_PREFIX+implClass.getName();
|
||||
boolean reusable = ConfigurationManager.getBooleanProperty(key, true);
|
||||
cacheMeCache.put(implClass, new Boolean(reusable));
|
||||
cacheMeCache.put(implClass, Boolean.valueOf(reusable));
|
||||
return reusable;
|
||||
}
|
||||
}
|
||||
|
@@ -163,7 +163,7 @@ public class InitialQuestionsStep extends AbstractProcessingStep
|
||||
|
||||
// Remember that we've removed a thesis in the session
|
||||
request.getSession().setAttribute("removed_thesis",
|
||||
new Boolean(true));
|
||||
Boolean.TRUE);
|
||||
|
||||
return STATUS_THESIS_REJECTED; // since theses are disabled, throw
|
||||
// an error!
|
||||
@@ -231,9 +231,9 @@ public class InitialQuestionsStep extends AbstractProcessingStep
|
||||
if (willRemoveTitles || willRemoveDate || willRemoveFiles)
|
||||
{
|
||||
//save what we will need to prune to request (for UI to process)
|
||||
request.setAttribute("will.remove.titles", new Boolean(willRemoveTitles));
|
||||
request.setAttribute("will.remove.date", new Boolean(willRemoveDate));
|
||||
request.setAttribute("will.remove.files", new Boolean(willRemoveFiles));
|
||||
request.setAttribute("will.remove.titles", Boolean.valueOf(willRemoveTitles));
|
||||
request.setAttribute("will.remove.date", Boolean.valueOf(willRemoveDate));
|
||||
request.setAttribute("will.remove.files", Boolean.valueOf(willRemoveFiles));
|
||||
|
||||
return STATUS_VERIFY_PRUNE; // we will need to do pruning!
|
||||
}
|
||||
|
@@ -212,7 +212,7 @@ public class WorkflowManager
|
||||
{
|
||||
// make a hash table entry with item ID for no notify
|
||||
// notify code checks no notify hash for item id
|
||||
noEMail.put(new Integer(wsi.getItem().getID()), new Boolean(true));
|
||||
noEMail.put(new Integer(wsi.getItem().getID()), Boolean.TRUE);
|
||||
|
||||
return start(c, wsi);
|
||||
}
|
||||
|
Reference in New Issue
Block a user