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

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

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

origin: sakaiproject/sakai

/**
 * Creates the full URL to an entity using the sakai {@link ServerConfigurationService}, 
 * (e.g. http://server:8080/direct/entity/123/)<br/>
 * <br/>
 * <b>Note:</b> the webapp name (relative URL path) of the direct servlet, of "/direct" 
 * is hardcoded into this method, and the
 * {@link org.sakaiproject.entitybroker.util.servlet.DirectServlet} must be deployed there on this
 * server.
 * 
 * @param reference a globally unique reference to an entity, 
 * consists of the entity prefix and optionally the local id
 * @param viewKey the specific view type to get the URL for,
 * can be null to determine the key automatically
 * @param extension the optional extension to add to the end,
 * can be null to use no extension
 * @return the full URL to a specific entity or space
 */
public String getEntityURL(String reference, String viewKey, String extension) {
  // ensure this is a valid reference first
  EntityReference ref = parseReference(reference);
  EntityView view = makeEntityView(ref, viewKey, extension);
  String url = makeFullURL(view.toString());
  return url;
}
origin: sakaiproject/sakai

  ev.setExtension(format);
String URL = ev.toString();
origin: org.sakaiproject.entitybroker/entitybroker-restimpl

  ev.setExtension(format);
String URL = ev.toString();
origin: sakaiproject/sakai

        throw new EntityException("Unable to save entity ("+view.getEntityReference()+") with format ("
            +format+"), translated entity object was null", 
            view.toString(), HttpServletResponse.SC_BAD_REQUEST);
      } else {
  + ") and view ("+view.getViewKey()+") when there is no " 
  + "access provider to handle the request for prefix (" + view.getEntityReference().getPrefix() + ")";
throw new EntityException( message, view.toString(), HttpServletResponse.SC_METHOD_NOT_ALLOWED );
origin: org.sakaiproject.entitybroker/entitybroker-restimpl

        throw new EntityException("Unable to save entity ("+view.getEntityReference()+") with format ("
            +format+"), translated entity object was null", 
            view.toString(), HttpServletResponse.SC_BAD_REQUEST);
      } else {
  + ") and view ("+view.getViewKey()+") when there is no " 
  + "access provider to handle the request for prefix (" + view.getEntityReference().getPrefix() + ")";
throw new EntityException( message, view.toString(), HttpServletResponse.SC_METHOD_NOT_ALLOWED );
org.sakaiproject.entitybrokerEntityViewtoString

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
  • loadParseTemplates
    Override this method if creating a custom EntityView object
  • getFormat,
  • loadParseTemplates,
  • parseEntityURL,
  • setMethod,
  • checkEntityURL,
  • getAnazlyzedTemplates,
  • getMethod,
  • getParseTemplate,
  • getParseTemplates

Popular in Java

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top plugins for Android Studio
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