本文整理匯總了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;
}