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


Java Group.setUpdateDate方法代码示例

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


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

示例1: testModifyGroup

import gov.nih.nci.security.authorization.domainobjects.Group; //导入方法依赖的package包/类
private void testModifyGroup() throws CSTransactionException, CSObjectNotFoundException 
{
	Group tempGroup = new Group();
	java.util.Date CurrentTime = new java.util.Date();
	
	tempGroup = userProvisioningManager.getGroupById("4");
	
	tempGroup.setGroupName(GroupStringArray[3][0] + "Modified");
	tempGroup.setGroupDesc(GroupStringArray[3][1] + "Modified");
	tempGroup.setUpdateDate(CurrentTime);
	
	userProvisioningManager.modifyGroup(tempGroup);
	
	tempGroup = userProvisioningManager.getGroupById("4");
	
	assertEquals("\nmodifyGroup did not modify Group Name\n", GroupStringArray[3][0] + "Modified", tempGroup.getGroupName());
	assertEquals("\nmodifyGroup did not modify Group Description\n", GroupStringArray[3][1] + "Modified", tempGroup.getGroupDesc());
}
 
开发者ID:NCIP,项目名称:cagrid-general,代码行数:19,代码来源:UserProvisioningManagerTest.java

示例2: xtestModifyGroup

import gov.nih.nci.security.authorization.domainobjects.Group; //导入方法依赖的package包/类
private void xtestModifyGroup() throws CSTransactionException, CSObjectNotFoundException 
{
	Group tempGroup = new Group();
	java.util.Date CurrentTime = new java.util.Date();
	
	tempGroup = userProvisioningManager.getGroupById("4");
	
	tempGroup.setGroupName(GroupStringArray[3][0] + "Modified");
	tempGroup.setGroupDesc(GroupStringArray[3][1] + "Modified");
	tempGroup.setUpdateDate(CurrentTime);
	
	userProvisioningManager.modifyGroup(tempGroup);
	
	tempGroup = userProvisioningManager.getGroupById("4");
	
	assertEquals("\nmodifyGroup did not modify Group Name\n", GroupStringArray[3][0] + "Modified", tempGroup.getGroupName());
	assertEquals("\nmodifyGroup did not modify Group Description\n", GroupStringArray[3][1] + "Modified", tempGroup.getGroupDesc());
}
 
开发者ID:NCIP,项目名称:common-security-module,代码行数:19,代码来源:UserProvisioningManagerTest.java

示例3: createGroup

import gov.nih.nci.security.authorization.domainobjects.Group; //导入方法依赖的package包/类
/**
 * @param group
 * 
 * @throws CSTransactionException
 * @see gov.nih.nci.security.UserProvisioningManager#createGroup(Group)
 */
public void createGroup(Group group)throws CSTransactionException{
	group.setApplication(authorizationDAO.getApplication());
	group.setUpdateDate(new Date());
	authorizationDAO.createObject(group);
	//authorizationDAO.createGroup(group);
}
 
开发者ID:NCIP,项目名称:cagrid-general,代码行数:13,代码来源:UserProvisioningManagerImpl.java

示例4: testCreateGroup

