Package com.avoka.fc.core.dao
Class SystemInfoDao
- java.lang.Object
-
- com.avoka.core.dao.BaseDao
-
- com.avoka.fc.core.dao.AbstractDao
-
- com.avoka.fc.core.dao.SystemInfoDao
-
public class SystemInfoDao extends AbstractDao
Provides a DAO for the Client entity.- See Also:
SystemInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SystemInfoDao.TIInstance
Provides a TIInstance enumeration.
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description SystemInfoDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getAllSystemInfos()
Gets the all system infos.String
getEnvironmentType()
Return the environment type for this TM instanceString
getLicenseClientCode()
Return the license client code for this TM instanceString
getLicenseGuid()
Return the license GUID.String
getLicenseName()
Return the license name for this TM instanceString
getLicenseType()
Return the license type for this TM instanceString
getLicensingSystemKey()
Return the license system keycom.avoka.fc.core.entity.SystemInfo
getSystemInfoByName(String name)
Return the value with the specified nameSystemInfoDao.TIInstance
getTIInstance()
String
getTIServiceAccountId()
byte[]
getTIServiceAccountPrivateKey()
String
getValueByName(String name)
Return the value with the specified namevoid
initTIServiceAccountInfo()
Initialize the Transact Insights Google Account info.void
saveSystemInfo(Map<String,String> map)
Save system info.boolean
setDefaultValue(String name, String defaultValue)
Set a value for a system info object ONLY IF no system info object with the given name exists.-
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
-
getTIServiceAccountId
public String getTIServiceAccountId()
- Returns:
- the Transact Insights Google Service Account ID.
- Since:
- 5.0
-
getTIServiceAccountPrivateKey
public byte[] getTIServiceAccountPrivateKey()
- Returns:
- the Transact Insights Google Service Account Private Key data.
- Since:
- 5.0
-
getTIInstance
public SystemInfoDao.TIInstance getTIInstance()
- Returns:
- the Transact Insights Instance ID
- Since:
- 5.0
-
initTIServiceAccountInfo
public void initTIServiceAccountInfo()
Initialize the Transact Insights Google Account info.- Since:
- 5.0
-
getValueByName
public String getValueByName(String name)
Return the value with the specified name- Parameters:
name
- the system info name- Returns:
- value for the name
-
getSystemInfoByName
public com.avoka.fc.core.entity.SystemInfo getSystemInfoByName(String name)
Return the value with the specified name- Parameters:
name
- the system info name- Returns:
- value for the name
-
getAllSystemInfos
public Map<String,String> getAllSystemInfos()
Gets the all system infos.- Returns:
- the all system infos
-
saveSystemInfo
public void saveSystemInfo(Map<String,String> map)
Save system info.- Parameters:
map
- the system info entry
-
setDefaultValue
public boolean setDefaultValue(String name, String defaultValue)
Set a value for a system info object ONLY IF no system info object with the given name exists.- Parameters:
name
- the name (required)defaultValue
- the value- Returns:
- true if a system info object was created; false if one already existed and no change was made
- Since:
- 4.2.0
-
getLicensingSystemKey
public String getLicensingSystemKey()
Return the license system key- Returns:
- the license system key
- Since:
- 4.3.4
-
getLicenseClientCode
public String getLicenseClientCode()
Return the license client code for this TM instance- Returns:
- the license client code
- Since:
- 4.3.4
-
getLicenseName
public String getLicenseName()
Return the license name for this TM instance- Returns:
- the license name
- Since:
- 4.3.4
-
getLicenseType
public String getLicenseType()
Return the license type for this TM instance- Returns:
- the license type
- Since:
- 4.3.4
-
getEnvironmentType
public String getEnvironmentType()
Return the environment type for this TM instance- Returns:
- the environment type (e.g. PROD)
- Since:
- 4.3.4
-
getLicenseGuid
public String getLicenseGuid()
Return the license GUID.- Returns:
- the license GUID (part of the license key)
- Since:
- 4.3.4
-
-