Toggle navigation
Home
java.lang.String to org.apache.james.mailrepository.api.MailRepositoryUrl
No. of Instances - 91
No. of Commits - 2
No. of Projects - {'james-project'}
Hierarchy/Composition: Composition
Primitive Info: -
NameSpace: Jdk -> Internal
Mapping:
Add or Remove Method invocation
DROPPED_MAILS
to
DROPPED_MAILS.asString()
executor.executeSingleRow(selectMail.bind().setString(REPOSITORY_NAME,url).setString(MAIL_KEY,key))
to
executor.executeSingleRow(selectMail.bind().setString(REPOSITORY_NAME,url.asString()).setString(MAIL_KEY,key.asString()))
deleteMail.bind().setString(REPOSITORY_NAME,url).setString(MAIL_KEY,key)
to
deleteMail.bind().setString(REPOSITORY_NAME,url.asString()).setString(MAIL_KEY,key.asString())
AWAIT_REPOSITORY_PATH
to
AWAIT_REPOSITORY_PATH.asString()
executor.executeSingleRow(select.bind().setString(REPOSITORY_NAME,url))
to
executor.executeSingleRow(select.bind().setString(REPOSITORY_NAME,url.asString()))
decrement.bind().setString(REPOSITORY_NAME,url)
to
decrement.bind().setString(REPOSITORY_NAME,url.asString())
insertKey.bind().setString(REPOSITORY_NAME,url).setString(MAIL_KEY,key)
to
insertKey.bind().setString(REPOSITORY_NAME,url.asString()).setString(MAIL_KEY,key.asString())
myRepositories
to
myRepositories.stream().map(MailRepositoryUrl::asString).collect(Guavate.toImmutableList())
executor.execute(listKeys.bind().setString(REPOSITORY_NAME,url)).thenApply(cassandraUtils::convertToStream)
to
executor.execute(listKeys.bind().setString(REPOSITORY_NAME,url.asString())).thenApply(cassandraUtils::convertToStream)
stream.map(row -> row.getString(MAIL_KEY))
to
stream.map(row -> new MailKey(row.getString(MAIL_KEY)))
insertMail.bind().setString(REPOSITORY_NAME,url).setString(MAIL_KEY,mail.getName()).setString(HEADER_BLOB_ID,headerId.asString()).setString(BODY_BLOB_ID,bodyId.asString()).setString(STATE,mail.getState()).setString(SENDER,Optional.ofNullable(mail.getSender()).map(MailAddress::asString).orElse(null)).setList(RECIPIENTS,asStringList(mail.getRecipients())).setString(ERROR_MESSAGE,mail.getErrorMessage()).setString(REMOTE_ADDR,mail.getRemoteAddr()).setString(REMOTE_HOST,mail.getRemoteHost()).setLong(MESSAGE_SIZE,mail.getMessageSize()).setTimestamp(LAST_UPDATED,mail.getLastUpdated()).setMap(ATTRIBUTES,toRawAttributeMap(mail)).setMap(PER_RECIPIENT_SPECIFIC_HEADERS,toHeaderMap(mail.getPerRecipientSpecificHeaders()))
to
insertMail.bind().setString(REPOSITORY_NAME,url.asString()).setString(MAIL_KEY,mail.getName()).setString(HEADER_BLOB_ID,headerId.asString()).setString(BODY_BLOB_ID,bodyId.asString()).setString(STATE,mail.getState()).setString(SENDER,Optional.ofNullable(mail.getSender()).map(MailAddress::asString).orElse(null)).setList(RECIPIENTS,asStringList(mail.getRecipients())).setString(ERROR_MESSAGE,mail.getErrorMessage()).setString(REMOTE_ADDR,mail.getRemoteAddr()).setString(REMOTE_HOST,mail.getRemoteHost()).setLong(MESSAGE_SIZE,mail.getMessageSize()).setTimestamp(LAST_UPDATED,mail.getLastUpdated()).setMap(ATTRIBUTES,toRawAttributeMap(mail)).setMap(PER_RECIPIENT_SPECIFIC_HEADERS,toHeaderMap(mail.getPerRecipientSpecificHeaders()))
destination
to
destination.asString()
CUSTOM_REPOSITORY
to
CUSTOM_REPOSITORY.asString()
CUSTOM_REPOSITORY
to
CUSTOM_REPOSITORY.asString()
CUSTOM_REPOSITORY
to
CUSTOM_REPOSITORY.asString()
CUSTOM_REPOSITORY
to
CUSTOM_REPOSITORY.asString()
CUSTOM_REPOSITORY
to
CUSTOM_REPOSITORY.asString()
CUSTOM_REPOSITORY
to
CUSTOM_REPOSITORY.asString()
CUSTOM_REPOSITORY
to
CUSTOM_REPOSITORY.asString()
deleteKey.bind().setString(REPOSITORY_NAME,url).setString(MAIL_KEY,key)
to
deleteKey.bind().setString(REPOSITORY_NAME,url.asString()).setString(MAIL_KEY,key.asString())
increment.bind().setString(REPOSITORY_NAME,url)
to
increment.bind().setString(REPOSITORY_NAME,url.asString())
FIRST_REPOSITORY
to
FIRST_REPOSITORY.asString()
FIRST_REPOSITORY
to
FIRST_REPOSITORY.asString()
SECOND_REPOSITORY
to
SECOND_REPOSITORY.asString()
URL_MY_REPO
to
URL_MY_REPO.asString()
URL_MY_REPO
to
URL_MY_REPO.asString()
URL_MY_REPO
to
URL_MY_REPO.asString()
URL_MY_REPO
to
URL_MY_REPO.asString()
URL_MY_REPO
to
URL_MY_REPO.asString()
URL_MY_REPO
to
URL_MY_REPO.asString()
URL_MY_REPO
to
URL_MY_REPO.asString()
FIRST_REPOSITORY
to
FIRST_REPOSITORY.asString()
SECOND_REPOSITORY
to
SECOND_REPOSITORY.asString()
DROPPED_MAILS
to
DROPPED_MAILS.asString()
CUSTOM_REPOSITORY
to
CUSTOM_REPOSITORY.asString()
Optional.ofNullable(getInitParameter(URL_PREFIX)).orElseThrow(() -> new MessagingException("'urlPrefix' is a mandatory configuration property"))
to
Optional.ofNullable(getInitParameter(URL_PREFIX)).map(MailRepositoryUrl::from).orElseThrow(() -> new MessagingException("'urlPrefix' is a mandatory configuration property"))
Rename Variable
repID
to
destination
repID
to
destination
repID
to
destination