本文整理汇总了Java中org.pentaho.di.repository.Repository.getSecurityProvider方法的典型用法代码示例。如果您正苦于以下问题:Java Repository.getSecurityProvider方法的具体用法?Java Repository.getSecurityProvider怎么用?Java Repository.getSecurityProvider使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.repository.Repository
的用法示例。
在下文中一共展示了Repository.getSecurityProvider方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: RepositoryExplorerDialog
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
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;
}
示例2: getVersionComment
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public static String getVersionComment(Shell shell, Repository repository, String operationDescription) {
if (repository==null) {
return null;
}
RepositorySecurityProvider provider = repository.getSecurityProvider();
if (provider.allowsVersionComments()) {
String explanation = "Enter a comment ";
if (provider.isVersionCommentMandatory()) {
explanation+="(Mandatory) : ";
} else {
explanation+=": ";
}
String versionComment = Const.VERSION_COMMENT_EDIT_VERSION+" of ["+operationDescription+"]";
EnterStringDialog dialog = new EnterStringDialog(shell, versionComment, "Enter comment", explanation);
dialog.setManditory(provider.isVersionCommentMandatory());
versionComment = dialog.open();
return versionComment;
}
return null;
}