当前位置: 首页>>代码示例>>Java>>正文


Java ProtectionGroup.setUpdateDate方法代码示例

本文整理汇总了Java中gov.nih.nci.security.authorization.domainobjects.ProtectionGroup.setUpdateDate方法的典型用法代码示例。如果您正苦于以下问题:Java ProtectionGroup.setUpdateDate方法的具体用法?Java ProtectionGroup.setUpdateDate怎么用?Java ProtectionGroup.setUpdateDate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在gov.nih.nci.security.authorization.domainobjects.ProtectionGroup的用法示例。


在下文中一共展示了ProtectionGroup.setUpdateDate方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: testCreateProtectionGroup

import gov.nih.nci.security.authorization.domainobjects.ProtectionGroup; //导入方法依赖的package包/类
private void testCreateProtectionGroup() throws CSTransactionException 
{
	
	byte tempFlag = 0;
	for (int x=0; x<NumberOfProtectionGroupsToTest; x++)
	{
		ProtectionGroup tempProtectionGroup = new ProtectionGroup();
		java.util.Date CurrentTime = new java.util.Date();

		tempProtectionGroup.setProtectionGroupName(ProtectionGroupStringArray[x][0]);
		tempProtectionGroup.setProtectionGroupDescription(ProtectionGroupStringArray[x][1]);
		tempProtectionGroup.setUpdateDate(CurrentTime);
		
		tempProtectionGroup.setLargeElementCountFlag(tempFlag);
		if (tempFlag == 1)
			tempFlag = 0;
		else
			tempFlag = 1;
		
		userProvisioningManager.createProtectionGroup(tempProtectionGroup);
	}
}
 
开发者ID:NCIP,项目名称:cagrid-general,代码行数:23,代码来源:UserProvisioningManagerTest.java

示例2: testModifyProtectionGroup

import gov.nih.nci.security.authorization.domainobjects.ProtectionGroup; //导入方法依赖的package包/类
private void testModifyProtectionGroup() throws CSTransactionException, CSObjectNotFoundException 
{
	byte tempFlag = 0;
	ProtectionGroup tempProtectionGroup = new ProtectionGroup();
	java.util.Date tempDate = new java.util.Date();
	
	tempProtectionGroup = userProvisioningManager.getProtectionGroupById("4");
	
	tempProtectionGroup.setProtectionGroupName(ProtectionGroupStringArray[3][0] + "Modified");
	tempProtectionGroup.setProtectionGroupDescription(ProtectionGroupStringArray[3][1] + "Modified");
	tempProtectionGroup.setUpdateDate(tempDate);	
	tempProtectionGroup.setLargeElementCountFlag(tempFlag);
	
	userProvisioningManager.modifyProtectionGroup(tempProtectionGroup);
	
	tempProtectionGroup = userProvisioningManager.getProtectionGroupById("4");
	assertEquals("\nModifyProtectionGroup did not modify the Group Name\n", ProtectionGroupStringArray[3][0] + "Modified", tempProtectionGroup.getProtectionGroupName());
	assertEquals("\nModifyProtectionGroup did not modify the Group Description\n", ProtectionGroupStringArray[3][1] + "Modified", tempProtectionGroup.getProtectionGroupDescription());
	assertEquals("\nModifyProtectionGroup did not modify the Large Element Count Flag\n", tempFlag, tempProtectionGroup.getLargeElementCountFlag());
	//assertEquals("\nModifyProtectionGroup did not modify the UpdateDate\n", tempDate, tempProtectionGroup.getUpdateDate());
}
 
开发者ID:NCIP,项目名称:cagrid-general,代码行数:22,代码来源:UserProvisioningManagerTest.java

示例3: testCreateProtectionGroup

import gov.nih.nci.security.authorization.domainobjects.ProtectionGroup; //导入方法依赖的package包/类
private void testCreateProtectionGroup() throws CSTransactionException
{
	byte tempFlag = 0;
	for (int x = 0; x < NumberOfProtectionGroupsToTest; x++)
	{
		ProtectionGroup tempProtectionGroup = new ProtectionGroup();
		java.util.Date CurrentTime = new java.util.Date();

		tempProtectionGroup.setProtectionGroupName(ProtectionGroupStringArray[x][0]);
		tempProtectionGroup.setProtectionGroupDescription(ProtectionGroupStringArray[x][1]);
		tempProtectionGroup.setUpdateDate(CurrentTime);

		tempProtectionGroup.setLargeElementCountFlag(tempFlag);
		if (tempFlag == 1)
			tempFlag = 0;
		else
			tempFlag = 1;

		userProvisioningManager.createProtectionGroup(tempProtectionGroup);
	}
}
 
开发者ID:NCIP,项目名称:cagrid-general,代码行数:22,代码来源:RegressionTest.java

示例4: testCreateProtectionGroup

