Class 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
    • Method Detail

      • 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 - 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:
        data - the Data
        mbr - the Member
        Returns:
        true if the given member can access ttcard on given data
        Since:
        jcms-9.0.4 and jcms 10.0.0
      • 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
      • getTTCardTemplate

        public java.lang.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