Examples of Credits


Examples of de.jetwick.tw.Credits

//        uSearch.search(jetwickUsers, new SolrQuery().setRows(10000));
        final Set<String> set = new TreeSet<String>();
//        for (SolrUser u : jetwickUsers) {
//            set.add(u.getScreenName());
//        }
        Credits credits = config.getTwitterSearchCredits();
        TwitterSearch tw4j = new TwitterSearch().setConsumer(credits.getConsumerKey(), credits.getConsumerSecret());
        tw4j.initTwitter4JInstance(credits.getToken(), credits.getTokenSecret(), true);
        tw4j.getFollowers(user, new AnyExecutor<JUser>() {

            @Override
            public JUser execute(JUser o) {
//                if (set.contains(o.getScreenName()))
View Full Code Here

Examples of de.jetwick.tw.Credits

        return get(key);
    }

    public Credits getTwitterSearchCredits() {
        String key = "jetslide.twitter4j.main.";
        return new Credits(get(key + "token"), get(key + "tokenSecret"),
                get(key + "consumerKey"), get(key + "consumerSecret"));
    }
View Full Code Here

Examples of de.jetwick.tw.Credits

                get(key + "consumerKey"), get(key + "consumerSecret"));
    }

    public Credits getJetwotCredits() {
        String key = "jetslide.twitter4j.jetwot.";
        return new Credits(get(key + "token"), get(key + "tokenSecret"),
                get(key + "consumerKey"), get(key + "consumerSecret"));
    }
View Full Code Here

Examples of de.jetwick.tw.Credits

    public void installRMIModule() {
        bind(RMIServer.class).toInstance(new RMIServer(config));
    }

    public void installTwitterModule() {
        final Credits cred = config.getTwitterSearchCredits();
//        logger.info("TWITTER:"+cred.getConsumerKey() + " " + cred.getConsumerSecret());
//        logger.info(cred.getToken() + " " + cred.getTokenSecret());

        final TwitterSearch ts = createTwitterSearch().setConsumer(
                cred.getConsumerKey(), cred.getConsumerSecret());

        try {
            ts.initTwitter4JInstance(cred.getToken(), cred.getTokenSecret(), true);
        } catch (Exception ex) {
            logger.error("Cannot create twitter4j instance!\n######### TWITTER4J ERROR: But start jetwick nevertheless! Error:" + ex);
        }

        bind(TwitterSearch.class).toProvider(new Provider<TwitterSearch>() {

            @Override
            public TwitterSearch get() {
                // avoid exception in this getter: do not call twitter.verify which can fail if twitter down etc
                return createTwitterSearch().setConsumer(
                        cred.getConsumerKey(), cred.getConsumerSecret()).
                        setTwitter4JInstance(ts.getTwitter4JInstance());
            }
        });
    }
View Full Code Here

Examples of de.jetwick.tw.Credits

    private TermCreateCommand command = new TermCreateCommand();
    private Random rand = new Random();

    public void init() {
        Configuration cfg = new Configuration();
        Credits credits = cfg.getJetwotCredits();
        Module module = new DefaultModule();
        Injector injector = Guice.createInjector(module);
        tweetSearch = injector.getInstance(ElasticTweetSearch.class);
        tw4j = new TwitterSearch().setConsumer(credits.getConsumerKey(), credits.getConsumerSecret());
        tw4j.initTwitter4JInstance(credits.getToken(), credits.getTokenSecret(), true);

        try {
            for (JTweet tw : tw4j.getTweets(tw4j.getUser(), new ArrayList<JUser>(), 20)) {
                command.calcTermsWithoutNoise(tw);
                addToCaches(tw);
View Full Code Here

Examples of oop13.space.views.Credits

  }


  @Override
  public void seeCreditsCmd() {
    Credits credits = new Credits();
    CreditsController creditsController = new CreditsController(this.mainFrame);
    creditsController.setView(credits);
    this.mainFrame.replacePanel(credits);
  }
View Full Code Here

Examples of org.fenixedu.academic.domain.studentCurriculum.Credits

            if (dismissals != null) {
                for (SelectedCurricularCourse selectedCurricularCourse : dismissals) {
                    noEnrolCurricularCourse.add(selectedCurricularCourse.getCurricularCourse());
                }
            }
            return new Credits(this, courseGroup, enrolments, noEnrolCurricularCourse, givenCredits, executionSemester);
        } else if (curriculumGroup != null) {
            return new Credits(this, curriculumGroup, enrolments, givenCredits, executionSemester);
        } else {
            return new Credits(this, dismissals, enrolments, executionSemester);
        }
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.studentCurriculum.Credits

            dismissal.setUsedInSeparationCycle(true);
            return;
        }

        dismissal.setUsedInSeparationCycle(true);
        final Credits credits = dismissal.getCredits();

        final Credits newCredits;
        if (credits.isTemporary()) {
            newCredits = new TemporarySubstitution();

        } else if (credits.isSubstitution()) {
            newCredits = new Substitution();

        } else if (credits.isEquivalence()) {
            final Equivalence equivalence = (Equivalence) credits;
            final Equivalence newEquivalence = new Equivalence();
            newEquivalence.setGrade(equivalence.getGrade());
            newCredits = newEquivalence;

        } else {
            newCredits = new Credits();
        }

        newCredits.setStudentCurricularPlan(parent.getStudentCurricularPlan());
        newCredits.setExecutionPeriod(getExecutionPeriod());
        newCredits.setGivenCredits(credits.getGivenCredits());

        for (final IEnrolment enrolment : credits.getIEnrolments()) {
            EnrolmentWrapper.create(newCredits, enrolment);
        }
View Full Code Here

Examples of org.fenixedu.academic.domain.studentCurriculum.Credits

public class DeleteCredits {

    @Atomic
    public static void run(StudentCurricularPlan studentCurricularPlan, String[] creditsIDs) throws FenixServiceException {
        for (String creditsID : creditsIDs) {
            Credits credits = getCreditsByID(studentCurricularPlan, creditsID);
            if (credits == null) {
                throw new FenixServiceException();
            }
            credits.delete();
        }
    }
View Full Code Here

Examples of org.moxieapps.gwt.highcharts.client.Credits

                .setType(COLUMN)
                .setChartTitleText(null)
                .setBackgroundColor(BACKGROUND_COLOR)
                .setLegend(new Legend().setEnabled(false))
                .setExporting(new Exporting().setEnabled(false))
                .setCredits(new Credits().setEnabled(false))
                .setSeriesPlotOptions(
                        new SeriesPlotOptions()
                                .setShadow(false)
                                .setColor(COLOR)
                                .setCursor(cursor)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.