public Result < Void > addDescription ( AuthzTrans trans , String ns , String name , String description ) { try { getSession ( trans ) . execute ( UPDATE_SP + TABLE + " SET description = '" + description + "' WHERE ns = '" + ns + "' AND name = '" + name + "';" ) ; } catch ( DriverException | APIException | IOException e ) { reportPerhapsReset ( trans , e ) ; return Result . err ( Result . ERR_Backend , CassAccess . ERR_ACCESS_MSG ) ; } Data data = new Data ( ) ; data . ns = ns ; data . name = name ; wasModified ( trans , CRUD . update , data , "Added description " + description + " to role " + data . fullName ( ) , null ) ; return Result . ok ( ) ; }
Add description to role