import gov.nih.nci.security.authorization.domainobjects.ProtectionGroup; //导入方法依赖的package包/类
private static void testCreateProtectionGroup() throws CSTransactionException 
{
	
	byte tempFlag = 0;
	for (int x=0; x<NumberOfProtectionGroupsToTest; x++)
	{
		ProtectionGroup tempProtectionGroup = new ProtectionGroup();
		java.util.Date CurrentTime = new java.util.Date();

		tempProtectionGroup.setProtectionGroupName(ProtectionGroupStringArray[x][0]);
		tempProtectionGroup.setProtectionGroupDescription(ProtectionGroupStringArray[x][1]);
		tempProtectionGroup.setUpdateDate(CurrentTime);
		
		tempProtectionGroup.setLargeElementCountFlag(tempFlag);
		if (tempFlag == 1)
			tempFlag = 0;
		else
			tempFlag = 1;
		
		userProvisioningManager.createProtectionGroup(tempProtectionGroup);
	}
}
 
开发者ID:NCIP,项目名称:cagrid-general,代码行数:23,代码来源:PrimeCSMData.java

示例5: xtestCreateProtectionGroup

import gov.nih.nci.security.authorization.domainobjects.ProtectionGroup; //导入方法依赖的package包/类
private void xtestCreateProtectionGroup() throws CSTransactionException 
{
	
	byte tempFlag = 0;
	for (int x=0; x<NumberOfProtectionGroupsToxtest; x++)
	{
		ProtectionGroup tempProtectionGroup = new ProtectionGroup();
		java.util.Date CurrentTime = new java.util.Date();

		tempProtectionGroup.setProtectionGroupName(ProtectionGroupStringArray[x][0]);
		tempProtectionGroup.setProtectionGroupDescription(ProtectionGroupStringArray[x][1]);
		tempProtectionGroup.setUpdateDate(CurrentTime);
		
		tempProtectionGroup.setLargeElementCountFlag(tempFlag);
		if (tempFlag == 1)
			tempFlag = 0;
		else
			tempFlag = 1;
		
		userProvisioningManager.createProtectionGroup(tempProtectionGroup);
	}
}
 
开发者ID:NCIP,项目名称:common-security-module,代码行数:23,代码来源:UserProvisioningManagerTest.java

示例6: xtestModifyProtectionGroup

import gov.nih.nci.security.authorization.domainobjects.ProtectionGroup; //导入方法依赖的package包/类
private void xtestModifyProtectionGroup() throws CSTransactionException, CSObjectNotFoundException 
{
	byte tempFlag = 0;
	ProtectionGroup tempProtectionGroup = new ProtectionGroup();
	java.util.Date tempDate = new java.util.Date();
	
	tempProtectionGroup = userProvisioningManager.getProtectionGroupById("4");
	
	tempProtectionGroup.setProtectionGroupName(ProtectionGroupStringArray[3][0] + "Modified");
	tempProtectionGroup.setProtectionGroupDescription(ProtectionGroupStringArray[3][1] + "Modified");
	tempProtectionGroup.setUpdateDate(tempDate);	
	tempProtectionGroup.setLargeElementCountFlag(tempFlag);
	
	userProvisioningManager.modifyProtectionGroup(tempProtectionGroup);
	
	tempProtectionGroup = userProvisioningManager.getProtectionGroupById("4");
	assertEquals("\nModifyProtectionGroup did not modify the Group Name\n", ProtectionGroupStringArray[3][0] + "Modified", tempProtectionGroup.getProtectionGroupName());
	assertEquals("\nModifyProtectionGroup did not modify the Group Description\n", ProtectionGroupStringArray[3][1] + "Modified", tempProtectionGroup.getProtectionGroupDescription());
	assertEquals("\nModifyProtectionGroup did not modify the Large Element Count Flag\n", tempFlag, tempProtectionGroup.getLargeElementCountFlag());
	//assertEquals("\nModifyProtectionGroup did not modify the UpdateDate\n", tempDate, tempProtectionGroup.getUpdateDate());
}
 
开发者ID:NCIP,项目名称:common-security-module,代码行数:22,代码来源:UserProvisioningManagerTest.java

示例7: testCreateProtectionGroup

import gov.nih.nci.security.authorization.domainobjects.ProtectionGroup; //导入方法依赖的package包/类
private static void testCreateProtectionGroup() throws CSTransactionException
{

	byte tempFlag = 0;
	for (int x=0; x<NumberOfProtectionGroupsToTest; x++)
	{
		ProtectionGroup tempProtectionGroup = new ProtectionGroup();
		java.util.Date CurrentTime = new java.util.Date();

		tempProtectionGroup.setProtectionGroupName(ProtectionGroupStringArray[x][0]);
		tempProtectionGroup.setProtectionGroupDescription(ProtectionGroupStringArray[x][1]);
		tempProtectionGroup.setUpdateDate(CurrentTime);

		tempProtectionGroup.setLargeElementCountFlag(tempFlag);
		if (tempFlag == 1)
			tempFlag = 0;
		else
			tempFlag = 1;

		userProvisioningManager.createProtectionGroup(tempProtectionGroup);
	}
}
 
