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

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

Best Java code snippets using org.sakaiproject.entitybroker.EntityView.setViewKey (Showing top 10 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

setViewKey(viewKey);
if (VIEW_DELETE.equals(viewKey)) {
  setMethod(Method.DELETE);
origin: sakaiproject/sakai

    viewKey = VIEW_SHOW;
  setViewKey(viewKey);
} else {
origin: sakaiproject/sakai

setViewKey(viewKey);
setExtension(extension);
origin: sakaiproject/sakai

  view.setViewKey(EntityView.VIEW_DELETE);
  view.setMethod(EntityView.Method.DELETE);
} else if (EntityView.Method.PUT.name().equals(method)) {
  view.setViewKey(EntityView.VIEW_EDIT);
  view.setMethod(EntityView.Method.PUT);
} else if (EntityView.Method.POST.name().equals(method)) {
    if (view.getEntityReference().getId() == null) {
      view.setViewKey(EntityView.VIEW_NEW);
    } else {
      view.setViewKey(EntityView.VIEW_EDIT);
      view.setViewKey(EntityView.VIEW_DELETE);
    } else if (EntityView.Method.PUT.name().equals(_method)) {
      if (view.getEntityReference().getId() == null) {
        view.setViewKey(EntityView.VIEW_NEW);
      } else {
        view.setViewKey(EntityView.VIEW_EDIT);
origin: sakaiproject/sakai

if (viewKey != null 
    && ! "".equals(viewKey)) {
  ev.setViewKey(viewKey);
origin: org.sakaiproject.entitybroker/entitybroker-restimpl

if (viewKey != null 
    && ! "".equals(viewKey)) {
  ev.setViewKey(viewKey);
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: 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

if (actionReturn.entitiesList.size() > 1) {
  view.setViewKey(EntityView.VIEW_LIST);
view.setViewKey(EntityView.VIEW_SHOW);
entityBrokerManager.populateEntityData( new EntityData[] {actionReturn.entityData} );
          ref = new EntityReference(ed.getEntityRef().getPrefix(), "");
          view.setEntityReference( ref );
          view.setViewKey(EntityView.VIEW_LIST);
        view.setViewKey(EntityView.VIEW_SHOW);
origin: org.sakaiproject.entitybroker/entitybroker-restimpl

if (actionReturn.entitiesList.size() > 1) {
  view.setViewKey(EntityView.VIEW_LIST);
view.setViewKey(EntityView.VIEW_SHOW);
entityBrokerManager.populateEntityData( new EntityData[] {actionReturn.entityData} );
          ref = new EntityReference(ed.getEntityRef().getPrefix(), "");
          view.setEntityReference( ref );
          view.setViewKey(EntityView.VIEW_LIST);
        view.setViewKey(EntityView.VIEW_SHOW);
org.sakaiproject.entitybrokerEntityViewsetViewKey

Popular methods of EntityView

  • getEntityReference
  • getOriginalEntityUrl
  • <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
  • 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

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • runOnUiThread (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • JList (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
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