public static String generateRegId ( final String domainCreationDate , final String reverseDomainName , final String suffix ) { if ( StringUtils . isBlank ( domainCreationDate ) ) { throw new SwidException ( "domainCreationDate isn't defined" ) ; } if ( StringUtils . isBlank ( reverseDomainName ) ) { throw new SwidException ( "reverseDomainName isn't defined" ) ; } StringBuilder res = new StringBuilder ( ) . append ( "regid" ) . append ( DELIMITER ) . append ( domainCreationDate ) . append ( DELIMITER ) . append ( reverseDomainName ) ; if ( StringUtils . isNotBlank ( suffix ) ) { res . append ( "," ) . append ( suffix ) ; } return res . toString ( ) ; }
Generate RegId with additional suffix .