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

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

Best Java code snippets using org.sakaiproject.component.api.ServerConfigurationService$ConfigItem.getName (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

@SuppressWarnings("NullableProblems")
public int compareTo(ConfigItem ci) {
  if (ci == null) {
    throw new NullPointerException("Cannot compare this to a null value");
  }
  return this.name.compareToIgnoreCase(ci.getName());
}
origin: org.sakaiproject.kernel/sakai-kernel-impl

@Override
public boolean equals(Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (getClass() != obj.getClass())
    return false;
  ConfigItem other = (ConfigItem) obj;
  if (name == null) {
    if (other.getName() != null)
      return false;
  } else if (!name.equals(other.getName()))
    return false;
  return true;
}
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.kernel/sakai-kernel-impl

@Override
public void changed(ConfigItem item, ConfigItem previous) {
  // a ConfigItem has changed
  if (item == null) {
    return;
  }
  HibernateConfigItem hItem = findByName(item.getName());
  if (hItem == null) {
    // new hItem
    hItem = createHibernateConfigItem(item);
  } else {
    // existing hItem, update it
    hItem = updateHibernateConfigItem(hItem, item);
  }
  saveOrUpdate(hItem);
}
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.search.elasticsearch/elasticsearch-util

String propertyName = configItem.getName();
if (IS_DEFAULT && (propertyName.startsWith(DEFAULT_INDEX))) {
  propertyName = propertyName.replaceFirst(DEFAULT_INDEX, "index.");
origin: org.sakaiproject.kernel/sakai-kernel-impl

int rows = countByName(item.getName());
    hItem = findByName(item.getName());
origin: org.sakaiproject.kernel/sakai-kernel-impl

if (item == null || neverPersistItems.contains(item.getName())) {
  return null;
  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());
} catch (IllegalClassException ice) {
  log.error("Skip ConfigItem {}, {}", item, ice.getMessage());
                              item.getName(),
                              serialValue,
                              serialRawValue,
origin: org.sakaiproject.kernel/sakai-kernel-api

  if (item.getName() != null) {
    return false;
} else if (!name.equals(item.getName())) {
  return false;
origin: sakaiproject/sakai

  if (item.getName() != null) {
    return false;
} else if (!name.equals(item.getName())) {
  return false;
origin: org.sakaiproject.kernel/sakai-kernel-impl

    break;
attributeInfos.add(new MBeanAttributeInfo(item.getName(), type, item.getDescription(), !item.isSecured(), true, false));
org.sakaiproject.component.apiServerConfigurationService$ConfigItemgetName

Popular methods of ServerConfigurationService$ConfigItem

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

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Menu (java.awt)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
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