Interface ContentViewerRowModel
-
- All Superinterfaces:
ContentQueryRow
public interface ContentViewerRowModel extends ContentQueryRow
The ContentViewerRowModel class represents a single row returned from the content viewer. The class contains some specific accessors for information that is always present (such as document id), as well as general accessors for the items that are defined in the content viewer presentation style definition.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.iknowbase.api.contentservices.query.content.model.ContentQueryRow
ContentQueryRow.STORAGE_TYPE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Optional<ContentQueryAction>
getChangeDoctypeAction(String quickLinkGuid)
Deprecated.Optional<ContentQueryAction>
getContentLink()
Returns an Optional action for retrieving the document content.int
getDataLevel()
Deprecated.int
getDocumentId()
Returns the document id of the underlying document.int
getDocumentLevel()
Returns the traversal level of the row.Optional<ContentQueryAction>
getDocumentLink()
Returns an Optional action for viewing the document "in context".DocumentModel
getDocumentModel()
EditActionBuilder
getEditActionBuilder()
Returns a builder for generating edit document link based on build parameters.Map<String,ContentViewerStyleItemModel>
getStyleItems()
Deprecated.Optional<ContentQueryAction>
getTargetLink(String externalKey)
-
Methods inherited from interface com.iknowbase.api.contentservices.query.content.model.ContentQueryRow
getAction, getAction, getAction, getAction, getAction, getAction, getActions, getActions, getActions, getActions, getActions, getActions, getAttribute, getAttributes, getContentLinkBuilder, getDeleteAction, getDocument, getEditAction, getEditWebdavAction, getItem, getItem, getItem, getItem, getItem, getItem, getItem, getItem, getItem, getItem, getItems, getNextLevelRowSet, getStorageType, getTransformationClient, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, getValues, getValues, getValues, getValues, getValues, getValues, getValues, getValues, getValues, getValues, setAttribute, toBean, toBean, toBean
-
-
-
-
Method Detail
-
getDocumentModel
DocumentModel getDocumentModel()
-
getDocumentLevel
int getDocumentLevel()
Description copied from interface:ContentQueryRow
Returns the traversal level of the row. If the query has no traversal specified, always returns 1.- Specified by:
getDocumentLevel
in interfaceContentQueryRow
- Returns:
- traversal level of the document
-
getDocumentId
int getDocumentId()
Description copied from interface:ContentQueryRow
Returns the document id of the underlying document.- Specified by:
getDocumentId
in interfaceContentQueryRow
- Returns:
- the document id of the underlying document
-
getStyleItems
@Deprecated Map<String,ContentViewerStyleItemModel> getStyleItems()
Deprecated.
-
getDataLevel
@Deprecated int getDataLevel()
Deprecated.
-
getEditActionBuilder
EditActionBuilder getEditActionBuilder()
Description copied from interface:ContentQueryRow
Returns a builder for generating edit document link based on build parameters. The builder is an customizable alternative to using the editAction directly- Specified by:
getEditActionBuilder
in interfaceContentQueryRow
- Returns:
- a builder for edit action
-
getChangeDoctypeAction
@Deprecated Optional<ContentQueryAction> getChangeDoctypeAction(String quickLinkGuid)
Deprecated.
-
getDocumentLink
Optional<ContentQueryAction> getDocumentLink()
Description copied from interface:ContentQueryRow
Returns an Optional action for viewing the document "in context". The returned action is an indirect action, pointing at a URL which will redirect to the actual editing URL. The action does therefore not support target-specific window options and the like.- Specified by:
getDocumentLink
in interfaceContentQueryRow
- Returns:
- an Optional action for viewing the document
-
getContentLink
Optional<ContentQueryAction> getContentLink()
Description copied from interface:ContentQueryRow
Returns an Optional action for retrieving the document content.- Specified by:
getContentLink
in interfaceContentQueryRow
- Returns:
- an Optional action for retrieving the document content.
-
getTargetLink
Optional<ContentQueryAction> getTargetLink(String externalKey)
-
-