Package org.nuxeo.ecm.platform.url
Class DocumentViewImpl
- java.lang.Object
-
- org.nuxeo.ecm.platform.url.DocumentViewImpl
-
- All Implemented Interfaces:
Serializable
,DocumentView
public class DocumentViewImpl extends Object implements DocumentView, Serializable
TODO: document me.- Author:
- tiry
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DocumentViewImpl(DocumentLocation docLoc)
DocumentViewImpl(DocumentLocation documentLocation, String viewId)
DocumentViewImpl(DocumentLocation documentLocation, String viewId, String subURI, Map<String,String> parameters)
DocumentViewImpl(DocumentLocation documentLocation, String viewId, Map<String,String> parameters)
DocumentViewImpl(DocumentModel doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameter(String name, String value)
DocumentLocation
getDocumentLocation()
String
getParameter(String name)
Map<String,String>
getParameters()
String
getPatternName()
Returns the url pattern names used to generate this document view.String
getSubURI()
String
getTabId()
String
getViewId()
Returns the outcome to use for this document view.void
removeParameter(String name)
void
setDocumentLocation(DocumentLocation documentLocation)
void
setPatternName(String patternName)
void
setSubURI(String subURI)
void
setViewId(String viewId)
String
toString()
-
-
-
Constructor Detail
-
DocumentViewImpl
public DocumentViewImpl(DocumentLocation documentLocation, String viewId)
-
DocumentViewImpl
public DocumentViewImpl(DocumentLocation documentLocation, String viewId, Map<String,String> parameters)
-
DocumentViewImpl
public DocumentViewImpl(DocumentLocation documentLocation, String viewId, String subURI, Map<String,String> parameters)
-
DocumentViewImpl
public DocumentViewImpl(DocumentModel doc)
-
DocumentViewImpl
public DocumentViewImpl(DocumentLocation docLoc)
-
-
Method Detail
-
getDocumentLocation
public DocumentLocation getDocumentLocation()
- Specified by:
getDocumentLocation
in interfaceDocumentView
-
getTabId
public String getTabId()
-
getViewId
public String getViewId()
Description copied from interface:DocumentView
Returns the outcome to use for this document view.XXX AT: Can be considered to be badly named "view id".
- Specified by:
getViewId
in interfaceDocumentView
-
getSubURI
public String getSubURI()
- Specified by:
getSubURI
in interfaceDocumentView
-
getParameters
public Map<String,String> getParameters()
- Specified by:
getParameters
in interfaceDocumentView
-
getParameter
public String getParameter(String name)
- Specified by:
getParameter
in interfaceDocumentView
-
addParameter
public void addParameter(String name, String value)
- Specified by:
addParameter
in interfaceDocumentView
-
removeParameter
public void removeParameter(String name)
- Specified by:
removeParameter
in interfaceDocumentView
-
setDocumentLocation
public void setDocumentLocation(DocumentLocation documentLocation)
- Specified by:
setDocumentLocation
in interfaceDocumentView
-
setSubURI
public void setSubURI(String subURI)
- Specified by:
setSubURI
in interfaceDocumentView
-
setViewId
public void setViewId(String viewId)
- Specified by:
setViewId
in interfaceDocumentView
-
getPatternName
public String getPatternName()
Description copied from interface:DocumentView
Returns the url pattern names used to generate this document view.- Specified by:
getPatternName
in interfaceDocumentView
-
setPatternName
public void setPatternName(String patternName)
- Specified by:
setPatternName
in interfaceDocumentView
-
-