Class TTCardManager

java.lang.Object
com.jalios.jcms.uicomponent.TTCardManager
All Implemented Interfaces:
JPropertiesListener

public final class TTCardManager extends Object implements JPropertiesListener
Since:
jcms-9.0.1 and jcms-8.0.3
Author:
Kevin Bransard
  • Method Details

    • 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 or channel.getProperty.

      Specified by:
      propertiesChange in interface JPropertiesListener
      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(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 - the Data
      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
      Parameters:
      mbr - the Member
      data - the Data
      Returns:
      true if the given member can access ttcard on given data
      Since:
      jcms-9.0.4 and jcms 10.0.0
    • getTTCardCustomTemplate

      public String getTTCardCustomTemplate(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
    • getTTCardTemplate

      public String getTTCardTemplate(Data data)
      Parameters:
      data - the Data
      Returns:
      the jsp declared in properties for the ttcard of the given Data
      Since:
      jcms-9.0.1 and jcms-8.0.3