Tabnine Logo
Plugin.setClassname
Code IndexAdd Tabnine to your IDE (free)

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

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

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.getGetPluginInformationRequestWrapper().setPlugin(new Plugin());
req.getGetPluginInformationRequestWrapper().getPlugin().setClassname(clazz);
req.getGetPluginInformationRequestWrapper().getPlugin().setPlugintype(type);
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.policyconfigurationPluginsetClassname

Javadoc

Sets the value of the classname property.

Popular methods of Plugin

  • <init>
  • 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

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSystemService (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now