ClamAV Grails plugin

Finally I’ve released my first Grails plugin: ClamAV Grails plugin. It allows to easily use the Open Source antivirus ClamAV from Grails through a service and a validator.

The freeOfVirus validator can be used like any other constraints:

class Foo
{
  ...
  byte[] myBinaryData
  ...
  static constraints = {
    myBinaryData(freeOfVirus: true)
  }
}

Simple, isn’t it?

Advertisements

4 Comments

  1. March 10, 2008 at 4:33 pm

    Cool idea to check uploaded files!

  2. Robin said,

    March 10, 2008 at 6:32 pm

    Very nice! Also, adding a viruscheck service for arbitrary checks would be really great πŸ™‚

  3. Marc Guillemot said,

    March 11, 2008 at 8:14 am

    Robin,

    what do you mean with “for arbitrary checks”? Virus validation on File on InputStream make sense and are on the TODO list. I can imagine that validation on String could be usefull too, but for other types?

  4. Robin said,

    March 11, 2008 at 5:33 pm

    Sorry, wrongs words from me :), it should read “arbitrary files”.

    And when I look at the page over at grails.org I see you already support this. Sorry for all the fuss πŸ™‚


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: