fr.paris.lutece.plugins.links.business
Class Link

java.lang.Object
  extended by fr.paris.lutece.plugins.links.business.Link
All Implemented Interfaces:
fr.paris.lutece.portal.business.XmlContent, fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource

public class Link
extends java.lang.Object
implements fr.paris.lutece.portal.business.XmlContent, fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource

This class represents business object Link


Field Summary
 
Fields inherited from interface fr.paris.lutece.portal.business.XmlContent
TAG_CHILD_PAGES_LIST, TAG_CURRENT_PAGE_ID, 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 Summary
Link()
          Creates a new Link object.
 
Method Summary
 java.sql.Date getDate()
          Returns the date of this link
 java.lang.String getDescription()
          Returns the description of this link
 int getId()
          Returns the Id of this link
 byte[] getImageContent()
          Returns the ImageContent
 java.lang.String getImagePath()
          Get the path of the image
 java.lang.String getMimeType()
          Returns the MimeType
 java.lang.String getName()
          Returns the name of this link
 java.lang.String getOptionalUrl(java.lang.String strHostKey)
          get optional url associated with strHostKey if any
 fr.paris.lutece.util.ReferenceList getOptionalUrls()
          get ReferenceList of optional urls
 java.lang.String getUrl()
          Returns the url of this link
 java.lang.String getUrl(java.lang.String strHostKey)
          Returns the url of this link according to the virtual host key
 java.lang.String getWorkgroup()
          for methods AdminWorkgroupService.getAuthorizedCollection(Collection
 java.lang.String getWorkgroupKey()
          Returns the WorkgroupKey
 java.lang.String getXml(javax.servlet.http.HttpServletRequest request)
          Returns the xml of this link
 java.lang.String getXmlDocument(javax.servlet.http.HttpServletRequest request)
          Returns the xml document of this link
static void init()
          Initialize the link
 void setDate(java.sql.Date date)
          Sets the date of this link
 void setDescription(java.lang.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(java.lang.String mimeType)
          Sets the MimeType
 void setName(java.lang.String strName)
          Sets the name of this link
 void setOptionalUrls(fr.paris.lutece.util.ReferenceList listUrls)
          set optional urls from a referenceList
 void setUrl(java.lang.String strUrl)
          Sets the url of this link
 void setWorkgroupKey(java.lang.String strWorkgroupKey)
          Sets the WorkgroupKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Link

public Link()
Creates a new Link object.

Method Detail

init

public static void init()
Initialize the link


setId

public void setId(int nId)
Sets the Id of this link

Parameters:
nId - the new Id

getId

public int getId()
Returns the Id of this link

Returns:
the link Id

setUrl

public void setUrl(java.lang.String strUrl)
Sets the url of this link

Parameters:
strUrl - the new url

getUrl

public java.lang.String getUrl()
Returns the url of this link

Returns:
the link url

setName

public void setName(java.lang.String strName)
Sets the name of this link

Parameters:
strName - the new name

getName

public java.lang.String getName()
Returns the name of this link

Returns:
the link name

setDescription

public void setDescription(java.lang.String strDescription)
Sets the description of this link

Parameters:
strDescription - the new name

getDescription

public java.lang.String getDescription()
Returns the description of this link

Returns:
the link description

setDate

public void setDate(java.sql.Date date)
Sets the date of this link

Parameters:
date - The new date

getDate

public java.sql.Date getDate()
Returns the date of this link

Returns:
the link date

getXml

public java.lang.String getXml(javax.servlet.http.HttpServletRequest request)
Returns the xml of this link

Specified by:
getXml in interface fr.paris.lutece.portal.business.XmlContent
Parameters:
request - The HTTP Servlet request
Returns:
the link xml

getImagePath

public java.lang.String getImagePath()
Get the path of the image

Returns:
Image path

getOptionalUrl

public java.lang.String getOptionalUrl(java.lang.String strHostKey)
get optional url associated with strHostKey if any

Parameters:
strHostKey - the key of the url host
Returns:
the optional url or null if no url

getUrl

public java.lang.String getUrl(java.lang.String strHostKey)
Returns the url of this link according to the virtual host key

Parameters:
strHostKey - virtual host key or null for the default url
Returns:
the link url or null if the url isn't defined for this virtual host

getXmlDocument

public java.lang.String getXmlDocument(javax.servlet.http.HttpServletRequest request)
Returns the xml document of this link

Specified by:
getXmlDocument in interface fr.paris.lutece.portal.business.XmlContent
Parameters:
request - The HTTP servlet request
Returns:
the link xml document

setOptionalUrls

public void setOptionalUrls(fr.paris.lutece.util.ReferenceList listUrls)
set optional urls from a referenceList

Parameters:
listUrls - list of (hostKey, url)

getOptionalUrls

public fr.paris.lutece.util.ReferenceList getOptionalUrls()
get ReferenceList of optional urls

Returns:
list of (hostKey, url)

getImageContent

public byte[] getImageContent()
Returns the ImageContent

Returns:
The ImageContent

setImageContent

public void setImageContent(byte[] content)
Sets the ImageContent

Parameters:
content - The ImageContent

getMimeType

public java.lang.String getMimeType()
Returns the MimeType

Returns:
The MimeType

setMimeType

public void setMimeType(java.lang.String mimeType)
Sets the MimeType

Parameters:
mimeType - The MimeType

getWorkgroup

public java.lang.String getWorkgroup()
for methods AdminWorkgroupService.getAuthorizedCollection(Collection arg0, AdminUser arg1) Returns the Workgroup

Specified by:
getWorkgroup in interface fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource
Returns:
The Workgroup

getWorkgroupKey

public java.lang.String getWorkgroupKey()
Returns the WorkgroupKey

Returns:
The WorkgroupKey

setWorkgroupKey

public void setWorkgroupKey(java.lang.String strWorkgroupKey)
Sets the WorkgroupKey

Parameters:
strWorkgroupKey - The WorkgroupKey


Copyright © 2012 Mairie de Paris. All Rights Reserved.