Skip to content

Instantly share code, notes, and snippets.

@jmayaalv
Created January 19, 2015 13:37
Show Gist options
  • Save jmayaalv/ae1fb49baf74d7d70f14 to your computer and use it in GitHub Desktop.
Save jmayaalv/ae1fb49baf74d7d70f14 to your computer and use it in GitHub Desktop.
if (entity.getEntityType().equals(Org.ENTITY_TYPE)) {
memberGroups = this.securityGroupDao.findByOrg(entity.getId());
} else if (entity.getEntityType().equals(User.ENTITY_TYPE)) {
memberGroups = this.securityGroupDao.findByUser(entity.getId());
} else {
throw new Runt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment