Search in sources :

Example 1 with DimensionsObjectFactory

use of com.serena.dmclient.api.DimensionsObjectFactory in project Gargoyle by callakrsos.

the class DimList method listEntry.

/********************************
	 * 작성일 : 2016. 5. 9. 작성자 : KYJ
	 *
	 * 디멘전 트리 순회
	 *
	 * 2016-11-03 버그 수정
	 *
	 * @param path
	 * @param revision
	 * @param exceptionHandler
	 * @return
	 ********************************/
public void listEntry(String projSpec, String path, DimDirHandler handler) throws Exception {
    DimensionsConnection conn = null;
    try {
        conn = getConnection();
        DimensionsObjectFactory objectFactory = conn.getObjectFactory();
        Project project = objectFactory.getProject(projSpec);
        RepositoryFolder rootFoler = project.findRepositoryFolderByPath(path);
        listEntry(rootFoler, handler);
    } finally {
        manager.close(conn);
    }
}
Also used : Project(com.serena.dmclient.api.Project) RepositoryFolder(com.serena.dmclient.api.RepositoryFolder) DimensionsConnection(com.serena.dmclient.api.DimensionsConnection) DimensionsObjectFactory(com.serena.dmclient.api.DimensionsObjectFactory)

Example 2 with DimensionsObjectFactory

use of com.serena.dmclient.api.DimensionsObjectFactory in project Gargoyle by callakrsos.

the class AbstractDimmension method getProject.

public Project getProject(DimensionsConnection conn, String projSpec) {
    DimensionsObjectFactory fac = getDimmensionObjectFactory(conn);
    Project projObj = fac.getProject(projSpec);
    return projObj;
}
Also used : Project(com.serena.dmclient.api.Project) DimensionsObjectFactory(com.serena.dmclient.api.DimensionsObjectFactory)

Aggregations

DimensionsObjectFactory (com.serena.dmclient.api.DimensionsObjectFactory)2 Project (com.serena.dmclient.api.Project)2 DimensionsConnection (com.serena.dmclient.api.DimensionsConnection)1 RepositoryFolder (com.serena.dmclient.api.RepositoryFolder)1