Class JdbcAcceptableUsagePolicyProperties

java.lang.Object
org.apereo.cas.configuration.model.support.jpa.AbstractJpaProperties
org.apereo.cas.configuration.model.support.aup.JdbcAcceptableUsagePolicyProperties
All Implemented Interfaces:
Serializable, CasFeatureModule

@RequiresModule(name="cas-server-support-aup-jdbc") public class JdbcAcceptableUsagePolicyProperties extends AbstractJpaProperties
Since:
6.2.0
See Also:
  • Constructor Details

    • JdbcAcceptableUsagePolicyProperties

      public JdbcAcceptableUsagePolicyProperties()
  • Method Details

    • getTableName

      public String getTableName()
      The table name in the database that holds the AUP attribute to update for the user.
    • getAupColumn

      public String getAupColumn()
      The column to store the AUP attribute. May differ from the profile attribute defined by AcceptableUsagePolicyCoreProperties.getAupAttributeName(). SQL query can be further customized by setting sqlUpdate.
    • getPrincipalIdColumn

      public String getPrincipalIdColumn()
      The column to identify the principal. SQL query can be further customized by setting sqlUpdate.
    • getPrincipalIdAttribute

      public String getPrincipalIdAttribute()
      The profile attribute to extract the value for the principalIdColumn used in the WHERE clause of sqlUpdate. If empty, the principal ID will be used.
    • getSqlUpdate

      public String getSqlUpdate()
      The query template to update the AUP attribute. %s placeholders represent tableName, aupColumn, principalIdColumn settings.
    • getSqlSelect

      public String getSqlSelect()
      The query template to search for the AUP attribute. %s placeholders represent aupColumn, tableName, principalIdColumn settings.
    • setTableName

      public JdbcAcceptableUsagePolicyProperties setTableName(String tableName)
      The table name in the database that holds the AUP attribute to update for the user.
      Returns:
      this.
    • setAupColumn

      public JdbcAcceptableUsagePolicyProperties setAupColumn(String aupColumn)
      The column to store the AUP attribute. May differ from the profile attribute defined by AcceptableUsagePolicyCoreProperties.getAupAttributeName(). SQL query can be further customized by setting sqlUpdate.
      Returns:
      this.
    • setPrincipalIdColumn

      public JdbcAcceptableUsagePolicyProperties setPrincipalIdColumn(String principalIdColumn)
      The column to identify the principal. SQL query can be further customized by setting sqlUpdate.
      Returns:
      this.
    • setPrincipalIdAttribute

      public JdbcAcceptableUsagePolicyProperties setPrincipalIdAttribute(String principalIdAttribute)
      The profile attribute to extract the value for the principalIdColumn used in the WHERE clause of sqlUpdate. If empty, the principal ID will be used.
      Returns:
      this.
    • setSqlUpdate

      public JdbcAcceptableUsagePolicyProperties setSqlUpdate(String sqlUpdate)
      The query template to update the AUP attribute. %s placeholders represent tableName, aupColumn, principalIdColumn settings.
      Returns:
      this.
    • setSqlSelect

      public JdbcAcceptableUsagePolicyProperties setSqlSelect(String sqlSelect)
      The query template to search for the AUP attribute. %s placeholders represent aupColumn, tableName, principalIdColumn settings.
      Returns:
      this.