Examples of Site


Examples of net.sourceforge.fullsync.fs.Site

      else {
        throw new URISyntaxException(url.toString(), "Not a valid uri or unknown scheme");
      }
    }

    Site s = fs.createConnection(desc);

    String bufferStrategy = desc.getParameter("bufferStrategy");

    if ((null != bufferStrategy) && !"".equals(bufferStrategy)) {
      s = resolveBuffering(s, bufferStrategy);
View Full Code Here

Examples of org.apache.maven.model.Site

    @Override
    protected void mergeDistributionManagement_Site( DistributionManagement target, DistributionManagement source,
                                                     boolean sourceDominant, Map<Object, Object> context )
    {
        Site src = source.getSite();
        if ( src != null )
        {
            Site tgt = target.getSite();
            if ( sourceDominant || tgt == null )
            {
                tgt = new Site();
                tgt.setLocation( "", src.getLocation( "" ) );
                target.setSite( tgt );
                mergeSite( tgt, src, sourceDominant, context );
            }
        }
    }
View Full Code Here

Examples of org.apache.maven.model.Site

        if ( distributionManagement == null )
        {
            throw new MojoExecutionException( "Missing distribution management information in the project" );
        }

        Site site = distributionManagement.getSite();

        if ( site == null )
        {
            throw new MojoExecutionException(
                "Missing site information in the distribution management element in the project.." );
        }

        String url = site.getUrl();

        String id = site.getId();

        if ( url == null )
        {
            throw new MojoExecutionException( "The URL to the site is missing in the project descriptor." );
        }
View Full Code Here

Examples of org.apache.maven.model.Site

            }

            return hierarchy;
        }

        Site site = project.getDistributionManagement().getSite();
        if ( site == null )
        {
            if ( !ignoreMissingSiteUrl )
            {
                throw new MojoFailureException(
                    "Missing site information in the distribution management element in the project: '"
                    + project.getName() + "'." );
            }

            return null;
        }

        if ( StringUtils.isEmpty( site.getUrl() ) )
        {
            if ( !ignoreMissingSiteUrl )
            {
                throw new MojoFailureException( "The URL in the site is missing in the project descriptor." );
            }

            return null;
        }

        Repository repository = new Repository( site.getId(), site.getUrl() );
        StringBuffer hierarchy = new StringBuffer( 1024 );
        hierarchy.append( repository.getHost() );
        if ( !StringUtils.isEmpty( repository.getBasedir() ) )
        {
            if ( !repository.getBasedir().startsWith( "/" ) )
View Full Code Here

Examples of org.apache.ojb.odmg.shared.Site

    private void newSite(Implementation odmg, String name, int year, int semester) throws Exception
    {
        Transaction tx = null;
        tx = odmg.newTransaction();
        Site site = null;
        tx.begin();

        site = new Site();
        site.setName(name);
        site.setYear(new Integer(year));
        site.setSemester(new Integer(semester));

        tx.lock(site, Transaction.WRITE);
        tx.commit();
    }
View Full Code Here

Examples of org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Site

        OpenJPAEntityManager em =(OpenJPAEntityManager) currentEntityManager();
        boolean persistSuccess = true;
        try{
            startTx(em);
   
            Site s = new Site();
            s.setPartyId(pkey);
            s.setSiteName("San Jose");
            s.setSiteDescription("San Jose site");
            s.setStatus("2");
            s.setArchiveStatus("2");
            s.setCreateDate(new Date());
   
            em.persist(s);
   
            endTx(em);
        }catch(Exception e) {
View Full Code Here

Examples of org.apache.stanbol.entityhub.servicesapi.site.Site

     */
    protected Entity importEntity(Entity remoteEntity) throws YardException{
        if(remoteEntity == null){
            return null;
        }
        Site site = siteManager.getSite(remoteEntity.getSite());
        if(site == null){
            log.warn("Unable to import Entity {} because the ReferencedSite {} is currently not active -> return null",
                remoteEntity.getId(),remoteEntity.getSite());
            return null;
        }
View Full Code Here

Examples of org.broadleafcommerce.common.site.domain.Site

        }
       
        brc.getAdditionalProperties().putAll(entityExtensionManagers);
       
        if (brc.getSite() == null) {
            Site site = siteResolver.resolveSite(request);
            brc.setSite(site);
        }
        brc.setWebRequest(request);
        brc.setIgnoreSite(brc.getSite() == null);
        brc.setAdmin(true);
View Full Code Here

Examples of org.cast.cwm.data.Site

     
      SortedSet<User> userSet = new TreeSet<User>();
      userSet.add(user);
     
      // create a new site
      Site newSite = SiteService.get().newSite();
      newSite.setName("Site_" + user.getUsername()); // make this unique

      // create a new period
      Period newPeriod = SiteService.get().newPeriod();
      newPeriod.setSite(newSite);
      newPeriod.setName("Class_" + user.getUsername()); // make this unique
     
      // add the period to the user and the site
      SortedSet<Period> periodSet = new TreeSet<Period>();
      periodSet.add(newPeriod);
      user.getPeriods().add(newPeriod);
      newSite.getPeriods().add(newPeriod);     
     
      // a default student must be added to the new period
      User studentUser = UserService.get().newUser();
      studentUser.setRole(Role.STUDENT);
      studentUser.setFirstName("Student");
View Full Code Here

Examples of org.cast.cwm.data.Site

        }

        // Set default Period
        if (user != null && user.usesPeriods()) {
          session.setCurrentPeriodModel(new HibernateObjectModel<Period>(user.getPeriods().iterator().next()));
          Site currentSite = ISISession.get().getCurrentPeriodModel().getObject().getSite();
          IModel<Site> mCurrentSite = new Model<Site>(currentSite);
          session.setCurrentSiteModel(mCurrentSite);
        }       

        if (!continueToOriginalDestination()) {
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.