@Override public Instant getUserEULATimestamp(String userId) { Instant timestamp = null; try { ResourceProperties pref = preferencesService.getPreferences(userId).getProperties(PROP_KEY_EULA + getProviderId()); if(pref != null) { timestamp = Instant.ofEpochMilli(pref.getLongProperty(PROP_KEY_EULA_TIMESTAMP)); } }catch(EntityPropertyNotDefinedException e) { //nothing to do, prop is just not set }catch(Exception e) { log.error(e.getMessage(), e); } return timestamp; }
try int option = (int) props.getLongProperty(priStr); if (option != NotificationService.PREF_NONE) return option; try int option = (int) props.getLongProperty(priStr); if (option != NotificationService.PREF_NONE) return option; try int option = (int) props.getLongProperty(priStr); if (option != NotificationService.PREF_NONE) return option; try int option = (int) props.getLongProperty(Integer.toString(NotificationService.NOTI_OPTIONAL)); if (option != NotificationService.PREF_NONE) return option;
long siteSpecific = collection.getProperties().getLongProperty( ResourceProperties.PROP_COLLECTION_BODY_QUOTA); long siteSpecific = parentCollection.getProperties().getLongProperty( ResourceProperties.PROP_COLLECTION_BODY_QUOTA);
rwo.setPublicWrite(rp.getBooleanProperty(RWikiEntity.RP_PUBLIC_WRITE)); rwo.setRevision(Integer.valueOf(rp.getProperty(RWikiEntity.RP_REVISION))); rwo.setVersion(new Date(rp.getLongProperty(RWikiEntity.RP_VERSION)));
long l1 = ((Entity) o1).getProperties().getLongProperty(property); long l2 = ((Entity) o2).getProperties().getLongProperty(property); int rv = ((l1 < l2) ? -1 : ((l1 > l2) ? 1 : 0)); if (!m_ascending) rv = -rv;
tabDisplayLabel = (int) props.getLongProperty("tab:label");
tabDisplayLabel = (int) props.getLongProperty("tab:label");