Package com.jalios.jcms.uicomponent
Class TTCardManager
- java.lang.Object
-
- com.jalios.jcms.uicomponent.TTCardManager
-
public final class TTCardManager extends java.lang.Object
- Since:
- jcms-9.0.1 and jcms-8.0.3
- Version:
- $Revision: 124576 $
- Author:
- Kevin Bransard
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REVISION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canAccessTTCard(Member mbr, Data data)
Returns true if the given member can access ttcard on given datastatic TTCardManager
getInstance()
java.lang.String
getTTCardCustomTemplate(java.lang.String ttCardName)
java.lang.String
getTTCardTemplate(Data data)
boolean
hasTTCard(Data data)
Returns true if the given data has a ttcard display.boolean
isTTCardEnabled()
-
-
-
Field Detail
-
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static TTCardManager getInstance()
-
isTTCardEnabled
public boolean isTTCardEnabled()
- Returns:
- true if ttcard are enabled on the webapp
- Since:
- jcms-9.0.1 and jcms-8.0.3
-
hasTTCard
public boolean hasTTCard(Data data)
Returns true if the given data has a ttcard display. If you doesn't want a ttcard on your type, simply declare a property with no value in your properties file :jcms.resource.tt-card.YourTypeName:
- Parameters:
data
- theData
- Returns:
- true if the given type has a ttcard display
- Since:
- jcms-9.0.1 and jcms-8.0.3
-
canAccessTTCard
public boolean canAccessTTCard(Member mbr, Data data)
Returns true if the given member can access ttcard on given data
-
getTTCardCustomTemplate
public java.lang.String getTTCardCustomTemplate(java.lang.String ttCardName)
- Parameters:
ttCardName
- the name of the custom ttcard- Returns:
- the jsp declared in properties for the ttcard that stands on given name
- Since:
- jcms-9.0.1 and jcms-8.0.3
-
-