Package com.jalios.jcms.uicomponent
Class TTCardManager
java.lang.Object
com.jalios.jcms.uicomponent.TTCardManager
- All Implemented Interfaces:
JPropertiesListener
- Since:
- jcms-9.0.1 and jcms-8.0.3
- Author:
- Kevin Bransard
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanAccessTTCard(Member mbr, Data data) Returns true if the given member can access ttcard on given datastatic TTCardManagergetTTCardCustomTemplate(String ttCardName) getTTCardTemplate(Data data) booleanReturns true if the given data has a ttcard display.booleanisTTCardDisabled(Class type) booleanvoidpropertiesChange(JProperties properties) Invoked after properties have been modified in JCMS and save on disk.
-
Method Details
-
getInstance
-
propertiesChange
Description copied from interface:JPropertiesListenerInvoked 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.getPropertiesorchannel.getProperty.- Specified by:
propertiesChangein 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
- Parameters:
type- the JPlatform type Class (Member, Article, FileDocument ...)- Returns:
- true if ttcard is disabled for given type
- Since:
- 10.0.8
-
hasTTCard
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
Returns true if the given member can access ttcard on given data -
getTTCardCustomTemplate
- 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
-
getTTCardTemplate
-