Codota Logo
Plugin
Code IndexAdd Codota to your IDE (free)

How to use
Plugin
in
org.miloss.fgsms.services.interfaces.policyconfiguration

Best Java code snippets using org.miloss.fgsms.services.interfaces.policyconfiguration.Plugin (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: org.mil-oss/fgsms-common

/**
 * a convenience wrapper to create a new plugin instance
 *
 * @param classname
 * @param displayname
 * @param appliesto FEDERATION_PUBLISH,SLA_RULE,SLA_ACTION, LOGGER
 * @return
 */
public static Plugin newPlugin(String classname, String displayname, String appliesto) {
  Plugin p = new Plugin();
  p.setClassname(classname);
  p.setDisplayname(displayname);
  p.setPlugintype(appliesto);
  return p;
}
origin: org.mil-oss/fgsms-ui-common

req.setGetPluginInformationRequestWrapper(new GetPluginInformationRequestWrapper());
req.getGetPluginInformationRequestWrapper().setClassification(c);
req.getGetPluginInformationRequestWrapper().setPlugin(new Plugin());
req.getGetPluginInformationRequestWrapper().getPlugin().setClassname(clazz);
req.getGetPluginInformationRequestWrapper().getPlugin().setPlugintype(type);
origin: org.mil-oss/fgsms-common-interfaces

/**
 * Create an instance of {@link Plugin }
 * 
 */
public Plugin createPlugin() {
  return new Plugin();
}
origin: org.mil-oss/fgsms-ui-common

SLARuleGeneric x = (SLARuleGeneric) rule;
for (int i = 0; i < rule_plugins.size(); i++) {
  if (rule_plugins.get(i).getClassname().equalsIgnoreCase(x.getClassName())) {
     return rule_plugins.get(i).getDisplayname();
origin: org.mil-oss/fgsms-ui-common

/**
*
* @param action
* @param pcs
* @param c
* @param item_type FEDERATION_PUBLISH,SLA_RULE,SLA_ACTION
* @return
*/
public static String GetPluginHelp(SLAAction action, PCS pcs, SecurityWrapper c, String item_type) {
  if (action == null) {
     return "Null Action";
  }
  GetPluginInformationRequestMsg req = new GetPluginInformationRequestMsg();
  req.setGetPluginInformationRequestWrapper(new GetPluginInformationRequestWrapper());
  req.getGetPluginInformationRequestWrapper().setClassification(c);
  req.getGetPluginInformationRequestWrapper().setPlugin(new Plugin());
  req.getGetPluginInformationRequestWrapper().getPlugin().setClassname(action.getImplementingClassName());
  req.getGetPluginInformationRequestWrapper().getPlugin().setPlugintype(item_type);
  GetPluginInformation r = new GetPluginInformation();
  r.setRequest(req);
  try {
     GetPluginInformationResponse pluginInformation = pcs.getPluginInformation(r);
     return pluginInformation.getResponse().getHelp();
  } catch (Exception ex) {
     LogHelper.getLog().error(ex);
  }
  return "No help information could be found.";
}
origin: org.mil-oss/fgsms-ui-common

/**
* report type to a friendly name for report types
*
* @param r
* @return
*/
public static String ToFriendlyName(String action, PCS pcs, SecurityWrapper c) {
  if (action == null) {
     return "Null classname";
  }
  GetPluginInformationRequestMsg req = new GetPluginInformationRequestMsg();
  req.setGetPluginInformationRequestWrapper(new GetPluginInformationRequestWrapper());
  req.getGetPluginInformationRequestWrapper().setClassification(c);
  req.getGetPluginInformationRequestWrapper().setPlugin(new Plugin());
  req.getGetPluginInformationRequestWrapper().getPlugin().setClassname(action);
  req.getGetPluginInformationRequestWrapper().getPlugin().setPlugintype("REPORTING");
  GetPluginInformation r = new GetPluginInformation();
  r.setRequest(req);
  try {
     GetPluginInformationResponse pluginInformation = pcs.getPluginInformation(r);
     return Utility.encodeHTML(pluginInformation.getResponse().getDisplayName());
  } catch (Exception ex) {
     LogHelper.getLog().error(ex);
  }
  return "Unrecognized report type " + Utility.encodeHTML(action);
}
origin: org.mil-oss/fgsms-ui-common

/**
*
* @param action
* @param pcs
* @param c
* @param item_type FEDERATION_PUBLISH,SLA_RULE,SLA_ACTION
* @return html escaped friendly name of the plugin
*/
public static String ToFriendlyName(SLAAction action, PCS pcs, SecurityWrapper c) {
  if (action == null) {
     return "Null Action";
  }
  GetPluginInformationRequestMsg req = new GetPluginInformationRequestMsg();
  req.setGetPluginInformationRequestWrapper(new GetPluginInformationRequestWrapper());
  req.getGetPluginInformationRequestWrapper().setClassification(c);
  req.getGetPluginInformationRequestWrapper().setPlugin(new Plugin());
  req.getGetPluginInformationRequestWrapper().getPlugin().setClassname(action.getImplementingClassName());
  req.getGetPluginInformationRequestWrapper().getPlugin().setPlugintype("SLA_ACTION");
  GetPluginInformation r = new GetPluginInformation();
  r.setRequest(req);
  try {
     GetPluginInformationResponse pluginInformation = pcs.getPluginInformation(r);
     return Utility.encodeHTML(pluginInformation.getResponse().getDisplayName());
  } catch (Exception ex) {
     LogHelper.getLog().error(ex);
  }
  return "Unrecognized action, " + Utility.encodeHTML(action.getImplementingClassName());
}
org.miloss.fgsms.services.interfaces.policyconfigurationPlugin

Javadoc

Java class for plugin complex type.

The following schema fragment specifies the expected content contained within this class.

 
<complexType name="plugin"> 
<complexContent> 
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 
<sequence> 
<element name="classname" type="{http://www.w3.org/2001/XMLSchema}string"/> 
<element name="displayname" type="{http://www.w3.org/2001/XMLSchema}string"/> 
<element name="plugintype" type="{http://www.w3.org/2001/XMLSchema}string"/> 
<element name="policyTypes" type="{urn:org:miloss:fgsms:services:interfaces:common}policyType" maxOccurs="unbounded"/> 
</sequence> 
</restriction> 
</complexContent> 
</complexType> 

Most used methods

  • <init>
  • setClassname
    Sets the value of the classname property.
  • setPlugintype
    Sets the value of the plugintype property.
  • getClassname
    Gets the value of the classname property.
  • getDisplayname
    Gets the value of the displayname property.
  • setDisplayname
    Sets the value of the displayname property.

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • putExtra (Intent)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • JPanel (javax.swing)
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