public boolean getReplyToList() { boolean open = false; try { open = getProperties().getBooleanProperty(PROP_MAIL_CHANNEL_REPLY_LIST); } catch (Exception ignore) { } return open; }
/** @return true if the channel is open to messages from outside the membership, false if not. */ public boolean getOpen() { boolean open = false; try { open = getProperties().getBooleanProperty(PROP_MAIL_CHANNEL_OPEN); } catch (Exception ignore) { } return open; } // getOpen
/** @return true if the channel enabled, false if not. */ public boolean getEnabled() { boolean enabled = false; try { enabled = getProperties().getBooleanProperty(ResourceProperties.PROP_CHANNEL_ENABLED); } catch (Exception ignore) { } return enabled; } // getEnabled
public boolean getSendToList() { boolean open = true; //TODO:This shouldn't try/catch for nothing try { open = getProperties().getBooleanProperty(PROP_MAIL_CHANNEL_SENDTO_LIST); } catch (Exception ignore) { } return open; }
public boolean useInstitutionalAnonymousId(Site site) { try { return (serverConfigurationService.getBoolean(PROP_USE_INSTITUTIONAL_ANONYMOUS_ID, false) || (site != null && site.getProperties().getBooleanProperty(PROP_USE_INSTITUTIONAL_ANONYMOUS_ID))); } catch(Exception ignore) {} return false; }
public boolean isAdditionalNotesEnabled(Site site) { try { return (serverConfigurationService.getBoolean(PROP_DISPLAY_ADDITIONAL_INFORMATION, false) || (site != null && site.getProperties().getBooleanProperty(PROP_DISPLAY_ADDITIONAL_INFORMATION))); } catch(Exception ignore) {} return false; }
public boolean useInstitutionalAnonymousId(Site site) { try { return (serverConfigurationService.getBoolean(PROP_USE_INSTITUTIONAL_ANONYMOUS_ID, false) || (site != null && site.getProperties().getBooleanProperty(PROP_USE_INSTITUTIONAL_ANONYMOUS_ID))); } catch(Exception ignore) {} return false; }
public boolean isAdditionalNotesEnabled(Site site) { try { return (serverConfigurationService.getBoolean(PROP_DISPLAY_ADDITIONAL_INFORMATION, false) || (site != null && site.getProperties().getBooleanProperty(PROP_DISPLAY_ADDITIONAL_INFORMATION))); } catch(Exception ignore) {} return false; }
@Override public boolean isInstitutionalNumericIdEnabled(Site site) { try { return (serverConfigurationService.getBoolean(PROP_USE_INSTITUTIONAL_NUMERIC_ID, false) || (site != null && site.getProperties().getBooleanProperty(PROP_USE_INSTITUTIONAL_NUMERIC_ID))); } catch (Exception ignore) { // ignore } return false; }
@Override public boolean assignmentUsesAnonymousGrading(Assignment a) { ResourceProperties properties = a.getProperties(); try { return properties.getBooleanProperty(NEW_ASSIGNMENT_CHECK_ANONYMOUS_GRADING); } catch (EntityPropertyNotDefinedException e) { M_log.debug("Entity Property " + NEW_ASSIGNMENT_CHECK_ANONYMOUS_GRADING + " not defined " + e.getMessage()); } catch (EntityPropertyTypeException e) { M_log.debug("Entity Property " + NEW_ASSIGNMENT_CHECK_ANONYMOUS_GRADING + " type not defined " + e.getMessage()); } return false; }
@Override public boolean isInstitutionalNumericIdEnabled(Site site) { try { return (serverConfigurationService.getBoolean(PROP_USE_INSTITUTIONAL_NUMERIC_ID, false) || (site != null && site.getProperties().getBooleanProperty(PROP_USE_INSTITUTIONAL_NUMERIC_ID))); } catch (Exception ignore) { // ignore } return false; }
/** * Helper method to get the value of a boolean property * * @param siteID * The site to retrieve the property from * @param propertyName * The boolean property name to retrieve * @return true if the boolean property is found and is set to true */ private boolean getBooleanSiteProperty(String siteID, String propertyName) { try { // for example, return the site property called 'joinLimitOfficial' (boolean) Site site = siteService.getSite(siteID); ResourceProperties props = site.getProperties(); return props.getBooleanProperty(propertyName); } catch(Exception e) { log.debug(String.format("Error retrieving property %s from site %s ", propertyName, siteID), e); } return false; }
autoFavorite = props.getBooleanProperty(AUTO_FAVORITE_ENABLED_PROPERTY); } catch (EntityPropertyNotDefinedException | EntityPropertyTypeException e) {
autoFavorite = props.getBooleanProperty(AUTO_FAVORITE_ENABLED_PROPERTY); } catch (EntityPropertyNotDefinedException e) {
firstTimeFavs = existingProps.getBooleanProperty(FIRST_TIME_PROPERTY); } catch (EntityPropertyNotDefinedException e) {
firstTimeFavs = existingProps.getBooleanProperty(FIRST_TIME_PROPERTY); } catch (EntityPropertyNotDefinedException e) {
try isCollection = props.getBooleanProperty(ResourceProperties.PROP_IS_COLLECTION);
ResourceProperties siteProperties = site.getProperties(); try { resetSiteProperty = siteProperties.getBooleanProperty(Portal.CONFIG_AUTO_RESET); } catch (EntityPropertyNotDefinedException e) {
if(rp != null){ try{ isCollection = rp.getBooleanProperty(rp.getNamePropIsCollection()); }catch(EntityPropertyNotDefinedException e){ isCollection = false;
if (props.getBooleanProperty(ResourceProperties.PROP_IS_COLLECTION))