public void widgetSelected( SelectionEvent arg0 ) { try { selectWSDLOperation( wOperation.getText() ); } catch ( KettleException e ) { // TODO Auto-generated catch block e.printStackTrace(); } }
private SlaveServer findSlaveServer( ObjectId slaveServerId ) { List<SlaveServer> slaveServers; try { slaveServers = repo.getSlaveServers(); for ( SlaveServer slaveServer : slaveServers ) { if ( slaveServer.getObjectId().equals( slaveServerId ) ) { return slaveServer; } } } catch ( KettleException e ) { // TODO Auto-generated catch block e.printStackTrace(); } return null; }
private IRole createRoleInfo( String role ) { IRole roleInfo = null; try { roleInfo = rsm.constructRole(); } catch ( KettleException e ) { // TODO Auto-generated catch block e.printStackTrace(); } roleInfo.setName( role ); return roleInfo; } }
private IUser createUserInfo( String user ) { IUser userInfo = null; try { userInfo = this.rsm.constructUser(); userInfo.setName( user ); } catch ( KettleException e ) { // TODO Auto-generated catch block e.printStackTrace(); } return userInfo; }
public boolean allowsVersionComments( String fullPath ) { FileVersioningConfiguration versioningConfiguration; try { versioningConfiguration = callVersioningService( fullPath ); } catch ( KettleException e ) { e.printStackTrace(); return false; } return versioningConfiguration.isVersionCommentEnabled(); }
@Override public void handleEvent( Event event ) { try { event.doit = Spoon.getInstance().quitFile( false ); } catch ( KettleException e ) { e.printStackTrace(); } }
@Override public boolean isVersioningEnabled( String fullPath ) { FileVersioningConfiguration versioningConfiguration; try { versioningConfiguration = callVersioningService( fullPath ); } catch ( KettleException e ) { e.printStackTrace(); return false; } return versioningConfiguration.isVersioningEnabled(); }
public static IRole convertFromNonPentahoRole( String role, IRoleSupportSecurityManager rsm ) { IRole roleInfo = null; try { roleInfo = rsm.constructRole(); roleInfo.setName( role ); } catch ( KettleException e ) { // TODO Auto-generated catch block e.printStackTrace(); } return roleInfo; }
public static IUser convertFromNonPentahoUser( String user, IRoleSupportSecurityManager rsm ) { IUser userInfo = null; try { userInfo = rsm.constructUser(); userInfo.setLogin( user ); userInfo.setName( user ); } catch ( KettleException e ) { // TODO Auto-generated catch block e.printStackTrace(); } return userInfo; }
public RepositoryDirectory loadFiles( String path ) { RepositoryDirectoryInterface repositoryDirectoryInterface = findDirectory( path ); RepositoryDirectory repositoryDirectory = RepositoryDirectory.build( null, repositoryDirectoryInterface ); try { populateFiles( repositoryDirectory, repositoryDirectoryInterface, FILTER ); } catch ( KettleException ke ) { ke.printStackTrace(); } return repositoryDirectory; }
private List<RepositoryElementMetaInterface> getRepositoryElements( RepositoryDirectoryInterface repositoryDirectoryInterface ) { List<RepositoryElementMetaInterface> elements = repositoryDirectoryInterface.getRepositoryObjects(); if ( elements == null ) { try { return getRepository().getJobAndTransformationObjects( repositoryDirectoryInterface.getObjectId(), false ); } catch ( KettleException ke ) { ke.printStackTrace(); } } else { return elements; } return Collections.emptyList(); }
private static Set<IRole> convertToSetFromProxyPentahoRoles( ProxyPentahoRole[] roles, IRoleSupportSecurityManager rsm ) { Set<IRole> roleSet = new HashSet<IRole>(); for ( ProxyPentahoRole role : roles ) { IRole roleInfo = null; try { roleInfo = rsm.constructRole(); } catch ( KettleException e ) { // TODO Auto-generated catch block e.printStackTrace(); } roleInfo.setDescription( role.getDescription() ); roleInfo.setName( role.getName() ); roleSet.add( roleInfo ); } return roleSet; }
public RepositoryDirectory loadFilesAndFolders( String path ) { RepositoryDirectoryInterface repositoryDirectoryInterface = findDirectory( path ); RepositoryDirectory repositoryDirectory = RepositoryDirectory.build( null, repositoryDirectoryInterface ); populateFolders( repositoryDirectory, repositoryDirectoryInterface ); try { populateFiles( repositoryDirectory, repositoryDirectoryInterface, FILTER ); } catch ( KettleException ke ) { ke.printStackTrace(); } return repositoryDirectory; }
private IRole createRoleInfo( ProxyPentahoRole role ) { IRole roleInfo = null; try { roleInfo = rsm.constructRole(); } catch ( KettleException e ) { // TODO Auto-generated catch block e.printStackTrace(); } roleInfo.setDescription( role.getDescription() ); roleInfo.setName( role.getName() ); return roleInfo; }
protected void savePartitionSchema( final RepositoryElementInterface element, final String versionComment, Calendar versionDate ) { try { // Even if the object id is null, we still have to check if the element is not present in the PUR // For example, if we import data from an XML file and there is a element with the same name in it. // if ( element.getObjectId() == null ) { element.setObjectId( getPartitionSchemaID( element.getName() ) ); } saveRepositoryElement( element, versionComment, partitionSchemaTransformer, getPartitionSchemaParentFolderId() ); } catch ( KettleException ke ) { ke.printStackTrace(); } }
protected void saveSlaveServer( final RepositoryElementInterface element, final String versionComment, Calendar versionDate ) throws KettleException { try { // Even if the object id is null, we still have to check if the element is not present in the PUR // For example, if we import data from an XML file and there is a element with the same name in it. // if ( element.getObjectId() == null ) { element.setObjectId( getSlaveID( element.getName() ) ); } saveRepositoryElement( element, versionComment, slaveTransformer, getSlaveServerParentFolderId() ); } catch ( KettleException ke ) { ke.printStackTrace(); } }
protected void saveClusterSchema( final RepositoryElementInterface element, final String versionComment, Calendar versionDate ) { try { // Even if the object id is null, we still have to check if the element is not present in the PUR // For example, if we import data from an XML file and there is a element with the same name in it. // if ( element.getObjectId() == null ) { element.setObjectId( getClusterID( element.getName() ) ); } saveRepositoryElement( element, versionComment, clusterTransformer, getClusterSchemaParentFolderId() ); } catch ( KettleException ke ) { ke.printStackTrace(); } }
public IRole getRole( IRoleSupportSecurityManager rsm ) { IRole roleInfo = null; try { roleInfo = rsm.constructRole(); } catch ( KettleException e ) { // TODO Auto-generated catch block e.printStackTrace(); } roleInfo.setDescription( description ); roleInfo.setName( name ); for ( IUIUser user : getAssignedUsers() ) { roleInfo.addUser( user.getUserInfo() ); } return roleInfo; }
public static IRole convertFromProxyPentahoRole( ProxyPentahoRole role, List<UserToRoleAssignment> assignments, IRoleSupportSecurityManager rsm ) { IRole roleInfo = null; try { roleInfo = rsm.constructRole(); roleInfo.setDescription( role.getDescription() ); roleInfo.setName( role.getName() ); roleInfo.setUsers( getUsersForRole( role.getName(), assignments, rsm ) ); } catch ( KettleException e ) { // TODO Auto-generated catch block e.printStackTrace(); } return roleInfo; }
private IUser createUserInfo( ProxyPentahoUser user ) { IUser userInfo = null; try { userInfo = this.rsm.constructUser(); userInfo.setDescription( user.getDescription() ); userInfo.setLogin( user.getName() ); userInfo.setName( user.getName() ); userInfo.setPassword( user.getPassword() ); } catch ( KettleException e ) { // TODO Auto-generated catch block e.printStackTrace(); } return userInfo; }