Class PersistentLinkableView<T extends PersistentObject>
java.lang.Object
com.emc.documentum.rest.view.LegacyLinkableView
com.emc.documentum.rest.view.LinkableView<T>
com.emc.documentum.rest.view.EntryableView<T>
com.emc.documentum.rest.view.impl.PersistentLinkableView<T>
- Type Parameters:
- T- the model class extends from- PersistentObject
@DataViewBinding(modelType=PersistentObject.class)
public abstract class PersistentLinkableView<T extends PersistentObject>
extends EntryableView<T>
Default implementation of persistent data view.
- 
Field SummaryFields inherited from class com.emc.documentum.rest.view.LinkableViewlinkBuilder, otherParams, repositoryName, returnLinks, serializableData, uriInfoFields inherited from class com.emc.documentum.rest.view.LegacyLinkableViewuriFactory, uriFactoryNoValidation
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidThis method does nothing with the persistent object.The returning value of this method is to resolve the value of the atom entry links for the persistent object.protected Stringprotected ResourceUriBuilderidUriBuilder(String resource) protected voidMake default customization and set type definition for the persistent object.protected voidresolveUriTemplateVariables(Map<String, String> variableMapping) This method returns the resolved map of variable mappings for the URI template defined from the YAML file.protected voidSet type definition URI for the persistent object.Methods inherited from class com.emc.documentum.rest.view.EntryableViewcustomizeEntry, entry, entryAuthors, entryContent, entryId, entryPublished, entrySrc, entrySummary, entryTitle, entryUpdated, getAtomAuthor, getAtomId, getDefaultEntryLinksMethods inherited from class com.emc.documentum.rest.view.LinkableViewcanonical, canonicalResourceUri, canonicalResourceUri, clearLinks, currentRequestUri, data, getDataInternal, getOtherParams, getWorkingController, handleCustomYamlLinks, idUri, idUriBuilder, inFeed, makeLink, makeLink, makeLinkIf, makeLinkIf, makeLinkTemplate, makeLinkTemplateIf, nameUri, nameUriBuilder, postFromCollection, removeLink, selfLinks, uriBuilderMethods inherited from class com.emc.documentum.rest.view.LegacyLinkableViewgetUriFactory, getUriFactory, getUriFactoryWithoutValidation
- 
Constructor Details- 
PersistentLinkableViewpublic PersistentLinkableView(T persistentObject, UriInfo uriInfo, String repositoryName, Boolean returnLinks, Map<String, Object> others) The parameterized constructor.- Parameters:
- persistentObject- the persistent object to be serialized
- uriInfo- the URI info of the request. This is typically obtained from the resource controller where the controller method has an annotated parameter for- RequestUri
- repositoryName- the repository name
- returnLinks- indicates whether to return links for this model instance
- others- other parameters
 
 
- 
- 
Method Details- 
resolveUriTemplateVariablesThis method returns the resolved map of variable mappings for the URI template defined from the YAML file.- Specified by:
- resolveUriTemplateVariablesin class- LinkableView<T extends PersistentObject>
- Parameters:
- variableMapping- variable to property name mapping where the key is a URI path variable and the value is the property name
- Returns:
- the mapping of variable to object property value
- See Also:
 
- 
makeDefaultCustomizationprotected void makeDefaultCustomization()Make default customization and set type definition for the persistent object.- Overrides:
- makeDefaultCustomizationin class- LinkableView<T extends PersistentObject>
 
- 
setTypeDefUriprotected void setTypeDefUri()Set type definition URI for the persistent object.
- 
entryLinksThe returning value of this method is to resolve the value of the atom entry links for the persistent object.- Specified by:
- entryLinksin class- EntryableView<T extends PersistentObject>
- Returns:
- the persistent object entry links
 
- 
customizepublic void customize()This method does nothing with the persistent object.- Specified by:
- customizein class- LinkableView<T extends PersistentObject>
 
- 
idUri
- 
idUriBuilder
- 
makeLinkByType
 
-