Toggle navigation
Home
org.apache.james.sieve.cassandra.model.ScriptContentAndActivation to org.apache.james.sieve.cassandra.model.Script
No. of Instances - 2
No. of Commits - 1
No. of Projects - {'james-project'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
Add or Remove Method invocation
row.getString(CassandraSieveTable.SCRIPT_CONTENT)
to
SCRIPT_CONTENT
opt.map(row -> new ScriptContentAndActivation(SCRIPT_CONTENT,row.getBool(CassandraSieveTable.IS_ACTIVE)))
to
opt.map(row -> Script.builder().content(row.getString(SCRIPT_CONTENT)).isActive(row.getBool(IS_ACTIVE)).name(name).size(row.getLong(SIZE)).build())
CompletableFuture.allOf(cassandraSieveDAO.insertScript(user,newName,oldScript.getContent(),oldScript.isActive()),cassandraSieveDAO.deleteScriptInCassandra(user,oldName))
to
CompletableFuture.allOf(cassandraSieveDAO.insertScript(user,Script.builder().copyOf(oldScript).name(newName).build()),cassandraSieveDAO.deleteScriptInCassandra(user,oldScript.getName()),performActiveScriptRename(user,oldScript.getName(),newName))
Rename Variable
getScriptContentAndActivation
to
getScript