Examples of RepositoryService


Examples of com.bleujin.framework.db.procedure.RepositoryService

    public String getDBType() {
        return dBName;
    }

    public RepositoryService getRepositoryService() {
        RepositoryService result ;
        if (dBName.equals(DBType.OracleDBName)) return RepositoryService.ORACLE;
        else if (dBName.equals(DBType.MSSQLDBName)) return RepositoryService.MSSQL ;
        else
            throw new IllegalArgumentException("not supported db type") ;
    }
View Full Code Here

Examples of com.caucho.env.repository.RepositoryService

  protected void initEnd()
  {
    super.initEnd();
   
    if (isAllowRepository()) {
      RepositoryService repositoryService = RepositoryService.getCurrent();
      _repository = repositoryService.getRepository();
      _repository.addListener(getId(), this);
      _repositorySpi = repositoryService.getRepositorySpi();
    }
     
    DeployControllerService deployService = DeployControllerService.getCurrent();

    deployService.addTag(getId());
View Full Code Here

Examples of com.cloudbees.sdk.maven.RepositoryService

                return Launcher.getLocalRepository();
            }

            @Override
            protected DependencyResult forceResolve(GAV gav) throws DependencyResolutionException {
                RepositoryService rs = getRepositoryService();
                return rs.resolveDependencies(gav);
            }

            @Override
            protected File resolveArtifact(Artifact a) throws ArtifactResolutionException {
                return getRepositoryService().resolveArtifact(a).getArtifact().getFile();
View Full Code Here

Examples of com.github.api.v2.services.RepositoryService

   * @throws Exception
   *             the exception
   */
  public static void main(String[] args) throws Exception {
    GitHubServiceFactory factory = GitHubServiceFactory.newInstance();
    RepositoryService service = factory.createRepositoryService();
    List<Repository> repositories = service.searchRepositories("hadoop");
    for (Repository repository : repositories) {
      printResult(repository);
    }
    Map<Language, Long> breakDown = service.getLanguageBreakdown("facebook", "tornado");
    System.out.println(breakDown);
    ZipInputStream zip = service.getRepositoryArchive("nabeelmukhtar", "github-java-sdk", Repository.MASTER);
    ZipEntry entry = null;
    while ((entry = zip.getNextEntry()) != null) {
      System.out.println(entry.getName());
    }
  }
View Full Code Here

Examples of org.activiti.engine.RepositoryService

public class Bmpn2Img {

  public static void main(String[] args) {
    ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
    RuntimeService runtimeService = processEngine.getRuntimeService();
    RepositoryService repositoryService = processEngine.getRepositoryService();

    TaskService taskService = processEngine.getTaskService();
    ManagementService managementService = processEngine.getManagementService();
    IdentityService identityService = processEngine.getIdentityService();
    HistoryService historyService = processEngine.getHistoryService();
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.impl.jaxb.RepositoryService

            // get WSDL URL
            URL wsdlUrl = new URL((String) session.get(serviceKey));

            // build the requested service object
            if (SessionParameter.WEBSERVICES_REPOSITORY_SERVICE.equals(serviceKey)) {
                serviceObject = new RepositoryService(wsdlUrl, new QName(CMIS_NAMESPACE, REPOSITORY_SERVICE));
            } else if (SessionParameter.WEBSERVICES_NAVIGATION_SERVICE.equals(serviceKey)) {
                serviceObject = new NavigationService(wsdlUrl, new QName(CMIS_NAMESPACE, NAVIGATION_SERVICE));
            } else if (SessionParameter.WEBSERVICES_OBJECT_SERVICE.equals(serviceKey)) {
                serviceObject = new ObjectService(wsdlUrl, new QName(CMIS_NAMESPACE, OBJECT_SERVICE));
            } else if (SessionParameter.WEBSERVICES_VERSIONING_SERVICE.equals(serviceKey)) {
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.spi.RepositoryService

        return (Folder) rootFolder;
    }

    public ItemIterable<ObjectType> getTypeChildren(final String typeId, final boolean includePropertyDefinitions) {
        final RepositoryService repositoryService = getBinding().getRepositoryService();
        final ObjectFactory objectFactory = this.getObjectFactory();

        return new CollectionIterable<ObjectType>(new AbstractPageFetcher<ObjectType>(this.getDefaultContext()
                .getMaxItemsPerPage()) {

            @Override
            protected AbstractPageFetcher.Page<ObjectType> fetchPage(long skipCount) {

                // fetch the data
                TypeDefinitionList tdl = repositoryService.getTypeChildren(SessionImpl.this.getRepositoryId(), typeId,
                        includePropertyDefinitions, BigInteger.valueOf(this.maxNumItems),
                        BigInteger.valueOf(skipCount), null);

                // convert type definitions
                List<ObjectType> page = new ArrayList<ObjectType>(tdl.getList().size());
View Full Code Here

Examples of org.apache.continuum.repository.RepositoryService

    public void testRemoveProjectGroupWithRepository()
        throws Exception
    {
        Continuum continuum = getContinuum();
        RepositoryService service = (RepositoryService) lookup( RepositoryService.ROLE );

        LocalRepository repository = new LocalRepository();
        repository.setName( "defaultRepo" );
        repository.setLocation( getTestFile( "target/default-repository" ).getAbsolutePath() );
        repository = service.addLocalRepository( repository );

        ProjectGroup group = new ProjectGroup();
        group.setGroupId( "testGroup" );
        group.setName( "testGroup" );
        group.setLocalRepository( repository );
        continuum.addProjectGroup( group );

        ProjectGroup retrievedDefaultProjectGroup = continuum.getProjectGroupByGroupId( "testGroup" );
        assertNotNull( retrievedDefaultProjectGroup.getLocalRepository() );

        continuum.removeProjectGroup( retrievedDefaultProjectGroup.getId() );

        try
        {
            continuum.getProjectGroupByGroupId( "testGroup" );
            fail( "project group was not deleted" );
        }
        catch ( Exception e )
        {
            // should fail. do nothing.
        }

        LocalRepository retrievedRepository = service.getLocalRepository( repository.getId() );
        assertNotNull( retrievedRepository );
        assertEquals( repository, retrievedRepository );
    }
View Full Code Here

Examples of org.apache.continuum.repository.RepositoryService

    public void testRemoveProjectGroupWithRepository()
        throws Exception
    {
        Continuum continuum = getContinuum();
        RepositoryService service = (RepositoryService) lookup( RepositoryService.ROLE );

        LocalRepository repository = new LocalRepository();
        repository.setName( "defaultRepo" );
        repository.setLocation( getTestFile( "target/default-repository" ).getAbsolutePath() );
        repository = service.addLocalRepository( repository );

        ProjectGroup group = new ProjectGroup();
        group.setGroupId( "testGroup" );
        group.setName( "testGroup" );
        group.setLocalRepository( repository );
        continuum.addProjectGroup( group );

        ProjectGroup retrievedDefaultProjectGroup = continuum.getProjectGroupByGroupId( "testGroup" );
        assertNotNull( retrievedDefaultProjectGroup.getLocalRepository() );

        continuum.removeProjectGroup( retrievedDefaultProjectGroup.getId() );

        try
        {
            continuum.getProjectGroupByGroupId( "testGroup" );
            fail( "project group was not deleted" );
        }
        catch ( Exception e )
        {
            // should fail. do nothing.
        }

        LocalRepository retrievedRepository = service.getLocalRepository( repository.getId() );
        assertNotNull( retrievedRepository );
        assertEquals( repository, retrievedRepository );
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.api.RepositoryService

     */
    @Override
    public Session login(Credentials credentials, String workspaceName) throws RepositoryException {
        // TODO: needs complete refactoring

        RepositoryService service = context.getInstance(RepositoryService.class);
        try {
            Connection connection = service.login(credentials, workspaceName);
            return new SessionImpl(context, connection);
        } catch (LoginException e) {
            throw new javax.jcr.LoginException(e.getMessage());
        }

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.