當前位置: 首頁>>代碼示例>>Java>>正文


Java Repository.getSecurityProvider方法代碼示例

本文整理匯總了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;
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:23,代碼來源:RepositoryExplorerDialog.java

示例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;
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:27,代碼來源:RepositorySecurityUI.java


注:本文中的org.pentaho.di.repository.Repository.getSecurityProvider方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。