本文整理汇总了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());
}
示例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());
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
示例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);
}