import gov.nih.nci.security.authorization.domainobjects.Group; //导入方法依赖的package包/类
private void testCreateGroup() throws CSTransactionException 
{
	
	for (int x=0; x<NumberOfGroupsToTest; x++)
	{
		Group tempGroup = new Group();
		java.util.Date CurrentTime = new java.util.Date();
		tempGroup.setGroupName(GroupStringArray[x][0]);
		tempGroup.setGroupDesc(GroupStringArray[x][1]);
		tempGroup.setUpdateDate(CurrentTime);
		
		userProvisioningManager.createGroup(tempGroup);
	}

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

示例5: testCreateGroup

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

	for (int x = 0; x < NumberOfGroupsToTest; x++)
	{
		Group tempGroup = new Group();
		java.util.Date CurrentTime = new java.util.Date();
		tempGroup.setGroupName(GroupStringArray[x][0]);
		tempGroup.setGroupDesc(GroupStringArray[x][1]);
		tempGroup.setUpdateDate(CurrentTime);

		userProvisioningManager.createGroup(tempGroup);
	}

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

示例6: testCreateGroup

import gov.nih.nci.security.authorization.domainobjects.Group; //导入方法依赖的package包/类
private static void testCreateGroup() throws CSTransactionException 
{
	
	for (int x=0; x<NumberOfGroupsToTest; x++)
	{
		Group tempGroup = new Group();
		java.util.Date CurrentTime = new java.util.Date();
		tempGroup.setGroupName(GroupStringArray[x][0]);
		tempGroup.setGroupDesc(GroupStringArray[x][1]);
		tempGroup.setUpdateDate(CurrentTime);
		
		userProvisioningManager.createGroup(tempGroup);
	}

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

示例7: createGroup

import gov.nih.nci.security.authorization.domainobjects.Group; //导入方法依赖的package包/类
/**
 * @param group
 *
 * @throws CSTransactionException
 * @see gov.nih.nci.security.UserProvisioningManager#createGroup(Group)
 */
public void createGroup(Group group)throws CSTransactionException{
	group.setApplication(authorizationDAO.getApplication());
	group.setUpdateDate(new Date());
	authorizationDAO.createObject(group);
	//authorizationDAO.createGroup(group);
}
 
开发者ID:NCIP,项目名称:common-security-module,代码行数:13,代码来源:AuthorizationManagerImpl.java

示例8: xtestCreateGroup

import gov.nih.nci.security.authorization.domainobjects.Group; //导入方法依赖的package包/类
private void xtestCreateGroup() throws CSTransactionException 
{
	
	for (int x=0; x<NumberOfGroupsToxtest; x++)
	{
		Group tempGroup = new Group();
		java.util.Date CurrentTime = new java.util.Date();
		tempGroup.setGroupName(GroupStringArray[x][0]);
		tempGroup.setGroupDesc(GroupStringArray[x][1]);
		tempGroup.setUpdateDate(CurrentTime);
		
		userProvisioningManager.createGroup(tempGroup);
	}

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

示例9: testCreateGroup

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

	for (int x=0; x<NumberOfGroupsToTest; x++)
	{
		Group tempGroup = new Group();
		java.util.Date CurrentTime = new java.util.Date();
		tempGroup.setGroupName(GroupStringArray[x][0]);
		tempGroup.setGroupDesc(GroupStringArray[x][1]);
		tempGroup.setUpdateDate(CurrentTime);

		userProvisioningManager.createGroup(tempGroup);
	}

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

示例10: createGroup

import gov.nih.nci.security.authorization.domainobjects.Group; //导入方法依赖的package包/类
/**
 * create a group. This method is a partial replacement for
 * {@link AuthorizationManager#createGroup(gov.nih.nci.security.authorization.domainobjects.Group)} to ensure that
 * groups are loaded using the caArray (audited) Hibernate session. It does not perform some of the validations that
 * caArray already does. Does not demarcate transactions; should be called from a service layer.
 * 
 * @param group the CSM group to creat.
 * @throws CSTransactionException if a hibernate exception occures.
 */
public static void createGroup(Group group) throws CSTransactionException {
    try {
        group.setUpdateDate(new Date());
        group.setApplication(getApplication());
        final Session s = hibernateHelper.getCurrentSession();
        s.save(group);
    } catch (final HibernateException e) {
        throw new CSTransactionException(e);
    }
}
 
开发者ID:NCIP,项目名称:caarray,代码行数:20,代码来源:SecurityUtils.java

示例11: modifyGroup

import gov.nih.nci.security.authorization.domainobjects.Group; //导入方法依赖的package包/类
/**
 * @param group
 * 
 * @throws CSTransactionException
 * @see gov.nih.nci.security.UserProvisioningManager#modifyGroup(Group)
 */
public void modifyGroup(Group group)throws CSTransactionException{
	group.setUpdateDate(new java.util.Date());
	authorizationDAO.modifyObject(group);
}
 
开发者ID:NCIP,项目名称:cagrid-general,代码行数:11,代码来源:UserProvisioningManagerImpl.java

示例12: modifyGroup

import gov.nih.nci.security.authorization.domainobjects.Group; //导入方法依赖的package包/类
/**
 * @param group
 *
 * @throws CSTransactionException
 * @see gov.nih.nci.security.UserProvisioningManager#modifyGroup(Group)
 */
public void modifyGroup(Group group)throws CSTransactionException{
	group.setUpdateDate(new java.util.Date());
	authorizationDAO.modifyObject(group);
}
 
开发者ID:NCIP,项目名称:common-security-module,代码行数:11,代码来源:AuthorizationManagerImpl.java


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