rhbz1110627 zanata init

https://bugzilla.redhat.com/show_bug.cgi?id=1110627
and https://bugzilla.redhat.com/show_bug.cgi?id=1038852

Depends on https://github.com/zanata/zanata-api/pull/15 and https://github.com/zanata/zanata-server/pull/520
This is the only class in the hierarchy that does not have mandatory information. I won't say the inheritance model is wrong. We just don't have a case for this situation in the past. As for now it should be fine since this is the only case. If it appears again we will think about it. 

----- Original Message -----

> From: "David Mason" <notifications@github.com>
> To: "zanata/zanata-client" <zanata-client@noreply.github.com>
> Cc: "Patrick Huang" <pahuang@redhat.com>
> Sent: Friday, July 18, 2014 10:37:56 AM
> Subject: Re: [zanata-client] rhbz1110627 zanata init (#27)

> In
> zanata-client-commands/src/main/java/org/zanata/client/commands/init/InitCommand.java:
> > + * @author Patrick Huang <a
> > + *         href="mailto:pahuang@redhat.com">pahuang@redhat.com</a>
> > + */
> > +public class InitCommand extends ConfigurableCommand<InitOptions> {
> > +    private static final Logger log = LoggerFactory
> > +            .getLogger(InitCommand.class);
> > +    private static final ZanataProxyFactory mockFactory =
> > +            MockZanataProxyFactory.mockFactory;
> > +    private static final String ITERATION_URL = "%siteration/view/%s/%s";
> > +    private Interactiveable interactiveable;
> > +    private ZanataProxyFactory requestFactory;
> > +
> > +    public InitCommand(InitOptions opts) {
> > +        // we don't have all mandatory information yet. Can't create a
> > real
> > +        // proxy factory.
> > +        super(opts, mockFactory);

> It seems like there must be something wrong with our inheritance hierarchy if
> we have to do this. Are there any plans to deal with that at some point?

> —
> Reply to this email directly or view it on GitHub .