Java Code Examples for org.pentaho.di.repository.Repository#getSecurityProvider()
The following examples show how to use
org.pentaho.di.repository.Repository#getSecurityProvider() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RepositoryExplorerDialog.java From pentaho-kettle with Apache License 2.0 | 6 votes |
private RepositoryExplorerDialog( Shell par, int style, Repository rep, VariableSpace variableSpace ) { super( par, style ); this.props = PropsUI.getInstance(); this.rep = rep; this.log = rep.getLog(); this.variableSpace = variableSpace; sortColumn = 0; ascending = false; objectMap = new HashMap<String, RepositoryElementMetaInterface>(); repositoryMeta = rep.getRepositoryMeta(); capabilities = repositoryMeta.getRepositoryCapabilities(); securityProvider = rep.getSecurityProvider(); securityManager = rep.getSecurityManager(); readonly = securityProvider.isReadOnly(); includeDeleted = false; }
Example 2
Source File: RepositorySecurityUI.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public static String getVersionComment( Shell shell, Repository repository, String operationDescription, String fullPath, boolean forceEntry ) { //forceEntry is used to force the comment prompt when multiple files will be affected. It //removes a web service call per file. if ( repository == null ) { return null; } RepositorySecurityProvider provider = repository.getSecurityProvider(); if ( forceEntry || provider.allowsVersionComments( fullPath ) ) { String explanation = "Enter a comment "; if ( provider.isVersionCommentMandatory() ) { explanation += "(Mandatory) : "; } else { explanation += ": "; } String versionComment = "Checked in"; EnterStringDialog dialog = new EnterStringDialog( shell, versionComment, "Enter comment", explanation ); dialog.setManditory( provider.isVersionCommentMandatory() ); versionComment = dialog.open(); return versionComment; } return null; }