Examples of Application


Examples of com.multysite.entity.admin.Application

      String siteDescription = req.getParameter("siteDescription");
      String siteKeyword = req.getParameter("siteKeyword");
      if (!NamespaceManager.get().equals(Setting.getGeneralNamespace())) {
        User user = UserServiceFactory.getUserService()
            .getCurrentUser();
        Application app = ApplicationModel.getById(NamespaceManager
            .get());
        if (app != null && user != null
            && user.getEmail().equals(app.getUserEmail())) {
          NamespaceManager.set(app.getId());
          ApplicationConfig config = ApplicationConfigModel.getById(
              NamespaceManager.get(), NamespaceManager.get());         
          config.setTitle(siteTitle);
          config.setDescription(siteDescription);
          config.setKeyword(siteKeyword);
View Full Code Here

Examples of com.nabalive.application.core.Application

    @Scheduled(cron = "0 0 * * * *")
    public void clock() {
        logger.debug("clock trigger");

        Application application = checkNotNull(applicationManager.getApplication(CLOCK_APIKEY)); // clock

        Query<Nabaztag> query = nabaztagDAO.createQuery().filter("applicationConfigList.applicationStoreApikey", CLOCK_APIKEY);
        Iterator<Nabaztag> iterator = nabaztagDAO.find(query).iterator();
        while (iterator.hasNext()) {
            Nabaztag nabaztag = iterator.next();
            Status status = connectionManager.get(nabaztag.getMacAddress());
            if (status != null && !status.isAsleep()) {
                try {
                    application.onStartup(nabaztag, findConfig(CLOCK_APIKEY, nabaztag.getApplicationConfigList()));
                } catch (Exception e) {
                    logger.debug("cannot send message", e);
                }
            }
        }
View Full Code Here

Examples of com.neptuny.xgrapher.cli.controller.Application

      LookAndFeelAddons.setAddon(WindowsLookAndFeelAddons.class);
    } catch (Exception e) {
      // FIXME: handle exception and notify user
    }

    final Application app = new Application(
                        getParameter(args, "--mapping"),
                        getParameter(args, "--loader"),
                        getParameter(args, "--renderer"));

    SwingUtilities.invokeLater(new Runnable() {
View Full Code Here

Examples of com.netflix.discovery.shared.Application

    public Supplier<List<Host>> getSupplier(final String clusterName) {
        return new Supplier<List<Host>>() {

            @Override
            public List<Host> get() {
                Application app = eurekaClient.getApplication(clusterName.toUpperCase());
                List<Host> hosts = Lists.newArrayList();
                if (app == null) {
                    LOG.warn("Cluster '{}' not found in eureka", new Object[]{clusterName});
                }
                else {
                    List<InstanceInfo> ins = app.getInstances();
                    if (ins != null && !ins.isEmpty()) {
                        hosts = Lists.newArrayList(Collections2.transform(
                                        Collections2.filter(ins, new Predicate<InstanceInfo>() {
                                            @Override
                                            public boolean apply(InstanceInfo input) {
View Full Code Here

Examples of com.netflix.genie.common.model.Application

        }

        // save the command name, application id and application name
        this.jobService.setCommandInfoForJob(this.job.getId(), command.getId(), command.getName());

        final Application application = command.getApplication();
        if (application != null) {
            this.jobService.setApplicationInfoForJob(this.job.getId(), application.getId(), application.getName());
        }

        // Refresh the job in memory to get the changes
        this.job = this.jobService.getJob(this.job.getId());
View Full Code Here

Examples of com.ponysdk.core.Application

    @Before
    public void beforeTest() {
        log.info("Running #" + name.getMethodName());

        final Application application = new Application("test", "Test", new EmptySession(), new ApplicationManagerOption());
        final UIContext uiContext = new UIContext(application);
        UIContext.setCurrent(uiContext);
        txn = Txn.get();
        txn.begin(new EmptyTxnContext());
        PPusher.initialize();
View Full Code Here

Examples of com.psddev.dari.db.Application

                    tools.put(entry.getKey(), getToolByClass((Class<Tool>) objectClass));
                }
            }

            if (!tools.containsKey("")) {
                Application app = Application.Static.getMain();
                if (app instanceof Tool) {
                    tools.put("", (Tool) app);
                }
            }
View Full Code Here

Examples of com.skype.Application

import com.skype.StreamAdapter;

public final class Ap2ApAPITestServer {
    public static void main(String[] args) throws Exception {
        Skype.setDebug(true);
        final Application application = Skype.addApplication(Ap2ApAPITest.APPLICATION_NAME);
        final Object lock = new Object();
        application.addApplicationListener(new ApplicationAdapter() {
            public void connected(final Stream stream) throws SkypeException {
                stream.addStreamListener(new StreamAdapter() {
                    @Override
                    public void textReceived(String text) throws SkypeException {
                        try {
                            if ("disconnect".equals(text)) {
                                stream.disconnect();
                                return;
                            }
                            stream.write(text);
                        } catch (SkypeException e) {
                            synchronized (lock) {
                                lock.notify();
                            }
                            System.err.println("couldn't respond to " + stream.getFriend().getId() + " text");
                            e.printStackTrace();
                        }
                    }

                    @Override
                    public void datagramReceived(String datagram) throws SkypeException {
                        try {
                            stream.send(datagram);
                        } catch (SkypeException e) {
                            synchronized (lock) {
                                lock.notify();
                            }
                            System.err.println("couldn't respond to " + stream.getFriend().getId() + " datagram");
                            e.printStackTrace();
                        }
                    }
                });
            }

            @Override
            public void disconnected(Stream stream) throws SkypeException {
                synchronized (lock) {
                    lock.notify();
                }
            }
        });
        synchronized (lock) {
            try {
                lock.wait();
            } catch (InterruptedException e) {
            }
        }
        application.finish();
    }
View Full Code Here

Examples of com.sparc.knappsack.components.entities.Application

    @RequestMapping(value = "/manager/addVersion/{parentId}", method = RequestMethod.GET)
    public String addApplicationVersion(final HttpServletRequest request, Model model, @PathVariable Long parentId) {

        checkRequiredEntity(applicationService, parentId);

        Application application = applicationService.get(parentId);

        Group group = application.getOwnedGroup();

        model.addAttribute("parentApplicationId", application.getId());
        model.addAttribute("parentApplicationName", application.getName());

        if (!model.containsAttribute("version")) {
            ApplicationVersionForm version = new ApplicationVersionForm();
            version.setParentId(parentId);
            version.setEditing(false);

            model.addAttribute("version", version);
        }

        model.addAttribute("currentGuestGroupIds", new ArrayList<Group>());
        List<Group> groups = new ArrayList<Group>(group.getOrganization().getGroups());
        groups.remove(group);
        model.addAttribute("groups", groups);
        model.addAttribute("isEdit", false);

        // Create a List of all KeyVaultEntries which are available for the given application.
        List<KeyVaultEntryModel> keyVaultEntryModels = new ArrayList<KeyVaultEntryModel>();
        for (KeyVaultEntry keyVaultEntry : keyVaultEntryService.getAllForDomainAndApplicationType(group, application.getApplicationType())) {
            KeyVaultEntryModel keyVaultEntryModel = keyVaultEntryService.convertToModel(keyVaultEntry);
            if (keyVaultEntry != null) {
                keyVaultEntryModels.add(keyVaultEntryModel);
            }
        }
View Full Code Here

Examples of com.splunk.Application

import com.splunk.Entity;

class AppNode extends EntityNode {
    public AppNode(Entity value) {
        super(value);
        Application app = (Application)value;
        String displayName = app.getLabel();
        if (displayName == null) displayName = app.getName();
        setDisplayName(displayName);
    }
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.