Package com.jalios.jcms.uicomponent
Class TTCardManager
- java.lang.Object
-
- com.jalios.jcms.uicomponent.TTCardManager
-
- All Implemented Interfaces:
JPropertiesListener
public final class TTCardManager extends java.lang.Object implements JPropertiesListener
- Since:
- jcms-9.0.1 and jcms-8.0.3
- Author:
- Kevin Bransard
-
-
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
isTTCardDisabled(java.lang.Class type)
boolean
isTTCardEnabled()
void
propertiesChange(JProperties properties)
Invoked after properties have been modified in JCMS and save on disk.
-
-
-
Method Detail
-
getInstance
public static TTCardManager getInstance()
-
propertiesChange
public void propertiesChange(JProperties properties)
Description copied from interface:JPropertiesListener
Invoked after properties have been modified in JCMS and save on disk.You cannot alter the value received in parameters.
Note that properties parameter may be null, a limited set of site properties, or all site properties.
To check that a property has been modified, reload the "current" property instead using
channel.getProperties
orchannel.getProperty
.- Specified by:
propertiesChange
in interfaceJPropertiesListener
- Parameters:
properties
- the properties which have been submitted to change
-
isTTCardEnabled
public boolean isTTCardEnabled()
- Returns:
- true if ttcard are enabled on the webapp
- Since:
- jcms-9.0.1 and jcms-8.0.3
-
isTTCardDisabled
public boolean isTTCardDisabled(java.lang.Class type)
- Parameters:
type
- the JPlatform type Class (Member, Article, FileDocument ...)- Returns:
- true if ttcard is disabled for given type
- Since:
- 10.0.8
-
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
-
-