Package com.tridion.dcp
Interface ComponentPresentation
- All Known Subinterfaces:
ASCXComponentPresentation,ASPComponentPresentation,JSPComponentPresentation,ScriptedComponentPresentation,XMLComponentPresentation
public interface ComponentPresentation
ComponentPresentation.
-
Method Summary
Modifier and TypeMethodDescriptionintGets this component presentation's component ID.intGets this component presentation's template ID.Gets the content of this component presentation.getContent(boolean track) Gets the content of this component presentation.Gets this component presentation's file location or null if no file-system based.getMeta()Gets the component presentation meta object for this component presentation.intGets this component presentation's namespace ID.intGets this component presentation's publication ID.booleanReturns if this ComponentPresentation contains dynamic code.
-
Method Details
-
getContent
Gets the content of this component presentation.Note: For JSPComponentPresentation objects, this method may not work correctly. Instead, read the file directly using the correct encoding, using
getFileLocationof the interfaceJSPComponentPresentation.- Parameters:
track- Current not used.- Returns:
- The content.
- See Also:
-
getContent
String getContent()Gets the content of this component presentation.Note: For JSPComponentPresentation objects, this method may not work correctly. Instead, read the file directly using the correct encoding, using
getFileLocationof the interfaceJSPComponentPresentation.- Returns:
- The content.
- See Also:
-
getMeta
ComponentPresentationMeta getMeta()Gets the component presentation meta object for this component presentation.- Returns:
- The corresponding component presentation meta object.
-
getNamespaceId
int getNamespaceId()Gets this component presentation's namespace ID.- Returns:
- The namespace ID.
-
getPublicationId
int getPublicationId()Gets this component presentation's publication ID.- Returns:
- The publication ID.
-
getComponentId
int getComponentId()Gets this component presentation's component ID.- Returns:
- The component ID.
-
getComponentTemplateId
int getComponentTemplateId()Gets this component presentation's template ID.- Returns:
- The template ID.
-
getFileLocation
String getFileLocation()Gets this component presentation's file location or null if no file-system based.- Returns:
- The file location.
-
isDynamic
boolean isDynamic()Returns if this ComponentPresentation contains dynamic code.- Returns:
- True if it contains dynamic code, False if not
-