class SpacewalkChannelRepository extends RPMRepository<SpacewalkPackage> {

    public void setCredentials(final Credentials credentials,
            final boolean isPersistingCredentials) {

        if (null == credentials) {
            throw new NullPointerException("must provide credentials");
        }
        if (StringUtils.isEmpty(credentials.getUserName())) {
            throw new IllegalArgumentException("must provide a user name");
        }
        if (StringUtils.isEmpty(credentials.getPassword())) {
            throw new IllegalArgumentException("must provide a password");
        }

        this.credentials = credentials;
        this.isPersistingCredentials = isPersistingCredentials;
        if (this.isPersistingCredentials) {
            userName = credentials.getUserName();
            password = credentials.getPassword();
        } else {
            userName = null;
            password = null;
        }
    }

    public  SpacewalkChannelRepository(final String name, final URL baseUrl,
            final String channelLabel);
    public  SpacewalkChannelRepository(final String name);
    protected  SpacewalkChannelRepository();

}