Tabnine Logo
EntityView.setExtension
Code IndexAdd Tabnine to your IDE (free)

How to use
setExtension
method
in
org.sakaiproject.entitybroker.EntityView

Best Java code snippets using org.sakaiproject.entitybroker.EntityView.setExtension (Showing top 7 results out of 315)

origin: sakaiproject/sakai

setExtension(extension);
origin: sakaiproject/sakai

ev.setExtension(format);
origin: sakaiproject/sakai

/**
 * Reduce code duplication and ensure custom templates are used
 */
public EntityView makeEntityView(EntityReference ref, String viewKey, String extension) {
  if (ref == null) {
    throw new IllegalArgumentException("ref cannot be null");
  }
  EntityView view = new EntityView();
  EntityViewUrlCustomizable custom = (EntityViewUrlCustomizable) entityProviderManager
  .getProviderByPrefixAndCapability(ref.getPrefix(), EntityViewUrlCustomizable.class);
  if (custom != null) {
    // use the custom parsing templates
    view.loadParseTemplates( custom.getParseTemplates() );
  }
  view.setEntityReference(ref);
  if (viewKey != null) {
    view.setViewKey(viewKey);
  }
  if (extension != null) {
    view.setExtension(extension);
  }
  return view;
}
origin: org.sakaiproject.entitybroker/entitybroker-restimpl

ev.setExtension(format);
origin: sakaiproject/sakai

/**
 * Makes a copy of an EntityView which can be changed independently
 * @param ev any EntityView
 * @return the copy
 * @throws IllegalArgumentException if the input is null OR not completely constructed
 */
public static EntityView copy(EntityView ev) {
  if (ev == null) {
    throw new IllegalArgumentException("input entity view must not be null");
  }
  if (ev.viewKey == null || ev.entityReference == null) {
    throw new IllegalArgumentException("input entity view must be completely constructed");         
  }
  EntityView togo = new EntityView();
  EntityReference ref = ev.getEntityReference();
  togo.setEntityReference( new EntityReference(ref.getPrefix(), ref.getId() == null ? "" : ref.getId()) );
  togo.preloadParseTemplates( ev.getAnazlyzedTemplates() );
  togo.setExtension( ev.getExtension() );
  togo.setViewKey( ev.getViewKey() );
  return togo;
}
origin: sakaiproject/sakai

  view.setExtension( RequestUtils.findAndHandleFormat(req, res, Formats.JSON) );
  entityBatchHandler.handleBatch(view, req, res);
} else {
  view.setExtension( format );
origin: org.sakaiproject.entitybroker/entitybroker-restimpl

  view.setExtension( RequestUtils.findAndHandleFormat(req, res, Formats.JSON) );
  entityBatchHandler.handleBatch(view, req, res);
} else {
  view.setExtension( format );
org.sakaiproject.entitybrokerEntityViewsetExtension

Popular methods of EntityView

  • getEntityReference
  • getOriginalEntityUrl
  • setViewKey
  • <init>
  • getEntityURL
  • getViewKey
  • setEntityReference
  • copy
  • getExtension
  • getFormat
  • loadParseTemplates
    Override this method if creating a custom EntityView object
  • parseEntityURL
    Used to build this object after it has already been created (typically so custom templates can be in
  • loadParseTemplates,
  • parseEntityURL,
  • setMethod,
  • toString,
  • checkEntityURL,
  • getAnazlyzedTemplates,
  • getMethod,
  • getParseTemplate,
  • getParseTemplates

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Option (scala)
  • Github Copilot alternatives
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