info.magnolia.ui.contentapp.detail
Class DetailLocation

java.lang.Object
  extended by info.magnolia.ui.api.location.DefaultLocation
      extended by info.magnolia.ui.contentapp.detail.DetailLocation
All Implemented Interfaces:
Location

public class DetailLocation
extends DefaultLocation

ItemLocation used in implementers of DetailSubApp. Extends the Default Location by adding fields for :

appType:appName:subAppId;some/node/path:viewType:version


Field Summary
 
Fields inherited from interface info.magnolia.ui.api.location.Location
LOCATION_TYPE_APP, LOCATION_TYPE_SHELL_APP, NOWHERE
 
Constructor Summary
DetailLocation(String appName, String subAppId, DetailView.ViewType viewType, String nodePath, String version)
           
DetailLocation(String appName, String subAppId, String parameter)
           
 
Method Summary
 String getNodePath()
           
 String getVersion()
           
 DetailView.ViewType getViewType()
           
 boolean hasVersion()
           
 void setVersion(String version)
           
 void setViewType(DetailView.ViewType viewType)
           
 void updateNodePath(String newNodePath)
           
protected  void updateParameter()
           
 void updateVersion(String newVersion)
           
 void updateViewtype(DetailView.ViewType newViewType)
           
static DetailLocation wrap(Location location)
           
 
Methods inherited from class info.magnolia.ui.api.location.DefaultLocation
decodeFragment, decodeFragment, equals, extractAppName, extractAppType, extractParameter, extractSubAppId, getAppName, getAppType, getParameter, getSubAppId, hashCode, setAppName, setAppType, setParameter, setSubAppId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DetailLocation

public DetailLocation(String appName,
                      String subAppId,
                      String parameter)

DetailLocation

public DetailLocation(String appName,
                      String subAppId,
                      DetailView.ViewType viewType,
                      String nodePath,
                      String version)
Method Detail

getNodePath

public String getNodePath()

getViewType

public DetailView.ViewType getViewType()

setViewType

public void setViewType(DetailView.ViewType viewType)

getVersion

public String getVersion()

setVersion

public void setVersion(String version)

hasVersion

public boolean hasVersion()

updateParameter

protected void updateParameter()

wrap

public static DetailLocation wrap(Location location)

updateNodePath

public void updateNodePath(String newNodePath)

updateViewtype

public void updateViewtype(DetailView.ViewType newViewType)

updateVersion

public void updateVersion(String newVersion)


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.