Examples of Template


Examples of ru.org.linux.site.Template

  public ModelAndView vote(
    ServletRequest request,
    @RequestParam(value="vote", required = false) int[] votes,
    @RequestParam("voteid") int voteid
  ) throws Exception {
    Template tmpl = Template.getTemplate(request);

    if (!tmpl.isSessionAuthorized()) {
      throw new AccessViolationException("Not authorized");
    }

    User user = tmpl.getCurrentUser();

    Poll poll = pollDao.getCurrentPoll();
    Topic msg = messageDao.getById(poll.getTopicId());

    if (voteid != poll.getId()) {
View Full Code Here

Examples of server.hibernate.Template

    public static void displayTemplates(List resultList){
        System.out.println("Name\t\t Status");
        for(Object o: resultList){
                //Actor actor = (Actor)o;
                //System.out.println(actor.getFirstName() + " " + actor.getLastName());
                Template template = (Template)o;
                System.out.println(template.getName() + "\t" + template.getStatus());
            }
    }
View Full Code Here

Examples of sg.edu.nus.comp.simTL.engine.interpreter.Template

    return templateResource;
  }
 
  public Template getTemplate() throws Exception {
    if(template==null){
      template = new Template(getTemplateAST());
    }
    return (Template)template;
  }
View Full Code Here

Examples of smilehouse.tools.template.Template

            String guiHtml;

            // Use template if the component provides one
            String templateStr = ((GUIConfigurationIF) component).getGUITemplate();
            if(templateStr != null) {
                Template template = Template.createTemplate(templateStr);
                guiContext.writeEditors(fields, template)
                template.write();
                guiHtml = template.toString();
            }
            // Else just print them...
            else {
                guiHtml = new String();
                for(Iterator i = fields.values().iterator(); i.hasNext();) {
View Full Code Here

Examples of webit.script.Template

*/
public class FunctionLoopOverflowTest {

    @Test
    public void test() throws ResourceNotFoundException, IOException {
        Template template;
        ParseException exception;
        //
        exception = null;
        template = EngineManager.getTemplate("/loopTests/loopOverflow1.wit");
        try {
            template.reload();
        } catch (ParseException e) {
            exception = e;
        }
        assertNotNull(exception);

        //
        exception = null;
        template = EngineManager.getTemplate("/loopTests/loopOverflow2.wit");
        try {
            template.reload();
        } catch (ParseException e) {
            exception = e;
        }
        assertNotNull(exception);

        //
        exception = null;
        template = EngineManager.getTemplate("/loopTests/loopOverflow3.wit");
        try {
            template.reload();
        } catch (ParseException e) {
            exception = e;
        }
        assertNotNull(exception);

View Full Code Here

Examples of yalp.templates.Template

        return source;
    }

    public Template loadTemplate(VirtualFile file) {
        for (YalpPlugin plugin : getEnabledPlugins()) {
            Template pluginProvided = plugin.loadTemplate(file);
            if (pluginProvided != null) {
                return pluginProvided;
            }
        }
        return null;
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.