Codota Logo
ServerConfigurationService$ConfigItem.getValue
Code IndexAdd Codota to your IDE (free)

How to use
getValue
method
in
org.sakaiproject.component.api.ServerConfigurationService$ConfigItem

Best Java code snippets using org.sakaiproject.component.api.ServerConfigurationService$ConfigItem.getValue (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: org.sakaiproject.kernel/sakai-kernel-impl

/**
 * {@inheritDoc}
 */
public String getRawProperty(String name) {
  String rv = null;
  if (this.rawProperties.containsKey(name)) {
    // NOTE: raw properties ONLY contains the data read in from the properties files
    rv = StringUtils.trimToNull((String) this.rawProperties.get(name));
  } else {
    // check the config storage since it is not in the raw props
    ConfigItem ci = getConfigItem(name);
    if (ci != null && ci.getValue() != null) {
      rv = ci.getValue().toString();
    }
  }
  if (rv == null) rv = "";
  return rv;
}
origin: org.sakaiproject.kernel/sakai-kernel-impl

@Override
public AttributeList getAttributes(String[] attributes) {
  AttributeList list = new AttributeList();
  for (ConfigItem item: serverConfigurationService.getConfigData().getItems()) {
    String name = item.getName();
    Object value = item.getValue();
    Attribute attribute;
    if (item.isSecured()) {
      attribute = new Attribute(name, null);
    } else {
      attribute = new Attribute(name, value);
    }
    list.add(attribute);
  }
  return list;
}
origin: org.sakaiproject.search.elasticsearch/elasticsearch-util

if (IS_DEFAULT && (propertyName.startsWith(DEFAULT_INDEX))) {
  propertyName = propertyName.replaceFirst(DEFAULT_INDEX, "index.");
  mergedConfig.put(propertyName, (String) configItem.getValue());
} else if (propertyName.startsWith(LOCAL_INDEX)) {
  propertyName = propertyName.replaceFirst(LOCAL_INDEX, "index.");
  mergedConfig.put(propertyName, (String) configItem.getValue());
origin: org.sakaiproject.kernel/sakai-kernel-impl

@Override
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException {
  ConfigItem configItem = serverConfigurationService.getConfigItem(attribute);
  if (configItem.isSecured()) {
    return null;
  }
  return configItem.getValue();
}
origin: org.sakaiproject.kernel/sakai-kernel-impl

/**
 * merges the contents of one config item (the safely changed fields) into this one
 * @param ci any config item
 */
public void merge(ConfigItem ci) {
  if (ci != null) {
    //this.name = name;
    this.value = ci.getValue();
    this.type = setValue(ci.getValue());
    this.description = ci.getDescription();
    if (StringUtils.isNotBlank(ci.getSource())) {
      this.source = ci.getSource();
    }
    this.defaultValue = ci.getDefaultValue();
    this.dynamic = ci.isDynamic();
  }
}
origin: org.sakaiproject.kernel/sakai-kernel-impl

public ConfigItem registerConfigItem(ConfigItem configItem) {
  if (configItem == null) {
    throw new IllegalArgumentException("configItem must be set");
  }
  ConfigItemImpl ci = null;
  if (StringUtils.isNotBlank(configItem.getName())) {
    ci = new ConfigItemImpl(configItem.getName(), configItem.getValue(), configItem.getSource());
    if (configItem.getValue() != null) {
      ci.setValue(configItem.getValue());
    }
    if (configItem.getDefaultValue() != null) {
      ci.setDefaultValue(configItem.getDefaultValue());
    }
    ci = this.addConfigItem(ci, ci.getSource());
  } else {
    log.warn("Skipping registering invalid config item (name not set): "+configItem);
  }
  return ci;
}
origin: org.sakaiproject.kernel/sakai-kernel-impl

/**
 * Make an impl from something that implements ConfigItem by copying the field values
 * @param ci a ci object
 */
@SuppressWarnings("unused")
public ConfigItemImpl(ConfigItem ci) {
  this(ci.getName(), ci.getValue(), ci.getType(), ci.getDescription(), ci.getSource(), ci.getDefaultValue(),
      ci.getRequested(), ci.getChanged(), null, ci.isRegistered(), ci.isDefaulted(), ci.isSecured(), ci.isDynamic());
  if (ci.getHistory() != null) {
    this.history = Arrays.asList(ci.getHistory());
  } else {
    this.history = new ArrayList<ConfigHistory>();
  }
}
origin: org.sakaiproject.kernel/sakai-kernel-impl

serialValue = serializeValue(item.getValue(), item.getType(), item.isSecured());
serialDefaultValue = serializeValue(item.getDefaultValue(), item.getType(), item.isSecured());
serialRawValue = serializeValue(getRawProperty(item.getName()), ServerConfigurationService.TYPE_STRING, item.isSecured());
origin: org.sakaiproject.kernel/sakai-kernel-impl

  if (item.getValue() != null) {
    hItem.setValue(serializeValue(item.getValue(), item.getType(), item.isSecured()));
} else if (!value.equals(item.getValue())) {
  hItem.setValue(serializeValue(item.getValue(), item.getType(), item.isSecured()));
origin: sakaiproject/sakai

if (item.getValue() != null) {
  return false;
  if (!value.equals(item.getValue())) {
    return false;
  if (!value.equals(String.valueOf(item.getValue()))) {
    return false;
  if (!value.equals(String.valueOf(item.getValue()))) {
    return false;
  if (!value.equals(join((String[]) item.getValue(), ARRAY_SEPARATOR))) {
    return false;
origin: org.sakaiproject.kernel/sakai-kernel-api

if (item.getValue() != null) {
  return false;
  if (!value.equals(item.getValue())) {
    return false;
  if (!value.equals(String.valueOf(item.getValue()))) {
    return false;
  if (!value.equals(String.valueOf(item.getValue()))) {
    return false;
  if (!value.equals(join((String[]) item.getValue(), ARRAY_SEPARATOR))) {
    return false;
origin: org.sakaiproject.kernel/sakai-kernel-impl

Object value = null;
ConfigItem ci = configurationItems.get(name);
if (ci != null && ci.getValue() != null) {
  value = ci.getValue();
org.sakaiproject.component.apiServerConfigurationService$ConfigItemgetValue

Popular methods of ServerConfigurationService$ConfigItem

  • getName
  • getDefaultValue
  • getDescription
  • getSource
  • getType
  • isDefaulted
  • isDynamic
  • isRegistered
  • isSecured
  • copy
  • getChanged
  • getHistory
  • getChanged,
  • getHistory,
  • getRequested

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
  • notifyDataSetChanged (ArrayAdapter)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Collectors (java.util.stream)
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now