Class DisplayUserGeneratedContent
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumstatic class
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionDefault constructor (needed for persistence).
- 
Method SummaryModifier and TypeMethodDescriptionstatic DisplayUserGeneratedContentbuildFromSolrDoc(org.apache.solr.common.SolrDocument doc) buildFromSolrDoc.static double[]convertToDoubleArray(int[] coordinates) convertToDoubleArray.static int[]convertToIntArray(double[] coordinates) convertToIntArray.static StringcreateJsonFromFeatures(Object value) static StringgenerateAddressLabel(StructElement se, String text) static Stringstatic Stringstatic StringBuilds label out of user-generated content metadata.de.intranda.api.annotation.ITypedResourceGetter for the fieldareaString.Getter for the fielddateUpdated.getDateUpdatedAsString.Getter for the fielddisplayCoordinates.Returns thelabel, if set, otherwisepi.Alias forgetPage()getId()Getter for the fieldid.getLabel()Getter for the fieldlabel.getPage()Getter for the fieldpage.getPageUrl(PageType pageType) getPi()Getter for the fieldpi.getTimeUpdatedAsString.getType()Getter for the fieldtype.getTypeAsString.Getter for the fieldupdatedBy.booleanhasArea()hasArea.booleanbooleanisEmpty()Check if the resource has either a label or an annotation body with a typebooleanbooleanisOnOtherPage(PhysicalElement page) booleanisOnThisPage(PhysicalElement page) booleanmayHaveArea.voidsetAccessCondition(String accessCondition) voidsetAnnotationBody(de.intranda.api.annotation.ITypedResource annotationBody) booleansetAnnotationBody(String json) voidsetAreaString(String areaString) Setter for the fieldareaString.voidsetCrowdsourcingModuleContent(boolean crowdsourcingModuleContent) voidsetDateUpdated(LocalDateTime dateUpdated) Setter for the fielddateUpdated.voidsetDisplayCoordinates(String displayCoordinates) Setter for the fielddisplayCoordinates.voidsetExtendendLabel(String extendendLabel) voidSetter for the fieldid.voidSetter for the fieldlabel.voidSetter for the fieldpage.voidSetter for the fieldpi.voidSetter for the fieldtype.voidsetUpdatedBy(User updatedBy) Setter for the fieldupdatedBy.
- 
Field Details- 
FORMATConstantformat
 
- 
- 
Constructor Details- 
DisplayUserGeneratedContentpublic DisplayUserGeneratedContent()Default constructor (needed for persistence).
- 
DisplayUserGeneratedContent
 
- 
- 
Method Details- 
getIdGetter for the field id.- Returns:
- a Longobject.
 
- 
setIdSetter for the field id.- Parameters:
- id- a- Longobject.
 
- 
getTypeGetter for the field type.- Returns:
- the type
 
- 
setTypeSetter for the field type.- Parameters:
- type- the type to set
 
- 
getPiGetter for the field pi.- Returns:
- the pi
 
- 
setPiSetter for the field pi.- Parameters:
- pi- the pi to set
 
- 
getPageGetter for the field page.- Returns:
- the page
 
- 
setPageSetter for the field page.- Parameters:
- page- the page to set
 
- 
getLabelGetter for the field label.- Returns:
- the label
 
- 
setLabelSetter for the field label.- Parameters:
- label- the label to set
 
- 
getDisplayLabelReturns thelabel, if set, otherwisepi.- Returns:
- a Stringobject.
 
- 
getExtendendLabel- Returns:
- the extendendLabel
 
- 
setExtendendLabel- Parameters:
- extendendLabel- the extendendLabel to set
 
- 
getUpdatedByGetter for the field updatedBy.- Returns:
- the updatedBy
 
- 
setUpdatedBySetter for the field updatedBy.- Parameters:
- updatedBy- the updatedBy to set
 
- 
getDateUpdatedGetter for the field dateUpdated.- Returns:
- the dateUpdated
 
- 
getDateUpdatedAsStringgetDateUpdatedAsString. - Returns:
- a Stringobject.
 
- 
getTimeUpdatedAsStringgetTimeUpdatedAsString. - Returns:
- a Stringobject.
 
- 
setDateUpdatedSetter for the field dateUpdated.- Parameters:
- dateUpdated- the dateUpdated to set
 
- 
getAccessCondition- Returns:
- the accessCondition
 
- 
setAccessCondition- Parameters:
- accessCondition- the accessCondition to set
 
- 
getAreaStringGetter for the field areaString.- Returns:
- the areaString
 
- 
setAreaStringSetter for the field areaString.- Parameters:
- areaString- the areaString to set
 
- 
hasAreapublic boolean hasArea()hasArea. - Returns:
- a boolean.
 
- 
mayHaveAreapublic boolean mayHaveArea()mayHaveArea. - Returns:
- a boolean.
 
- 
convertToIntArraypublic static int[] convertToIntArray(double[] coordinates) convertToIntArray. - Parameters:
- coordinates- int[]
- Returns:
- int[]
 
- 
convertToDoubleArraypublic static double[] convertToDoubleArray(int[] coordinates) convertToDoubleArray. - Parameters:
- coordinates- int[]
- Returns:
- double[]
 
- 
getDisplayCoordinatesGetter for the field displayCoordinates.- Returns:
- a Stringobject.
 
- 
setDisplayCoordinatesSetter for the field displayCoordinates.- Parameters:
- displayCoordinates- a- Stringobject.
 
- 
getDisplayPageAlias forgetPage()- Returns:
- a Integerobject.
 
- 
isEmptypublic boolean isEmpty()Check if the resource has either a label or an annotation body with a type- Returns:
- true if neither label nor annotation body exist
 
- 
getTypeAsStringgetTypeAsString. - Returns:
- a Stringobject.
 
- 
getAnnotationBodypublic de.intranda.api.annotation.ITypedResource getAnnotationBody()- Returns:
- the annotationBody
 
- 
setAnnotationBodypublic void setAnnotationBody(de.intranda.api.annotation.ITypedResource annotationBody) - Parameters:
- annotationBody- the annotationBody to set
 
- 
setAnnotationBody
- 
createJsonFromFeatures
- 
buildFromSolrDocpublic static DisplayUserGeneratedContent buildFromSolrDoc(org.apache.solr.common.SolrDocument doc) throws IndexUnreachableException buildFromSolrDoc. - Parameters:
- doc- a- SolrDocumentobject.
- Returns:
- UserGeneratedContent generated from the given Solr document
- Throws:
- IndexUnreachableException- if any.
 
- 
generateUgcLabelBuilds label out of user-generated content metadata.- Parameters:
- se- a- StructElementobject.
- Returns:
- the generated label
 
- 
generateAddressLabel- Parameters:
- se-
- text-
- Returns:
- String
 
- 
generateCorporationLabel- Parameters:
- se-
- Returns:
- String
 
- 
generatePersonLabel
- 
isOnThisPage
- 
isOnOtherPage
- 
isOnAnyPagepublic boolean isOnAnyPage()
- 
getIconClass
- 
getPageUrl
- 
getPageUrl- Parameters:
- pageType-
- Returns:
- Generated URL
 
- 
isCrowdsourcingModuleContentpublic boolean isCrowdsourcingModuleContent()
- 
setCrowdsourcingModuleContentpublic void setCrowdsourcingModuleContent(boolean crowdsourcingModuleContent) 
 
-