com.basecmp.taglibs.core
Class LinkedItemListTag

java.lang.Object
  extended byTagSupport
      extended bycom.basecmp.taglibs.core.AbstractTag
          extended bycom.basecmp.taglibs.core.LinkedItemListTag

public class LinkedItemListTag
extends com.basecmp.taglibs.core.AbstractTag

For usage-description see Taglib-Docs. Created on 16.08.2004

See Also:
Serialized Form
Author:
Wolfgang Schröder

Constructor Summary
LinkedItemListTag()
           
 
Method Summary
protected  java.lang.Long clientIdBySession()
          Returns the client-id (CID) from the session-attribute DOMAIN_CLIENT_ID.
protected  java.lang.String determineTagVarName(java.lang.String var)
           
protected  java.lang.String determineTagVarName(java.lang.String var, java.lang.String defaultName)
           
 int doEndTag()
           
protected  java.lang.Long domainIdByHttpHeader()
          Returns the domain-id (CID) using the Http-HOST-Header.
protected  java.lang.Long domainIdBySession()
          Returns the domain-id (CID) from the session-attribute USER_VIEWING_DOMAIN_ID.
protected  java.lang.String domainNameByHttpHeader()
          Returns the domain-name from the current request-header (HOST-header).
protected  java.lang.String domainNameBySession()
          Returns the domain-name from the session-attribute USER_VIEWING_DOMAIN.
 int doStartTag()
           
static java.util.List getAssetListForPage(int currentPageNo, PersistentAsset listDefinition, java.util.List listAssets)
          Extrahiert die Assets einer "Seite" aus einer Assetliste (ArrayList mit PersistentAssets) die Assets der aktuell darzustellenden Seite.
 java.lang.String getBindingtype()
           
static java.lang.String getErrorMsg(java.lang.String header, java.lang.String message)
           
 java.lang.String getPersistentasset()
           
 java.lang.String getReftype()
           
 java.lang.String getSourcecid()
           
protected static java.util.Map getWrappedAsset(java.lang.Object asset, java.lang.String index)
           
protected  PersistentAsset retrievePersistentAsset(java.lang.Object requestedAsset)
           
 void setBindingtype(java.lang.String bindingtype)
           
 void setPersistentasset(java.lang.String persistentasset)
           
 void setReftype(java.lang.String reftype)
           
 void setSourcecid(java.lang.String sourcecid)
           
protected  void write(java.lang.String jspout)
          Helper-Method to simplify writing content into th current page-delivery.
protected  void writeErrorMsg(java.lang.String header, java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkedItemListTag

public LinkedItemListTag()
Method Detail

doEndTag

public int doEndTag()
             throws JspException
Throws:
JspException

doStartTag

public int doStartTag()
               throws JspException
Throws:
JspException

getBindingtype

public java.lang.String getBindingtype()
Returns:
Returns the bindingtype.

getPersistentasset

public java.lang.String getPersistentasset()
Returns:
Returns the persistentasset.

getReftype

public java.lang.String getReftype()
Returns:
Returns the reftype.

getSourcecid

public java.lang.String getSourcecid()
Returns:
Returns the sourcecid.

setBindingtype

public void setBindingtype(java.lang.String bindingtype)
Parameters:
bindingtype - The bindingtype to set.

setPersistentasset

public void setPersistentasset(java.lang.String persistentasset)
Parameters:
persistentasset - The persistentasset to set.

setReftype

public void setReftype(java.lang.String reftype)
Parameters:
reftype - The reftype to set.

setSourcecid

public void setSourcecid(java.lang.String sourcecid)
Parameters:
sourcecid - The sourcecid to set.

clientIdBySession

protected java.lang.Long clientIdBySession()
Returns the client-id (CID) from the session-attribute DOMAIN_CLIENT_ID.

See Also:
SessionConstants#DOMAIN_CLIENT_ID

determineTagVarName

protected java.lang.String determineTagVarName(java.lang.String var)

determineTagVarName

protected java.lang.String determineTagVarName(java.lang.String var,
                                               java.lang.String defaultName)

domainIdByHttpHeader

protected java.lang.Long domainIdByHttpHeader()
Returns the domain-id (CID) using the Http-HOST-Header.


domainIdBySession

protected java.lang.Long domainIdBySession()
Returns the domain-id (CID) from the session-attribute USER_VIEWING_DOMAIN_ID.

See Also:
SessionConstants#USER_VIEWING_DOMAIN_ID

domainNameByHttpHeader

protected java.lang.String domainNameByHttpHeader()
Returns the domain-name from the current request-header (HOST-header). In case the header contains an http-port, the port is striped off.


domainNameBySession

protected java.lang.String domainNameBySession()
Returns the domain-name from the session-attribute USER_VIEWING_DOMAIN.

See Also:
SessionConstants#USER_VIEWING_DOMAIN

getAssetListForPage

public static java.util.List getAssetListForPage(int currentPageNo,
                                                 PersistentAsset listDefinition,
                                                 java.util.List listAssets)
Extrahiert die Assets einer "Seite" aus einer Assetliste (ArrayList mit PersistentAssets) die Assets der aktuell darzustellenden Seite.

Eine leere Liste wird zurückgegeben, wenn...

Parameters:
currentPageNo - aktuelle Seitennummer (Seiten-Zählung beginnt mit 0)
listDefinition - Metadaten-Listasset
listAssets - alle Assets einer Liste

getErrorMsg

public static java.lang.String getErrorMsg(java.lang.String header,
                                           java.lang.String message)

getWrappedAsset

protected static java.util.Map getWrappedAsset(java.lang.Object asset,
                                               java.lang.String index)

retrievePersistentAsset

protected PersistentAsset retrievePersistentAsset(java.lang.Object requestedAsset)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

write

protected void write(java.lang.String jspout)
Helper-Method to simplify writing content into th current page-delivery.

Parameters:
jspout - the content to write.

writeErrorMsg

protected void writeErrorMsg(java.lang.String header,
                             java.lang.String message)


Copyright © 2004 by basecmp® - Professional Web Solutions