Class PortalPropertyDao

    • Constructor Detail

      • PortalPropertyDao

        public PortalPropertyDao()
    • Method Detail

      • invalidateCache

        @Deprecated
        public static void invalidateCache()
        Deprecated.
        Invalidate the portal property cache.
        Since:
        4.3.3
      • getObjectForPK

        public PortalProperty getObjectForPK​(Object object)
        Return the portal property with the specified OID
        Parameters:
        object - the OID
        Returns:
        the matching portal property, or null if not found
      • getPortalPropertyByName

        public PortalProperty getPortalPropertyByName​(Object portalId,
                                                      String name)
        Return the portal property with the given name for the specified portal
        Parameters:
        portalId - the non-null OID of the portal associated with the property
        name - the non-null property name
        Returns:
        the matching portal property
      • getPortalPropertyValue

        public String getPortalPropertyValue​(Portal portal,
                                             String name)
        Return the property value for a given portal and portal property name
        Parameters:
        portal - the non-null portal object
        name - the non-null property name
        Returns:
        the value of the matching property, or null if the property is not set for the portal
      • getPortalPropertyBooleanValue

        public boolean getPortalPropertyBooleanValue​(Portal portal,
                                                     String name,
                                                     boolean valueIfBlank)
        Return a portal property interpreted as a boolean value. If the property is not set or set to a blank value, a default value is returned.
        Parameters:
        portal - the non-null portal
        name - the non-empty name of the portal property
        valueIfBlank - the value to return if the property is not set or set to a blank value
        Returns:
        the boolean value of the portal property
      • getBooleanValue

        public boolean getBooleanValue​(Portal portal,
                                       String name,
                                       boolean valueIfBlank)
        Return a portal property interpreted as a boolean value. If the property is not set or set to a blank value, a default value is returned.
        Parameters:
        portal - the non-null portal
        name - the non-empty name of the portal property
        valueIfBlank - the value to return if the property is not set or set to a blank value
        Returns:
        the boolean value of the portal property
        Since:
        4.2.0
      • getPortalPropertyLongValue

        public long getPortalPropertyLongValue​(Portal portal,
                                               String name,
                                               long valueIfBlank)
        Return a portal property interpreted as a numeric long value. If the property is not set or set to a blank value, a default value is returned.
        Parameters:
        portal - the non-null portal
        name - the non-empty name of the portal property
        valueIfBlank - the value to return if the property is not set or set to a blank value
        Returns:
        the long value of the portal property
      • hasPortalProperty

        public boolean hasPortalProperty​(Portal portal,
                                         String name)
        Return the true if the portal has the given property
        Parameters:
        portal - the non-null portal object
        name - the non-null property name
        Returns:
        the true if the portal has the given property
      • getAllPortalProperty

        public List<PortalProperty> getAllPortalProperty​(Portal portal)
        Gets the all portal property for a given portal
        Parameters:
        portal - the non-null portal object
        Returns:
        all portal property for a given portal