Codota Logo
EntityView.getEntityURL
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: sakaiproject/sakai

/**
 * @return the entity URL of the internal reference based on the
 * internal viewKey and extension, defaults to {@link TemplateParseUtil#TEMPLATE_SHOW} or 
 * the {@link TemplateParseUtil#TEMPLATE_LIST} one if there is no id,
 * example: /prefix if there is no id or /prefix/id if there is an id
 * @throws IllegalArgumentException if there is not enough information to generate a URL
 */
@Override
public String toString() {
  return getEntityURL();
}
origin: sakaiproject/sakai

/**
 * @return the entity URL of the internal reference based on the
 * internal viewKey and extension, defaults to {@link TemplateParseUtil#TEMPLATE_SHOW} or 
 * the {@link TemplateParseUtil#TEMPLATE_LIST} one if there is no id,
 * example: /prefix if there is no id or /prefix/id if there is an id
 * @throws IllegalArgumentException if there is not enough information to generate a URL
 */
public String getEntityURL() {
  String URL = getEntityURL(this.viewKey, this.extension);
  return URL;
}
origin: org.sakaiproject.entitybroker/entitybroker-restimpl

/**
 * @return the form view URLs which should be used with the forms
 */
protected String makeFormViewUrl(String contextUrl, String viewKey, EntityView view) {
  if (viewKey == null || "".equals(viewKey)) {
    viewKey = EntityView.VIEW_SHOW;
  }
  return contextUrl + BATCH_PREFIX + contextUrl + view.getEntityURL(viewKey, null);
}
origin: sakaiproject/sakai

/**
 * @return the form view URLs which should be used with the forms
 */
protected String makeFormViewUrl(String contextUrl, String viewKey, EntityView view) {
  if (viewKey == null || "".equals(viewKey)) {
    viewKey = EntityView.VIEW_SHOW;
  }
  return contextUrl + BATCH_PREFIX + contextUrl + view.getEntityURL(viewKey, null);
}
origin: org.sakaiproject.entitybroker/entitybroker-restimpl

/**
 * @param ev entity view
 * @param viewType the type of view
 * @return a URL for triggering the entity action (without http://server/direct)
 */
protected String makeEntityURL(EntityView ev, String viewType) {
  if (viewType == null) {
    viewType = EntityView.VIEW_LIST;
  }
  if (! EntityView.VIEW_LIST.equals(viewType) && ! EntityView.VIEW_NEW.equals(viewType)) {
    viewType = EntityView.VIEW_SHOW;
  } else {
    viewType = EntityView.VIEW_LIST;
  }
  return ev.getEntityURL(viewType, null);
}
origin: sakaiproject/sakai

/**
 * @param ev entity view
 * @param viewType the type of view
 * @return a URL for triggering the entity action (without http://server/direct)
 */
protected String makeEntityURL(EntityView ev, String viewType) {
  if (viewType == null) {
    viewType = EntityView.VIEW_LIST;
  }
  if (! EntityView.VIEW_LIST.equals(viewType) && ! EntityView.VIEW_NEW.equals(viewType)) {
    viewType = EntityView.VIEW_SHOW;
  } else {
    viewType = EntityView.VIEW_LIST;
  }
  return ev.getEntityURL(viewType, null);
}
origin: sakaiproject/sakai

/**
 * @param ev the entity view
 * @param customAction the custom action
 * @return a URL for triggering the custom action (without http://server/direct)
 */
protected String makeActionURL(EntityView ev, CustomAction customAction) {
  // switched to this since it is more correct
  String URL = EntityView.SEPARATOR + ev.getEntityReference().getPrefix() + EntityView.SEPARATOR + customAction.action;
  String viewKey = customAction.viewKey;
  if (viewKey != null 
      && (EntityView.VIEW_SHOW.equals(viewKey) || EntityView.VIEW_EDIT.equals(viewKey) || EntityView.VIEW_DELETE.equals(viewKey))) {
    URL = ev.getEntityURL(EntityView.VIEW_SHOW, null) + EntityView.SEPARATOR + customAction.action;
  }
  return URL;
}
origin: org.sakaiproject.entitybroker/entitybroker-restimpl

/**
 * @param ev the entity view
 * @param customAction the custom action
 * @return a URL for triggering the custom action (without http://server/direct)
 */
protected String makeActionURL(EntityView ev, CustomAction customAction) {
  // switched to this since it is more correct
  String URL = EntityView.SEPARATOR + ev.getEntityReference().getPrefix() + EntityView.SEPARATOR + customAction.action;
  String viewKey = customAction.viewKey;
  if (viewKey != null 
      && (EntityView.VIEW_SHOW.equals(viewKey) || EntityView.VIEW_EDIT.equals(viewKey) || EntityView.VIEW_DELETE.equals(viewKey))) {
    URL = ev.getEntityURL(EntityView.VIEW_SHOW, null) + EntityView.SEPARATOR + customAction.action;
  }
  return URL;
}
origin: sakaiproject/sakai

/**
 * Get all the path segments for the encoded URL for this view<br/>
 * Example: /user/aaronz/promote/stuff.xml <br/>
 * segments = {"user","aaronz","promote","stuff"}
 * @return an array of path segments
 */