开发者ID:NCIP,项目名称:common-security-module,代码行数:23,代码来源:PrimeCSMData.java

示例8: createProtectionGroup

import gov.nih.nci.security.authorization.domainobjects.ProtectionGroup; //导入方法依赖的package包/类
@SuppressWarnings("PMD.ExcessiveMethodLength")
private static ProtectionGroup createProtectionGroup(Protectable p, User csmUser) throws CSObjectNotFoundException,
        CSTransactionException {

    final ProtectionElement pe = new ProtectionElement();
    final Application application = getApplication();
    pe.setApplication(application);
    pe.setObjectId(p.getClass().getName());
    pe.setAttribute("id");
    pe.setValue(p.getId().toString());
    pe.setUpdateDate(new Date());
    authMgr.createProtectionElement(pe);

    final ProtectionGroup pg = new ProtectionGroup();
    pg.setApplication(application);
    pg.setProtectionElements(Collections.singleton(pe));
    pg.setProtectionGroupName("PE(" + pe.getProtectionElementId() + ") group");
    pg.setUpdateDate(new Date());
    authMgr.createProtectionGroup(pg);

    addOwner(pg, csmUser);
    assignSystemAdministratorAccess(pg);
    return pg;
}
 
开发者ID:NCIP,项目名称:caarray,代码行数:25,代码来源:SecurityUtils.java

示例9: createProtectionGroup

import gov.nih.nci.security.authorization.domainobjects.ProtectionGroup; //导入方法依赖的package包/类
/**
 * @param protectionGroup
 * 
 * @throws CSTransactionException
 * @see gov.nih.nci.security.UserProvisioningManager#createProtectionGroup(ProtectionGroup)
 */
public void createProtectionGroup(ProtectionGroup protectionGroup) throws CSTransactionException{
	protectionGroup.setApplication(authorizationDAO.getApplication());
	protectionGroup.setUpdateDate(new Date());
	authorizationDAO.createObject(protectionGroup);
	
	//authorizationDAO.createProtectionGroup(protectionGroup);

}
 
开发者ID:NCIP,项目名称:cagrid-general,代码行数:15,代码来源:UserProvisioningManagerImpl.java

示例10: createProtectionGroup

import gov.nih.nci.security.authorization.domainobjects.ProtectionGroup; //导入方法依赖的package包/类
/**
 * @param protectionGroup
 *
 * @throws CSTransactionException
 * @see gov.nih.nci.security.UserProvisioningManager#createProtectionGroup(ProtectionGroup)
 */
public void createProtectionGroup(ProtectionGroup protectionGroup) throws CSTransactionException{
	protectionGroup.setApplication(authorizationDAO.getApplication());
	protectionGroup.setUpdateDate(new Date());
	authorizationDAO.createObject(protectionGroup);

	//authorizationDAO.createProtectionGroup(protectionGroup);

}
 
开发者ID:NCIP,项目名称:common-security-module,代码行数:15,代码来源:AuthorizationManagerImpl.java

示例11: modifyProtectionGroup

import gov.nih.nci.security.authorization.domainobjects.ProtectionGroup; //导入方法依赖的package包/类
/**
 * @param protectionGroup
 * 
 * @throws CSTransactionException
 * @see gov.nih.nci.security.UserProvisioningManager#modifyProtectionGroup(ProtectionGroup)
 */
public void modifyProtectionGroup(ProtectionGroup protectionGroup)throws CSTransactionException{
	
	protectionGroup.setUpdateDate(new java.util.Date());
	authorizationDAO.modifyObject(protectionGroup);
	

}
 
开发者ID:NCIP,项目名称:cagrid-general,代码行数:14,代码来源:UserProvisioningManagerImpl.java

示例12: modifyProtectionGroup

import gov.nih.nci.security.authorization.domainobjects.ProtectionGroup; //导入方法依赖的package包/类
/**
 * @param protectionGroup
 *
 * @throws CSTransactionException
 * @see gov.nih.nci.security.UserProvisioningManager#modifyProtectionGroup(ProtectionGroup)
 */
public void modifyProtectionGroup(ProtectionGroup protectionGroup)throws CSTransactionException{

	protectionGroup.setUpdateDate(new java.util.Date());
	authorizationDAO.modifyObject(protectionGroup);


}
 
开发者ID:NCIP,项目名称:common-security-module,代码行数:14,代码来源:AuthorizationManagerImpl.java


注:本文中的gov.nih.nci.security.authorization.domainobjects.ProtectionGroup.setUpdateDate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。