@Label("timestamp.property") public String getDatabaseBlobTimestampProperty() { return databaseBlobTimestampProperty; }
public static String getLabel(PropertyAccessor accessor, TextProvider textProvider) { String label; if (accessor.isAnnotationPresent(LabelI18N.class)) { String text = accessor.getAnnotation(LabelI18N.class).value(); logger.debug("LabelI18N annotation present with value: {}", text); label = textProvider.getText(text); } else if (accessor.isAnnotationPresent(Label.class)) { String text = accessor.getAnnotation(Label.class).value(); logger.debug("Label annotation present with value: {}", text); label = textProvider.getText(text); } else { label = Util.guessToWords(accessor.getName()); logger.debug("Setting label from property name: {}", label); } return label; }
public static String getLabel(PropertyAccessor accessor, TextProvider textProvider) { String label; if (accessor.isAnnotationPresent(LabelI18N.class)) { String text = accessor.getAnnotation(LabelI18N.class).value(); logger.debug("LabelI18N annotation present with value: {}", text); label = textProvider.getText(text); } else if (accessor.isAnnotationPresent(Label.class)) { String text = accessor.getAnnotation(Label.class).value(); logger.debug("Label annotation present with value: {}", text); label = textProvider.getText(text); } else { label = Util.guessToWords(accessor.getName()); logger.debug("Setting label from property name: {}", label); } return label; }
@Label("users.table") public String getUserTableName() { return userTableName; }
protected void setupPropertyEdits() { if(classAccessor == null) { return; } PropertyAccessor[] propertyAccessors = classAccessor.getProperties(); propertyEdits = new CrudPropertyEdit[propertyAccessors.length]; for (int i = 0; i < propertyAccessors.length; i++) { CrudPropertyEdit edit = new CrudPropertyEdit(); PropertyAccessor propertyAccessor = propertyAccessors[i]; edit.name = propertyAccessor.getName(); com.manydesigns.elements.annotations.Label labelAnn = propertyAccessor.getAnnotation(com.manydesigns.elements.annotations.Label.class); edit.label = labelAnn != null ? labelAnn.value() : null; Enabled enabledAnn = propertyAccessor.getAnnotation(Enabled.class); edit.enabled = enabledAnn != null && enabledAnn.value(); InSummary inSummaryAnn = propertyAccessor.getAnnotation(InSummary.class); edit.inSummary = inSummaryAnn != null && inSummaryAnn.value(); Insertable insertableAnn = propertyAccessor.getAnnotation(Insertable.class); edit.insertable = insertableAnn != null && insertableAnn.value(); Updatable updatableAnn = propertyAccessor.getAnnotation(Updatable.class); edit.updatable = updatableAnn != null && updatableAnn.value(); Searchable searchableAnn = propertyAccessor.getAnnotation(Searchable.class); edit.searchable = searchableAnn != null && searchableAnn.value(); propertyEdits[i] = edit; } }
@Label("username.property") public String getUserNameProperty() { return userNameProperty; }
@Label("token.property") public String getUserTokenProperty() { return userTokenProperty; }
@Label("driver major/minor version") public String getDriverMajorMinorVersion() { return driverMajorMinorVersion; }
@Label("password.property") public String getUserPasswordProperty() { return userPasswordProperty; }
@Label("password.encryption.algorithm") public String getEncryptionAlgorithm() { return encryptionAlgorithm; }
@Label("database major/minor version") public String getDatabaseMajorMinorVersion() { return databaseMajorMinorVersion; }
@Label("servlet API version") public String getServletApiVersion() { return servletApiVersion; }
@Label("file.name.property") public String getDatabaseBlobFileNameProperty() { return databaseBlobFileNameProperty; }
@Label("content.type.property") public String getDatabaseBlobContentTypeProperty() { return databaseBlobContentTypeProperty; }
@Label("user.id.property") public String getUserIdProperty() { return userIdProperty; }
@Label("property.that.links.to.group") public String getGroupLinkProperty() { return groupLinkProperty; }
@Label("property.that.links.to.user") public String getUserLinkProperty() { return userLinkProperty; }
@Label("driver major/minor version") public String getDriverMajorMinorVersion() { return driverMajorMinorVersion; }
@Label("database major/minor version") public String getDatabaseMajorMinorVersion() { return databaseMajorMinorVersion; }
@Label("email.property") public String getUserEmailProperty() { return userEmailProperty; }