Package com.avoka.fc.core.dao
Class PortalPropertyDao
- java.lang.Object
-
- com.avoka.core.dao.BaseDao
-
- com.avoka.fc.core.dao.AbstractDao
-
- com.avoka.fc.core.dao.PortalPropertyDao
-
public class PortalPropertyDao extends AbstractDao
Provides a DAO for the PortalProperty entity.- See Also:
PortalProperty
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description PortalPropertyDao()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<PortalProperty>
getAllPortalProperty(Portal portal)
Gets the all portal property for a given portalboolean
getBooleanValue(Portal portal, String name, boolean valueIfBlank)
Return a portal property interpreted as a boolean value.PortalProperty
getObjectForPK(Object object)
Return the portal property with the specified OIDboolean
getPortalPropertyBooleanValue(Portal portal, String name, boolean valueIfBlank)
Return a portal property interpreted as a boolean value.PortalProperty
getPortalPropertyByName(Object portalId, String name)
Return the portal property with the given name for the specified portallong
getPortalPropertyLongValue(Portal portal, String name, long valueIfBlank)
Return a portal property interpreted as a numeric long value.String
getPortalPropertyValue(Portal portal, String name)
Return the property value for a given portal and portal property nameboolean
hasPortalProperty(Portal portal, String name)
Return the true if the portal has the given propertystatic void
invalidateCache()
Deprecated.-
Methods inherited from class com.avoka.fc.core.dao.AbstractDao
andFilterClientExcludeNull, andFilterClientIncludeNull, andFilterClientOnly, isClientAccessAllowed, performQueryConfigCached
-
Methods inherited from class com.avoka.core.dao.BaseDao
addOrdering, addOrderingCaseInsensitive, addOrderingCaseSensitive, andQueryBetween, andQueryInExp, andQueryInExp, andQueryLikeIgnoreCaseExp, andQueryMatchDbExp, andQueryMatchExp, andQueryMatchIsNotNull, andQueryMatchIsNull, andQueryNoMatchExp, andQueryNotTrue, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, newObject, orQueryLikeIgnoreCaseExp, orQueryMatchExp, performNamedQuery, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, registerNewObject, setCacheStrategy, setFetchLimit, setLocalCacheStrategy, setLocalCacheStrategy, setSharedCacheStrategy, toMap, toMap
-
-
-
-
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 propertyname
- 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 objectname
- 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 portalname
- the non-empty name of the portal propertyvalueIfBlank
- 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 portalname
- the non-empty name of the portal propertyvalueIfBlank
- 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 portalname
- the non-empty name of the portal propertyvalueIfBlank
- 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 objectname
- 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
-
-