@Override public boolean getBooleanProperty(String module, String key, boolean defaultValue) { return ConfigurationManager.getBooleanProperty(module, key, defaultValue); } }
/** * Is tag cloud enabled * * @return true or false */ public boolean isTagCloudEnabled() { return ConfigurationManager.getBooleanProperty("webui.browse.index.tagcloud." + number); } }
private void getThumbSettings() { showThumbs = ConfigurationManager .getBooleanProperty("webui.item.thumbnail.show"); }
/** * Let a real auth method return true if it wants. * * @throws SQLException if database error */ @Override public boolean canSelfRegister(Context context, HttpServletRequest request, String username) throws SQLException { // Looks to see if autoregister is set or not return ConfigurationManager.getBooleanProperty("authentication-ldap", "autoregister"); }
protected boolean preserveManifest() { return ConfigurationManager.getBooleanProperty("mets." + getConfigurationName() + ".ingest.preserveManifest", false); }
protected boolean useCollectionTemplate() { return ConfigurationManager.getBooleanProperty("mets." + getConfigurationName() + ".ingest.useCollectionTemplate", false); }
public void removeBundle(Context context, Item item, Bundle source) throws SQLException, AuthorizeException, IOException { boolean keep = ConfigurationManager .getBooleanProperty("swordv2-server", "versions.keep"); this.removeBundle(context, item, source, keep); }
public void removeBitstream(Context context, Item item, Bitstream bitstream) throws SQLException, AuthorizeException, IOException { boolean keep = ConfigurationManager .getBooleanProperty("swordv2-server", "versions.keep"); this.removeBitstream(context, item, bitstream, keep); }
/** * Generate the unique caching key. * This key must be unique inside the space of this component. */ public Serializable getKey() { boolean full = ConfigurationManager.getBooleanProperty("xmlui.community-list.render.full", true); return HashUtil.hash(depth + "-" + excludeCollections + "-" + (full ? "true" : "false")); }
public void init() { registering = getInitParameter("register").equalsIgnoreCase("true"); ldap_enabled = ConfigurationManager.getBooleanProperty("authentication-ldap", "enable"); }
/** * Set authority controlled fields */ private static void setAuthorizedMetadataFields() { authorityControlled = new HashSet<String>(); Enumeration propertyNames = ConfigurationManager.getProperties().propertyNames(); while (propertyNames.hasMoreElements()) { String key = ((String) propertyNames.nextElement()).trim(); if (key.startsWith(AC_PREFIX) && ConfigurationManager.getBooleanProperty(key, false)) { authorityControlled.add(key.substring(AC_PREFIX.length())); } } }
public InputStream getThumb(Item currentItem, BufferedImage buf, boolean verbose) throws Exception { // get config params float xmax = (float) ConfigurationManager .getIntProperty("thumbnail.maxwidth"); float ymax = (float) ConfigurationManager .getIntProperty("thumbnail.maxheight"); boolean blurring = (boolean) ConfigurationManager .getBooleanProperty("thumbnail.blurring"); boolean hqscaling = (boolean) ConfigurationManager .getBooleanProperty("thumbnail.hqscaling"); return getThumbDim(currentItem, buf, verbose, xmax, ymax, blurring, hqscaling, 0, 0, null); }
public void removeBundle(Context context, Item item, String name) throws SQLException, AuthorizeException, IOException { boolean keep = ConfigurationManager .getBooleanProperty("swordv2-server", "versions.keep"); Iterator<Bundle> bundles = item.getBundles().iterator(); while (bundles.hasNext()) { Bundle b = bundles.next(); if (name.equals(b.getName())) { bundles.remove(); this.removeBundle(context, item, b, keep); } } }
protected void addVerboseDescription(DepositReceipt receipt, VerboseDescription verboseDescription) { boolean includeVerbose = ConfigurationManager .getBooleanProperty("swordv2-server", "verbose-description.receipt.enable"); if (includeVerbose) { receipt.setVerboseDescription(verboseDescription.toString()); } } }
@Override public RequestItemAuthor getRequestItemAuthor(Context context, Item item) throws SQLException { boolean helpdeskOverridesSubmitter = ConfigurationManager .getBooleanProperty("request.item.helpdesk.override", false); String helpDeskEmail = ConfigurationManager.getProperty("mail.helpdesk"); if (helpdeskOverridesSubmitter && StringUtils.isNotBlank(helpDeskEmail)) { return getHelpDeskPerson(context, helpDeskEmail); } else { //Fallback to default logic (author of Item) if helpdesk isn't fully enabled or setup return super.getRequestItemAuthor(context, item); } }
protected void followUp(AuthorityValue authority) { print.println("Updated: " + authority.getValue() + " - " + authority.getId()); boolean updateItems = ConfigurationManager.getBooleanProperty("solrauthority", "auto-update-items"); if (updateItems) { updateItems(authority); } }
protected void doDSGet(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { // check if ldap is enables and forward to the correct login form boolean ldap_enabled = ConfigurationManager.getBooleanProperty("ldap.enable"); if (ldap_enabled) { JSPManager.showJSP(request, response, "/login/ldap.jsp"); } else { JSPManager.showJSP(request, response, "/login/password.jsp"); } }
/** * add the generator field content */ protected void addGenerator() { boolean identify = ConfigurationManager.getBooleanProperty( "sword-server", "identify-version"); SWORDUrlManager urlManager = swordService.getUrlManager(); String softwareUri = urlManager.getGeneratorUrl(); if (identify) { Generator generator = new Generator(); generator.setUri(softwareUri); generator.setVersion(SWORDProperties.VERSION); entry.setGenerator(generator); } }
@Override public void regenerateTasks(Context c, XmlWorkflowItem wfi, RoleMembers roleMembers) throws SQLException, AuthorizeException, IOException { if (roleMembers != null && (roleMembers.getEPersons().size() > 0 || roleMembers.getGroups().size() > 0)) { //Create task for the users left XmlWorkflowServiceFactory.getInstance().getXmlWorkflowService() .createPoolTasks(c, wfi, roleMembers, getParent().getStep(), getParent()); if (ConfigurationManager.getBooleanProperty("workflow", "notify.returned.tasks", true)) { alertUsersOnActivation(c, wfi, roleMembers); } } else { log.info(LogManager.getHeader(c, "warning while activating claim action", "No group or person was found for the following roleid: " + getParent() .getStep().getId())); } }
/** * add the generator field content */ protected void addGenerator() { boolean identify = ConfigurationManager.getBooleanProperty("sword-server", "identify-version"); SWORDUrlManager urlManager = swordService.getUrlManager(); String softwareUri = urlManager.getGeneratorUrl(); if (identify) { Generator generator = new Generator(); generator.setUri(softwareUri); generator.setVersion(SWORDProperties.VERSION); entry.setGenerator(generator); } }