public class PeopleUiSnippets
extends java.lang.Object
Constructor and Description |
---|
PeopleUiSnippets() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getAddressDisplayValue(ResourcesService resourcesService,
Node node)
creates an address Display value
|
static java.lang.String |
getContactDisplaySnippet(ResourcesService resourcesService,
Node node)
creates the display ReadOnly HTML snippet for various contacts
|
static java.lang.String |
getContactMetaData(Node node)
creates the display ReadOnly HTML snippet for various contact metadata
|
static java.lang.String |
getEntityContact(PeopleService peopleService,
Node entity,
java.lang.String label) |
static java.lang.String |
getEntityPhoneAndMailFormatted(Node entity) |
static java.lang.String |
getLocalisationInfo(ResourcesService resourcesService,
PeopleService peopleService,
Node entity)
creates the localisation snippet
|
static java.lang.String |
getLongName(Node node)
Creates a snippet with all information we have about the name of a given
person
|
static java.lang.String |
getPrimaryContacts(Node entity)
Returns primary contacts (phone, mail, website) as links if they exist
|
static java.lang.String |
getPrimaryContacts(PeopleService peopleService,
Node entity)
Simply gets a snippet to display clickable primary contacts
|
static java.lang.String |
getWorkAddress(ResourcesService resourcesService,
Node contactNode,
Node referencedEntity)
creates the display ReadOnly HTML snippet for a work address
|
public static java.lang.String getLongName(Node node)
public static java.lang.String getContactDisplaySnippet(ResourcesService resourcesService, Node node)
public static java.lang.String getWorkAddress(ResourcesService resourcesService, Node contactNode, Node referencedEntity)
public static java.lang.String getContactMetaData(Node node)
public static java.lang.String getAddressDisplayValue(ResourcesService resourcesService, Node node)
public static java.lang.String getLocalisationInfo(ResourcesService resourcesService, PeopleService peopleService, Node entity)
public static java.lang.String getPrimaryContacts(Node entity)
public static java.lang.String getEntityContact(PeopleService peopleService, Node entity, java.lang.String label)
entity
- label
- an optional label to be displayed firstpublic static java.lang.String getEntityPhoneAndMailFormatted(Node entity)
public static java.lang.String getPrimaryContacts(PeopleService peopleService, Node entity)
entity
- Copyright © 2007–2020. All rights reserved.