/** * @deprecated As of Wilberforce (7.0.x), replaced by {@link * IndexStatusManagerConfiguration#indexReadOnly} */ @Deprecated @Meta.AD(deflt = "false", name = "index-read-only", required = false) public boolean indexReadOnly();
boolean required = ad ==null || ad.required(); String deflt = null; String max = null; if (ad.id() != null) id = ad.id(); if (ad.name() != null) name = ad.name(); if (ad.cardinality() != 0) cardinality = ad.cardinality(); if (ad.type() != null) type = ad.type(); if (ad.required() || ad.deflt() == null) required = true; if (ad.description() != null) description = ad.description(); if (ad.optionLabels() != null) optionLabels = ad.optionLabels(); if (ad.optionValues() != null ) optionValues = ad.optionValues(); if (ad.min() != null) min = ad.min(); if (ad.max() != null) max = ad.max(); if (ad.deflt() != null)
required = a.get("required") != null ? ad.required() : a.get("deflt") == null; id = ad.id(); if (a.get("name") != null) name = ad.name(); if (a.get("cardinality") != null) cardinality = ad.cardinality() == 0 ? cardinality : ad.cardinality(); if (a.get("type") != null) type = ad.type(); if (a.get("description") != null) description = ad.description(); optionLabels = ad.optionLabels(); if (a.get("optionValues") != null) optionValues = ad.optionValues(); min = ad.min(); if (a.get("max") != null) max = ad.max(); deflt = ad.deflt();
required = a.get("required") != null ? ad.required() : a.get("deflt") == null; id = ad.id(); if (a.get("name") != null) name = ad.name(); if (a.get("cardinality") != null) cardinality = ad.cardinality() == 0 ? cardinality : ad.cardinality(); if (a.get("type") != null) type = ad.type(); if (a.get("description") != null) description = ad.description(); optionLabels = ad.optionLabels(); if (a.get("optionValues") != null) optionValues = ad.optionValues(); min = ad.min(); if (a.get("max") != null) max = ad.max(); deflt = ad.deflt();
boolean required = ad == null || ad.required(); String deflt = null; String max = null; if (ad.id() != null) id = ad.id(); if (ad.name() != null) name = ad.name(); if (ad.cardinality() != 0) cardinality = ad.cardinality(); if (ad.type() != null) type = ad.type(); if (ad.description() != null) description = ad.description(); if (ad.optionLabels() != null) optionLabels = ad.optionLabels(); if (ad.optionValues() != null) optionValues = ad.optionValues(); if (ad.min() != null) min = ad.min(); if (ad.max() != null) max = ad.max(); if (ad.deflt() != null) deflt = ad.deflt();
boolean required = ad == null || ad.required(); String deflt = null; String max = null; if (ad.id() != null) id = ad.id(); if (ad.name() != null) name = ad.name(); if (ad.cardinality() != 0) cardinality = ad.cardinality(); if (ad.type() != null) type = ad.type(); if (ad.description() != null) description = ad.description(); if (ad.optionLabels() != null) optionLabels = ad.optionLabels(); if (ad.optionValues() != null) optionValues = ad.optionValues(); if (ad.min() != null) min = ad.min(); if (ad.max() != null) max = ad.max(); if (ad.deflt() != null) deflt = ad.deflt();
boolean required = ad == null || ad.required(); String deflt = null; String max = null; if (ad.id() != null) id = ad.id(); if (ad.name() != null) name = ad.name(); if (ad.cardinality() != 0) cardinality = ad.cardinality(); if (ad.type() != null) type = ad.type(); if (ad.description() != null) description = ad.description(); if (ad.optionLabels() != null) optionLabels = ad.optionLabels(); if (ad.optionValues() != null) optionValues = ad.optionValues(); if (ad.min() != null) min = ad.min(); if (ad.max() != null) max = ad.max(); if (ad.deflt() != null) deflt = ad.deflt();
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Meta.AD ad = method.getAnnotation(Meta.AD.class); String id = Configurable.mangleMethodName(method.getName()); if (ad != null && !ad.id().equals(Meta.NULL)) id = ad.id(); Object o = properties.get(id); if (o == null) { if (ad != null) { if (ad.required()) throw new IllegalStateException("Attribute is required but not set " + method.getName()); o = ad.deflt(); if (o.equals(Meta.NULL)) o = null; } } if (o == null) { Class< ? > rt = method.getReturnType(); if (rt == boolean.class ) return false; if (method.getReturnType().isPrimitive()) { o = "0"; } else return null; } return convert(method.getGenericReturnType(), o); }
@Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Meta.AD ad = method.getAnnotation(Meta.AD.class); String id = Configurable.mangleMethodName(method.getName()); if (ad != null && !ad.id() .equals(Meta.NULL)) id = ad.id(); Object o = properties.get(id); if (o == null) { if (ad != null) { if (ad.required()) throw new IllegalStateException("Attribute is required but not set " + method.getName()); o = ad.deflt(); if (o.equals(Meta.NULL)) o = null; } } if (o == null) { Class<?> rt = method.getReturnType(); if (rt == boolean.class) return false; if (method.getReturnType() .isPrimitive()) { o = "0"; } else return null; } return convert(method.getGenericReturnType(), o); }
@Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Meta.AD ad = method.getAnnotation(Meta.AD.class); String id = Configurable.mangleMethodName(method.getName()); if (ad != null && !ad.id() .equals(Meta.NULL)) id = ad.id(); Object o = properties.get(id); if (o == null) { if (ad != null) { if (ad.required()) throw new IllegalStateException("Attribute is required but not set " + method.getName()); o = ad.deflt(); if (o.equals(Meta.NULL)) o = null; } } if (o == null) { Class<?> rt = method.getReturnType(); if (rt == boolean.class) return false; if (method.getReturnType() .isPrimitive()) { o = "0"; } else return null; } return convert(method.getGenericReturnType(), o); }
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Meta.AD ad = method.getAnnotation(Meta.AD.class); String id = Configurable.mangleMethodName(method.getName()); if (ad != null && !ad.id().equals(Meta.NULL)) id = ad.id(); Object o = properties.get(id); if (o == null) { if (ad != null) { if (ad.required()) throw new IllegalStateException("Attribute is required but not set " + method.getName()); o = ad.deflt(); if (o.equals(Meta.NULL)) o = null; } } if (o == null) { Class< ? > rt = method.getReturnType(); if (rt == boolean.class ) return false; if (method.getReturnType().isPrimitive()) { o = "0"; } else return null; } return convert(method.getGenericReturnType(), o); }
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Meta.AD ad = method.getAnnotation(Meta.AD.class); String id = Configurable.mangleMethodName(method.getName()); if (ad != null && !ad.id().equals(Meta.NULL)) id = ad.id(); Object o = properties.get(id); if (o == null) { if (ad != null) { if (ad.required()) throw new IllegalStateException("Attribute is required but not set " + method.getName()); o = ad.deflt(); if (o.equals(Meta.NULL)) o = null; } } if (o == null) { if (method.getReturnType().isPrimitive() || Number.class.isAssignableFrom(method.getReturnType())) { o = "0"; } else return null; } return convert(method.getGenericReturnType(), o); }
@Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Meta.AD ad = method.getAnnotation(Meta.AD.class); String id = Configurable.mangleMethodName(method.getName()); if (ad != null && !ad.id() .equals(Meta.NULL)) id = ad.id(); Object o = properties.get(id); if (o == null) { if (ad != null) { if (ad.required()) throw new IllegalStateException("Attribute is required but not set " + method.getName()); o = ad.deflt(); if (o.equals(Meta.NULL)) o = null; } } if (o == null) { Class<?> rt = method.getReturnType(); if (rt == boolean.class) return false; if (method.getReturnType() .isPrimitive()) { o = "0"; } else return null; } return convert(method.getGenericReturnType(), o); }
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Meta.AD ad = method.getAnnotation(Meta.AD.class); String id = Configurable.mangleMethodName(method.getName()); if (ad != null && !ad.id().equals(Meta.NULL)) id = ad.id(); Object o = properties.get(id); if (o == null) { if (ad != null) { if (ad.required()) throw new IllegalStateException("Attribute is required but not set " + method.getName()); o = ad.deflt(); if (o.equals(Meta.NULL)) o = null; } } if (o == null) { Class< ? > rt = method.getReturnType(); if (rt == boolean.class ) return false; if (method.getReturnType().isPrimitive()) { o = "0"; } else return null; } return convert(method.getGenericReturnType(), o); }
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Meta.AD ad = method.getAnnotation(Meta.AD.class); String id = Configurable.mangleMethodName(method.getName()); if (ad != null && !ad.id().equals(Meta.NULL)) id = ad.id(); Object o = properties.get(id); if (o == null) { if (ad != null) { if (ad.required()) throw new IllegalStateException("Attribute is required but not set " + method.getName()); o = ad.deflt(); if (o.equals(Meta.NULL)) o = null; } } if (o == null) { Class< ? > rt = method.getReturnType(); if (rt == boolean.class || rt == Boolean.class) return false; if (method.getReturnType().isPrimitive()) { o = "0"; } else return null; } return convert(method.getGenericReturnType(), o); }
@Meta.AD(deflt = "alloyeditor", name = "get-html-editor", required = false) public String getHTMLEditor();
@Meta.AD(deflt = "true", name = "enable-rss", required = false) public boolean enableRss();
@Meta.AD(deflt = "false", name = "index-read-only", required = false) public boolean indexReadOnly();
/** * Set this to <code>true</code> to allow users to configure Asset * Publisher, Most Viewed Assets, and Highest Rated Assets to skip the * permissions checking on the displayed assets. Enabling this property will * allow regular users to view assets that they do not have permission to * view. * * @return <code>true</code> if permission checking is configurable. */ @Meta.AD( deflt = "false", description = "permission-checking-configurable-key-description", name = "permission-checking-configurable", required = false ) public boolean permissionCheckingConfigurable();
@Meta.AD(deflt = "300", name = "small-image-width", required = false) public int smallImageWidth();