Klasse DomainConfig
java.lang.Object
org.emau.icmvc.ganimed.ttp.psn.config.DomainConfig
- Alle implementierten Schnittstellen:
Serializable
- Siehe auch:
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final int
static final long
-
Konstruktorübersicht
KonstruktorBeschreibungDomainConfig
(int maxDetectedErrors, int psnLength, String psnPrefix, String psnSuffix, boolean includePrefixInCheckDigitCalculation, boolean includeSuffixInCheckDigitCalculation, int useLastCharAsDelimiterAfterXChars, boolean psnsDeletable, ForceCache forceCache, ValidateViaParents validateValuesViaParents, boolean sendNotificationsWeb) DomainConfig
(String properties) Veraltet.better don't use thisDomainConfig
(DomainConfig config) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic void
checkLength
(String psnPrefix, String psnSuffix, int psnLength) boolean
int
static int
Veraltet.better don't use thisint
int
int
hashCode()
boolean
boolean
boolean
boolean
void
setForceCache
(ForceCache forceCache) void
setIncludePrefixInCheckDigitCalculation
(boolean includePrefixInCheckDigitCalculation) void
setIncludeSuffixInCheckDigitCalculation
(boolean includeSuffixInCheckDigitCalculation) void
setMaxDetectedErrors
(int maxDetectedErrors) void
setPsnLength
(int psnLength) void
setPsnPrefix
(String psnPrefix) void
setPsnsDeletable
(boolean psnsDeletable) void
setPsnSuffix
(String psnSuffix) void
setSendNotificationsWeb
(boolean sendNotificationsWeb) void
setUseLastCharAsDelimiterAfterXChars
(int useLastCharAsDelimiterAfterXChars) void
setValidateValuesViaParents
(ValidateViaParents validateValuesViaParents) toString()
-
Felddetails
-
DEFAULT_PSN_LENGTH
public static final int DEFAULT_PSN_LENGTH- Siehe auch:
-
MAX_PSEUDONYMS_FOR_DEFAULT_CACHE_ON
public static final long MAX_PSEUDONYMS_FOR_DEFAULT_CACHE_ON- Siehe auch:
-
-
Konstruktordetails
-
DomainConfig
public DomainConfig() -
DomainConfig
public DomainConfig(int maxDetectedErrors, int psnLength, String psnPrefix, String psnSuffix, boolean includePrefixInCheckDigitCalculation, boolean includeSuffixInCheckDigitCalculation, int useLastCharAsDelimiterAfterXChars, boolean psnsDeletable, ForceCache forceCache, ValidateViaParents validateValuesViaParents, boolean sendNotificationsWeb) throws InvalidParameterException - Löst aus:
InvalidParameterException
-
DomainConfig
- Löst aus:
InvalidParameterException
-
DomainConfig
Veraltet.better don't use thisreads the old (pre version 1.10) domain config properties string- Löst aus:
InvalidParameterException
-
-
Methodendetails
-
getMaxDetectedErrors
public int getMaxDetectedErrors() -
setMaxDetectedErrors
- Parameter:
maxDetectedErrors
- numbers of check digits forUngültige Referenz
org.emau.icmvc.ganimed.ttp.psn.generator.ReedSolomonLagrange
default 2- Löst aus:
InvalidParameterException
-
getPsnLength
public int getPsnLength() -
setPsnLength
- Parameter:
psnLength
- length of the generated pseudonym
default 8- Löst aus:
InvalidParameterException
-
getPsnPrefix
-
setPsnPrefix
- Parameter:
psnPrefix
- additional prefix
default ""- Löst aus:
InvalidParameterException
-
getPsnSuffix
-
setPsnSuffix
- Parameter:
psnSuffix
- additional suffix
default ""- Löst aus:
InvalidParameterException
-
isIncludePrefixInCheckDigitCalculation
public boolean isIncludePrefixInCheckDigitCalculation() -
setIncludePrefixInCheckDigitCalculation
public void setIncludePrefixInCheckDigitCalculation(boolean includePrefixInCheckDigitCalculation) - Parameter:
includePrefixInCheckDigitCalculation
- should the prefix be used to calculate the check digit(s)
default false
-
isIncludeSuffixInCheckDigitCalculation
public boolean isIncludeSuffixInCheckDigitCalculation() -
setIncludeSuffixInCheckDigitCalculation
public void setIncludeSuffixInCheckDigitCalculation(boolean includeSuffixInCheckDigitCalculation) - Parameter:
includeSuffixInCheckDigitCalculation
- should the suffix be used to calculate the check digit(s)
default false
-
getUseLastCharAsDelimiterAfterXChars
public int getUseLastCharAsDelimiterAfterXChars() -
setUseLastCharAsDelimiterAfterXChars
public void setUseLastCharAsDelimiterAfterXChars(int useLastCharAsDelimiterAfterXChars) throws InvalidParameterException - Parameter:
useLastCharAsDelimiterAfterXChars
- use last char of the given alphabet as delimiter symbol after the given number of other chars within the pseudonym
e.g. 123.456.789 or abcd-efgh-ijkl
default 0 (which means dont use ...)- Löst aus:
InvalidParameterException
-
isPsnsDeletable
public boolean isPsnsDeletable() -
setPsnsDeletable
public void setPsnsDeletable(boolean psnsDeletable) - Parameter:
psnsDeletable
- is it allowed to delete entries within this project
attention!ValidateViaParents.CASCADE_DELETE
ignores this config entry
default false
-
getForceCache
-
setForceCache
- Parameter:
forceCache
- should a cache be used for faster psn generation, seeForceCache
memory consumption is one bit per possible pseudonym: mem_for_cache = alphabet_length ^ pseudonym_length / 8 / 1024 / 1024 MB
e.g. alphabet = numbers, length = 8 -> mem_for_cache = 10 ^ 8 / (8 * 1024 * 1024) = 11.92 MB
defaultForceCache.DEFAULT
if memory consumption Ungültige Eingabe: "<" 120 MB (pseudonym_length = 9, alphabet_length = 10) then use cache, else don't- Löst aus:
InvalidParameterException
-
getValidateValuesViaParents
-
setValidateValuesViaParents
- Parameter:
validateValuesViaParents
- should the values in this domain be validated against the rules of their parent domains, seeValidateViaParents
throws anInvalidParameterException
if there's no parent domain set
defaultValidateViaParents.OFF
-
isSendNotificationsWeb
public boolean isSendNotificationsWeb() -
setSendNotificationsWeb
public void setSendNotificationsWeb(boolean sendNotificationsWeb) -
getPropertiesString
Veraltet.better don't use this- Gibt zurück:
- the old (pre version 1.10) domain config properties string
-
getMaxNumberOfCharactersInFullyQualifiedPsn
public static int getMaxNumberOfCharactersInFullyQualifiedPsn() -
checkLength
public static void checkLength(String psnPrefix, String psnSuffix, int psnLength) throws InvalidParameterException - Löst aus:
InvalidParameterException
-
hashCode
public int hashCode() -
equals
-
toString
-