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

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

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

origin: sakaiproject/sakai

public EntityView() {
  loadParseTemplates(null);
}
origin: sakaiproject/sakai

view.loadParseTemplates( custom.getParseTemplates() );
view.parseEntityURL(entityURL);
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;
}
org.sakaiproject.entitybrokerEntityViewloadParseTemplates

Javadoc

Override this method if creating a custom EntityView object

Popular methods of EntityView

  • getEntityReference
  • getOriginalEntityUrl
  • setViewKey
  • <init>
  • getEntityURL
  • getViewKey
  • setEntityReference
  • setExtension
  • copy
    Makes a copy of an EntityView which can be changed independently
  • getExtension
  • getFormat
  • parseEntityURL
    Used to build this object after it has already been created (typically so custom templates can be in
  • getFormat,
  • parseEntityURL,
  • setMethod,
  • toString,
  • checkEntityURL,
  • getAnazlyzedTemplates,
  • getMethod,
  • getParseTemplate,
  • getParseTemplates

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • CodeWhisperer 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