public String[] getPathSegments() {
  String url = getOriginalEntityUrl();
  if (url == null) {
    url = getEntityURL();
  }
  String[] segments = new String[0];
  if (url != null) {
    url = TemplateParseUtil.findExtension(url)[1];
    if (url.charAt(0) == SEPARATOR) {
      url = url.substring(1);
    }
    segments = url.split(SEPARATOR+"");
  }
  return segments;
}
origin: sakaiproject/sakai

res.setHeader("x-entity-prefix", prefix);
res.setHeader("x-entity-reference", view.getEntityReference().toString());
res.setHeader("x-entity-url", view.getEntityURL());
res.setHeader("x-entity-format", view.getFormat());
origin: org.sakaiproject.entitybroker/entitybroker-restimpl

res.setHeader("x-entity-prefix", prefix);
res.setHeader("x-entity-reference", view.getEntityReference().toString());
res.setHeader("x-entity-url", view.getEntityURL());
res.setHeader("x-entity-format", view.getFormat());
origin: sakaiproject/sakai

sb.append("      <collectionURL>" + ev.getEntityURL(EntityView.VIEW_LIST, null) + "</collectionURL>\n");
String viewDesc = getEntityDescription(prefix, VIEW_KEY_PREFIX + EntityView.VIEW_LIST, locale);
if (viewDesc != null) {
sb.append("      <createURL>" + ev.getEntityURL(EntityView.VIEW_NEW, null) + "</createURL>\n");
String viewDesc = getEntityDescription(prefix, VIEW_KEY_PREFIX + EntityView.VIEW_NEW, locale);
if (viewDesc != null) {
sb.append("      <showURL>" + ev.getEntityURL(EntityView.VIEW_SHOW, null) + "</showURL>\n");
String viewDesc = getEntityDescription(prefix, VIEW_KEY_PREFIX + EntityView.VIEW_SHOW, locale);
if (viewDesc != null) {
sb.append("      <updateURL>" + ev.getEntityURL(EntityView.VIEW_EDIT, null) + "</updateURL>\n");
String viewDesc = getEntityDescription(prefix, VIEW_KEY_PREFIX + EntityView.VIEW_EDIT, locale);
if (viewDesc != null) {
sb.append("      <deleteURL>" + ev.getEntityURL(EntityView.VIEW_DELETE, null) + "</deleteURL>\n");
String viewDesc = getEntityDescription(prefix, VIEW_KEY_PREFIX + EntityView.VIEW_DELETE, locale);
if (viewDesc != null) {
origin: org.sakaiproject.entitybroker/entitybroker-restimpl

sb.append("      <collectionURL>" + ev.getEntityURL(EntityView.VIEW_LIST, null) + "</collectionURL>\n");
String viewDesc = getEntityDescription(prefix, VIEW_KEY_PREFIX + EntityView.VIEW_LIST, locale);
if (viewDesc != null) {
sb.append("      <createURL>" + ev.getEntityURL(EntityView.VIEW_NEW, null) + "</createURL>\n");
String viewDesc = getEntityDescription(prefix, VIEW_KEY_PREFIX + EntityView.VIEW_NEW, locale);
if (viewDesc != null) {
sb.append("      <showURL>" + ev.getEntityURL(EntityView.VIEW_SHOW, null) + "</showURL>\n");
String viewDesc = getEntityDescription(prefix, VIEW_KEY_PREFIX + EntityView.VIEW_SHOW, locale);
if (viewDesc != null) {
sb.append("      <updateURL>" + ev.getEntityURL(EntityView.VIEW_EDIT, null) + "</updateURL>\n");
String viewDesc = getEntityDescription(prefix, VIEW_KEY_PREFIX + EntityView.VIEW_EDIT, locale);
if (viewDesc != null) {
sb.append("      <deleteURL>" + ev.getEntityURL(EntityView.VIEW_DELETE, null) + "</deleteURL>\n");
String viewDesc = getEntityDescription(prefix, VIEW_KEY_PREFIX + EntityView.VIEW_DELETE, locale);
if (viewDesc != null) {
origin: org.sakaiproject.entitybroker/entitybroker-restimpl

  && ! EntityView.VIEW_NEW.equals(viewKey)) {
sb.append(" (<a href='" + prefixUrl + view.getEntityURL(EntityView.VIEW_NEW, Formats.FORM) + "'>NEW</a>) ");
origin: sakaiproject/sakai

  && ! EntityView.VIEW_NEW.equals(viewKey)) {
sb.append(" (<a href='" + prefixUrl + view.getEntityURL(EntityView.VIEW_NEW, Formats.FORM) + "'>NEW</a>) ");
origin: sakaiproject/sakai

String partialURL = view.getEntityURL();
String fullURL = makeFullURL( partialURL );
entityData.setEntityURL( fullURL );
origin: sakaiproject/sakai

res.setHeader(EntityRequestHandler.HEADER_ENTITY_URL, view.getEntityURL() );
res.setHeader(EntityRequestHandler.HEADER_ENTITY_REFERENCE, view.getEntityReference().toString() );
handled = true;
origin: org.sakaiproject.entitybroker/entitybroker-restimpl

res.setHeader(EntityRequestHandler.HEADER_ENTITY_URL, view.getEntityURL() );
res.setHeader(EntityRequestHandler.HEADER_ENTITY_REFERENCE, view.getEntityReference().toString() );
handled = true;
org.sakaiproject.entitybrokerEntityViewgetEntityURL

Popular methods of EntityView

  • getEntityReference
  • getOriginalEntityUrl
  • setViewKey
  • <init>
  • 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
  • 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
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • findViewById (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
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