com.basecmp.taglibs
Class AbstractTag

java.lang.Object
  extended byTagSupport
      extended bycom.basecmp.taglibs.AbstractTag
Direct Known Subclasses:
AddAttachedValuePopupTag, AssetListTag, AssetOperationTag, AttachedAssetListTag, AttachedAssetOperationTag, AttachedValueListTag, BindingListTag, CategoryListTag, CheckLicenseTag, CheckPermissionsTag, FilterSetTag, GetAssetTag, GetGuiPanelTag, GetSearchConfigTag, HistoryUrlTag, JDBCProfilingTag, LinkedAssetFilterSetTag, LockedAssetListTag, MonthRangeTag, SortSetTag, TimestampTag, UrlTag

public abstract class AbstractTag
extends TagSupport

Created on 23.11.2005

See Also:
Serialized Form
Author:
wolfgang

Field Summary
protected  int _scope
           
protected  boolean isDebugMode
           
 
Constructor Summary
AbstractTag()
           
 
Method Summary
protected  java.lang.Long clientIdBySession()
          Returns the client-id (CID) from the session-attribute DOMAIN_CLIENT_ID.
protected  java.lang.Long domainIdByHttpHeader()
          Returns the domain-id (CID) using the Http-HOST-Header.
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.
 java.lang.String getDebug()
           
 java.lang.String getScope()
           
protected  java.lang.String localeLanguageNameBySession()
          Returns the ISO language from the session-attribute USER_VIEWING_DOMAIN.
 void setDebug(java.lang.String debug)
           
 void setScope(java.lang.String scope)
           
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)
           
protected  void writeJavaScript(java.lang.String scriptId, java.lang.String script)
          Schreibt ein HTML-Script-Tag mit dem angegebenen Script-String als Inhalt in die Seite.
protected  void writeJavaScriptResourceReference(java.lang.String jsResourceName)
          Schreibt ein HTML-Script-Tag als externe Referenz auf eine JavaScript-Datei in die Seite.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_scope

protected int _scope

isDebugMode

protected boolean isDebugMode
Constructor Detail

AbstractTag

public AbstractTag()
Method Detail

clientIdBySession

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

See Also:
SessionConstants#DOMAIN_CLIENT_ID

domainIdByHttpHeader

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


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

getDebug

public java.lang.String getDebug()

getScope

public java.lang.String getScope()

localeLanguageNameBySession

protected java.lang.String localeLanguageNameBySession()
Returns the ISO language from the session-attribute USER_VIEWING_DOMAIN.

See Also:
SessionConstants#USER_VIEWING_DOMAIN

setDebug

public void setDebug(java.lang.String debug)

setScope

public void setScope(java.lang.String scope)

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)

writeJavaScript

protected void writeJavaScript(java.lang.String scriptId,
                               java.lang.String script)
Schreibt ein HTML-Script-Tag mit dem angegebenen Script-String als Inhalt in die Seite. Diese Methode stellt anhand der angegebenen Script-Id sicher, das die Referenz nur einmal pro Seite eingefügt wird.


writeJavaScriptResourceReference

protected void writeJavaScriptResourceReference(java.lang.String jsResourceName)
Schreibt ein HTML-Script-Tag als externe Referenz auf eine JavaScript-Datei in die Seite. Diese Methode stellt sicher, das die Referenz nur einmal pro Seite eingefügt wird.

Parameters:
jsResourceName - Name der referenzierten JavaScript-Datei, die sich im Verzeichnis unterhalb von '<Backoffice>/contententry/js befinden muss.


Copyright © 2004 by basecmp® - Professional Web Solutions