/**
  * Sets the channel.
  *
  * @param channel the channel
  * @see
  *     com.communote.server.model.security.IpRangeChannel#setChannel(com.communote.server.model.security.ChannelType)
  */
 @Override
 public void setChannel(com.communote.server.model.security.ChannelType channel) {
   this.channel = channel;
   if (channel == null) {
     super.setType(null);
   } else {
     super.setType(channel.getValue());
   }
 }
 /**
  * {@inheritDoc}
  *
  * @see com.communote.server.model.security.IpRangeChannel#setType(String)
  */
 @Override
 public void setType(String type) {
   super.setType(type);
   if (type == null) {
     this.channel = null;
   } else {
     this.channel = ChannelType.fromString(type);
   }
 }