Toggle navigation
Home
java.lang.String to org.apache.james.sieverepository.api.ScriptName
No. of Instances - 60
No. of Commits - 1
No. of Projects - {'james-project'}
Hierarchy/Composition: Composition
Primitive Info: -
NameSpace: Jdk -> Internal
Mapping:
Add or Remove Method invocation
deleteScriptStatement.bind().setString(USER_NAME,user).setString(SCRIPT_NAME,name)
to
deleteScriptStatement.bind().setString(USER_NAME,user.asString()).setString(SCRIPT_NAME,name.getValue())
selectScriptStatement.bind().setString(USER_NAME,user).setString(SCRIPT_NAME,name)
to
selectScriptStatement.bind().setString(USER_NAME,user.asString()).setString(SCRIPT_NAME,name.getValue())
updateScriptActivationStatement.bind().setString(USER_NAME,user).setString(SCRIPT_NAME,scriptName).setBool(IS_ACTIVE,active)
to
updateScriptActivationStatement.bind().setString(USER_NAME,user.asString()).setString(SCRIPT_NAME,scriptName.getValue()).setBool(IS_ACTIVE,active)
Arrays.stream(getUserDirectory(user).listFiles()).filter(file -> !(file.getName().equals(name) || SYSTEM_FILES.contains(file.getName()))).mapToLong(File::length)
to
Arrays.stream(getUserDirectory(user).listFiles()).filter(file -> !(file.getName().equals(name.getValue()) || SYSTEM_FILES.contains(file.getName()))).mapToLong(File::length)
username
to
user.asString()
Rename Variable
content
to
name