public class Link extends Object implements fr.paris.lutece.portal.business.XmlContent, fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource
TAG_CHILD_PAGES_LIST, TAG_CURRENT_PAGE_ID, TAG_DISPLAY_ON_LARGE_DEVICE, TAG_DISPLAY_ON_NORMAL_DEVICE, TAG_DISPLAY_ON_SMALL_DEVICE, TAG_DISPLAY_ON_XLARGE_DEVICE, TAG_DISPLAY_PORTLET_TITLE, TAG_MENU, TAG_MENU_INDEX, TAG_MENU_LIST, TAG_MODE, TAG_PAGE, TAG_PAGE_DESCRIPTION, TAG_PAGE_ID, TAG_PAGE_IMAGE, TAG_PAGE_LEVEL, TAG_PAGE_NAME, TAG_PARENT_PAGE_ID, TAG_PLUGIN_NAME, TAG_PORTLET, TAG_PORTLET_ID, TAG_PORTLET_NAME, TAG_SUBLEVEL_INDEX, TAG_SUBLEVEL_MENU, TAG_SUBLEVEL_MENU_LIST| Constructor and Description |
|---|
Link()
Creates a new Link object.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getDate()
Returns the date of this link
|
String |
getDescription()
Returns the description of this link
|
int |
getId()
Returns the Id of this link
|
byte[] |
getImageContent()
Returns the ImageContent
|
String |
getImagePath()
Get the path of the image
|
String |
getMimeType()
Returns the MimeType
|
String |
getName()
Returns the name of this link
|
String |
getOptionalUrl(String strHostKey)
get optional url associated with strHostKey if any
|
fr.paris.lutece.util.ReferenceList |
getOptionalUrls()
get ReferenceList of optional urls
|
String |
getUrl()
Returns the url of this link
|
String |
getUrl(String strHostKey)
Returns the url of this link according to the virtual host key
|
String |
getWorkgroup()
for methods AdminWorkgroupService.getAuthorizedCollection(Collection extends AdminWorkgroupResource> arg0, AdminUser arg1)
Returns the Workgroup
|
String |
getWorkgroupKey()
Returns the WorkgroupKey
|
String |
getXml(javax.servlet.http.HttpServletRequest request)
Returns the xml of this link
|
String |
getXmlDocument(javax.servlet.http.HttpServletRequest request)
Returns the xml document of this link
|
static void |
init()
Initialize the link
|
void |
setDate(Date date)
Sets the date of this link
|
void |
setDescription(String strDescription)
Sets the description of this link
|
void |
setId(int nId)
Sets the Id of this link
|
void |
setImageContent(byte[] content)
Sets the ImageContent
|
void |
setMimeType(String mimeType)
Sets the MimeType
|
void |
setName(String strName)
Sets the name of this link
|
void |
setOptionalUrls(fr.paris.lutece.util.ReferenceList listUrls)
set optional urls from a referenceList
|
void |
setUrl(String strUrl)
Sets the url of this link
|
void |
setWorkgroupKey(String strWorkgroupKey)
Sets the WorkgroupKey
|
public static void init()
public void setId(int nId)
nId - the new Idpublic int getId()
public void setUrl(String strUrl)
strUrl - the new urlpublic String getUrl()
public void setName(String strName)
strName - the new namepublic String getName()
public void setDescription(String strDescription)
strDescription - the new namepublic String getDescription()
public void setDate(Date date)
date - The new datepublic Date getDate()
public String getXml(javax.servlet.http.HttpServletRequest request)
getXml in interface fr.paris.lutece.portal.business.XmlContentrequest - The HTTP Servlet requestpublic String getImagePath()
public String getOptionalUrl(String strHostKey)
strHostKey - the key of the url hostpublic String getUrl(String strHostKey)
strHostKey - virtual host key or null for the default urlpublic String getXmlDocument(javax.servlet.http.HttpServletRequest request)
getXmlDocument in interface fr.paris.lutece.portal.business.XmlContentrequest - The HTTP servlet requestpublic void setOptionalUrls(fr.paris.lutece.util.ReferenceList listUrls)
listUrls - list of (hostKey, url)public fr.paris.lutece.util.ReferenceList getOptionalUrls()
public byte[] getImageContent()
public void setImageContent(byte[] content)
content - The ImageContentpublic String getMimeType()
public void setMimeType(String mimeType)
mimeType - The MimeTypepublic String getWorkgroup()
getWorkgroup in interface fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResourcepublic String getWorkgroupKey()
public void setWorkgroupKey(String strWorkgroupKey)
strWorkgroupKey - The WorkgroupKeyCopyright © 2021 City of Paris. All rights reserved.