public class Utility
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Utility.Byggefelttype |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BYGGEFELTTYPE_FIELD |
static java.lang.String |
PLAN_TYPE_BYGGEFELTER |
Constructor and Description |
---|
Utility() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Integer |
addWeeksToDate(java.lang.Integer startDate,
int weeks) |
static java.lang.Integer |
addYearsToDate(java.lang.Integer startDate,
int years) |
static int |
calculatePasswordStrength(java.lang.String password) |
static void |
changePassword(PdkWsCommon endpoint,
java.lang.Integer userId,
java.lang.String password) |
static void |
changePasswordIfChanged(PdkWsCommon endpoint,
java.lang.Integer userId,
java.lang.String password) |
static boolean |
doesElementExistInFeatureTransaction(FeatureTransaction ft,
java.lang.String elementName) |
static FeatureCodes.FeatureCodeEnum |
getFeatureCodeEnumFromRow(Row row) |
static FeatureCodes.FeatureCodeEnum |
getFeatureCodeFromFeatureTransaction(FeatureTransaction ft) |
static java.lang.Integer |
getKomnrViaCvrNumber(PdkWsCommon endpoint,
java.lang.String cvrNumber) |
static FeatureCodes.FeatureCodeEnum |
getObjektkodeFromFeature(FeatureBase fc) |
static FeatureCodes.FeatureCodeEnum |
getObjektkodeFromFeature(FeatureBase fc,
boolean joinRetningslinjer) |
static FeatureCodes.FeatureCodeEnum |
getObjektkodeFromRow(Row row,
boolean joinRetningslinjer) |
static java.lang.Integer |
getParenPlanId(FeatureBase fcChild) |
static Row |
getParentRow(PdkWsCommon endpoint,
FeatureBase fcChild) |
static Row |
getPlanRow(PdkWsCommon endpoint,
java.lang.Integer planid,
FeatureCodes.FeatureCodeEnum featureCode) |
static Row |
getPlanRowWithPStatus(PdkWsCommon endpoint,
java.lang.Integer planid,
java.lang.Integer pstatus,
FeatureCodes.FeatureCodeEnum featureCode) |
static java.lang.Integer |
getPStateOrDefault(Row planRow) |
static PlanState |
getStatePlus(Row planRow) |
static java.lang.Integer |
getToday() |
static boolean |
isFeatureRetningslinje(FeatureBase fc) |
static boolean |
isRetningslinje(FeatureCodes.FeatureCodeEnum featureCode) |
static boolean |
isRetningslinje(java.lang.Integer featureCode) |
static boolean |
isRowRetningslinje(Row row) |
static boolean |
mustCheckIfPlannrIsUnique(FeatureTransaction ft) |
static void |
setTruncatedValue(Row r,
java.lang.String columnName,
java.lang.String value) |
public static final java.lang.String PLAN_TYPE_BYGGEFELTER
public static final java.lang.String BYGGEFELTTYPE_FIELD
public static java.lang.Integer getToday()
public static java.lang.Integer addYearsToDate(java.lang.Integer startDate, int years)
public static java.lang.Integer addWeeksToDate(java.lang.Integer startDate, int weeks)
public static boolean isFeatureRetningslinje(FeatureBase fc)
public static boolean isRowRetningslinje(Row row)
public static boolean isRetningslinje(FeatureCodes.FeatureCodeEnum featureCode)
public static boolean isRetningslinje(java.lang.Integer featureCode)
public static Row getPlanRow(PdkWsCommon endpoint, java.lang.Integer planid, FeatureCodes.FeatureCodeEnum featureCode) throws java.lang.Exception
java.lang.Exception
public static Row getPlanRowWithPStatus(PdkWsCommon endpoint, java.lang.Integer planid, java.lang.Integer pstatus, FeatureCodes.FeatureCodeEnum featureCode) throws java.lang.Exception
java.lang.Exception
public static java.lang.Integer getParenPlanId(FeatureBase fcChild)
public static Row getParentRow(PdkWsCommon endpoint, FeatureBase fcChild) throws java.lang.Exception
java.lang.Exception
public static FeatureCodes.FeatureCodeEnum getFeatureCodeFromFeatureTransaction(FeatureTransaction ft)
public static boolean doesElementExistInFeatureTransaction(FeatureTransaction ft, java.lang.String elementName)
public static FeatureCodes.FeatureCodeEnum getObjektkodeFromFeature(FeatureBase fc)
public static FeatureCodes.FeatureCodeEnum getObjektkodeFromFeature(FeatureBase fc, boolean joinRetningslinjer)
public static FeatureCodes.FeatureCodeEnum getObjektkodeFromRow(Row row, boolean joinRetningslinjer)
public static FeatureCodes.FeatureCodeEnum getFeatureCodeEnumFromRow(Row row)
public static java.lang.Integer getKomnrViaCvrNumber(PdkWsCommon endpoint, java.lang.String cvrNumber) throws java.lang.Exception
java.lang.Exception
public static boolean mustCheckIfPlannrIsUnique(FeatureTransaction ft)
public static java.lang.Integer getPStateOrDefault(Row planRow)
public static PlanState getStatePlus(Row planRow)
public static int calculatePasswordStrength(java.lang.String password)
public static void changePasswordIfChanged(PdkWsCommon endpoint, java.lang.Integer userId, java.lang.String password) throws java.lang.Exception
java.lang.Exception
public static void changePassword(PdkWsCommon endpoint, java.lang.Integer userId, java.lang.String password) throws java.lang.Exception
java.lang.Exception
public static void setTruncatedValue(Row r, java.lang.String columnName, java.lang.String value)