本文整理汇总了Java中gov.nih.nci.security.authorization.domainobjects.ProtectionElement.setUpdateDate方法的典型用法代码示例。如果您正苦于以下问题:Java ProtectionElement.setUpdateDate方法的具体用法?Java ProtectionElement.setUpdateDate怎么用?Java ProtectionElement.setUpdateDate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gov.nih.nci.security.authorization.domainobjects.ProtectionElement
的用法示例。
在下文中一共展示了ProtectionElement.setUpdateDate方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testCreateProtectionElement
import gov.nih.nci.security.authorization.domainobjects.ProtectionElement; //导入方法依赖的package包/类
private void testCreateProtectionElement() throws CSTransactionException
{
for (int x=0; x<NumberOfProtectionElementsToTest; x++)
{
ProtectionElement tempProtectionElement = new ProtectionElement();
java.util.Date CurrentTime = new java.util.Date();
tempProtectionElement.setProtectionElementName(ProtectionElementStringArray[x][0]);
tempProtectionElement.setProtectionElementDescription(ProtectionElementStringArray[x][1]);
tempProtectionElement.setObjectId(ProtectionElementStringArray[x][2]);
tempProtectionElement.setAttribute(ProtectionElementStringArray[x][3]);
tempProtectionElement.setUpdateDate(CurrentTime);
userProvisioningManager.createProtectionElement(tempProtectionElement);
tempProtectionElement = null;
}
}
示例2: testModifyProtectionElement
import gov.nih.nci.security.authorization.domainobjects.ProtectionElement; //导入方法依赖的package包/类
private void testModifyProtectionElement() throws CSTransactionException, CSObjectNotFoundException
{
ProtectionElement tempProtectionElement = new ProtectionElement();
java.util.Date midnight_jan2_1970 = new java.util.Date(24L*60L*60L*1000L);
tempProtectionElement = userProvisioningManager.getProtectionElementById("4");
tempProtectionElement.setProtectionElementName(ProtectionElementStringArray[3][0] + "Modified");
tempProtectionElement.setProtectionElementDescription(ProtectionElementStringArray[3][1] + "Modified");
tempProtectionElement.setObjectId(ProtectionElementStringArray[3][2] + "Modified");
tempProtectionElement.setAttribute(ProtectionElementStringArray[3][3] + "Modified");
tempProtectionElement.setUpdateDate(midnight_jan2_1970); //TODO: Not updating the "Update Date"
userProvisioningManager.modifyProtectionElement(tempProtectionElement);
tempProtectionElement = userProvisioningManager.getProtectionElementById("4");
assertEquals("\nmodifyProtectionElement did not modify the Name\n", ProtectionElementStringArray[3][0] + "Modified", tempProtectionElement.getProtectionElementName());
assertEquals("\nmodifyProtectionElement did not modify the Description\n", ProtectionElementStringArray[3][1] + "Modified", tempProtectionElement.getProtectionElementDescription());
assertEquals("\nmodifyProtectionElement did not modify the Object ID\n", ProtectionElementStringArray[3][2] + "Modified", tempProtectionElement.getObjectId());
assertEquals("\nmodifyProtectionElement did not modify the Attribute\n", ProtectionElementStringArray[3][3] + "Modified", tempProtectionElement.getAttribute());
}
示例3: testCreateProtectionElement
import gov.nih.nci.security.authorization.domainobjects.ProtectionElement; //导入方法依赖的package包/类
private void testCreateProtectionElement() throws CSTransactionException
{
for (int x = 0; x < NumberOfProtectionElementsToTest; x++)
{
ProtectionElement tempProtectionElement = new ProtectionElement();
java.util.Date CurrentTime = new java.util.Date();
tempProtectionElement.setProtectionElementName(ProtectionElementStringArray[x][0]);
tempProtectionElement.setProtectionElementDescription(ProtectionElementStringArray[x][1]);
tempProtectionElement.setObjectId(ProtectionElementStringArray[x][2]);
tempProtectionElement.setAttribute(ProtectionElementStringArray[x][3]);
tempProtectionElement.setUpdateDate(CurrentTime);
userProvisioningManager.createProtectionElement(tempProtectionElement);
tempProtectionElement = null;
}
}
示例4: testCreateProtectionElement
import gov.nih.nci.security.authorization.domainobjects.ProtectionElement; //导入方法依赖的package包/类
private static void testCreateProtectionElement() throws CSTransactionException
{
for (int x=0; x<NumberOfProtectionElementsToTest; x++)
{
ProtectionElement tempProtectionElement = new ProtectionElement();
java.util.Date CurrentTime = new java.util.Date();
tempProtectionElement.setProtectionElementName(ProtectionElementStringArray[x][0]);
tempProtectionElement.setProtectionElementDescription(ProtectionElementStringArray[x][1]);
tempProtectionElement.setObjectId(ProtectionElementStringArray[x][2]);
tempProtectionElement.setAttribute(ProtectionElementStringArray[x][3]);
tempProtectionElement.setUpdateDate(CurrentTime);
userProvisioningManager.createProtectionElement(tempProtectionElement);
tempProtectionElement = null;
}
}
示例5: xtestCreateProtectionElement
import gov.nih.nci.security.authorization.domainobjects.ProtectionElement; //导入方法依赖的package包/类
private void xtestCreateProtectionElement() throws CSTransactionException
{
for (int x=0; x<NumberOfProtectionElementsToxtest; x++)
{
ProtectionElement tempProtectionElement = new ProtectionElement();
java.util.Date CurrentTime = new java.util.Date();
tempProtectionElement.setProtectionElementName(ProtectionElementStringArray[x][0]);
tempProtectionElement.setProtectionElementDescription(ProtectionElementStringArray[x][1]);
tempProtectionElement.setObjectId(ProtectionElementStringArray[x][2]);
tempProtectionElement.setAttribute(ProtectionElementStringArray[x][3]);
tempProtectionElement.setUpdateDate(CurrentTime);
userProvisioningManager.createProtectionElement(tempProtectionElement);
tempProtectionElement = null;
}
}
示例6: xtestModifyProtectionElement
import gov.nih.nci.security.authorization.domainobjects.ProtectionElement; //导入方法依赖的package包/类
private void xtestModifyProtectionElement() throws CSTransactionException, CSObjectNotFoundException
{
ProtectionElement tempProtectionElement = new ProtectionElement();
java.util.Date midnight_jan2_1970 = new java.util.Date(24L*60L*60L*1000L);
tempProtectionElement = userProvisioningManager.getProtectionElementById("4");
tempProtectionElement.setProtectionElementName(ProtectionElementStringArray[3][0] + "Modified");
tempProtectionElement.setProtectionElementDescription(ProtectionElementStringArray[3][1] + "Modified");
tempProtectionElement.setObjectId(ProtectionElementStringArray[3][2] + "Modified");
tempProtectionElement.setAttribute(ProtectionElementStringArray[3][3] + "Modified");
tempProtectionElement.setUpdateDate(midnight_jan2_1970); //TODO: Not updating the "Update Date"
userProvisioningManager.modifyProtectionElement(tempProtectionElement);
tempProtectionElement = userProvisioningManager.getProtectionElementById("4");
assertEquals("\nmodifyProtectionElement did not modify the Name\n", ProtectionElementStringArray[3][0] + "Modified", tempProtectionElement.getProtectionElementName());
assertEquals("\nmodifyProtectionElement did not modify the Description\n", ProtectionElementStringArray[3][1] + "Modified", tempProtectionElement.getProtectionElementDescription());
assertEquals("\nmodifyProtectionElement did not modify the Object ID\n", ProtectionElementStringArray[3][2] + "Modified", tempProtectionElement.getObjectId());
assertEquals("\nmodifyProtectionElement did not modify the Attribute\n", ProtectionElementStringArray[3][3] + "Modified", tempProtectionElement.getAttribute());
}
示例7: testCreateProtectionElement
import gov.nih.nci.security.authorization.domainobjects.ProtectionElement; //导入方法依赖的package包/类
private static void testCreateProtectionElement() throws CSTransactionException
{
for (int x=0; x<NumberOfProtectionElementsToTest; x++)
{
ProtectionElement tempProtectionElement = new ProtectionElement();
java.util.Date CurrentTime = new java.util.Date();
tempProtectionElement.setProtectionElementName(ProtectionElementStringArray[x][0]);
tempProtectionElement.setProtectionElementDescription(ProtectionElementStringArray[x][1]);
tempProtectionElement.setObjectId(ProtectionElementStringArray[x][2]);
tempProtectionElement.setAttribute(ProtectionElementStringArray[x][3]);
tempProtectionElement.setUpdateDate(CurrentTime);
userProvisioningManager.createProtectionElement(tempProtectionElement);
tempProtectionElement = null;
}
}
示例8: createProtectionGroup
import gov.nih.nci.security.authorization.domainobjects.ProtectionElement; //导入方法依赖的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;
}
示例9: createProtectionElement
import gov.nih.nci.security.authorization.domainobjects.ProtectionElement; //导入方法依赖的package包/类
/**
* @param protectionElement
*
* @throws CSTransactionException
* @see gov.nih.nci.security.AuthorizationManager#createProtectionElement(ProtectionElement)
*/
public void createProtectionElement(ProtectionElement protectionElement)throws CSTransactionException{
if(protectionElement==null){
throw new CSTransactionException("protection element could not be created as it is null");
}
protectionElement.setApplication(authorizationDAO.getApplication());
protectionElement.setUpdateDate(new Date());
authorizationDAO.createObject(protectionElement);
//authorizationDAO.createProtectionElement(protectionElement);
}
示例10: createProtectionElement
import gov.nih.nci.security.authorization.domainobjects.ProtectionElement; //导入方法依赖的package包/类
/**
* @param protectionElement
*
* @throws CSTransactionException
* @see gov.nih.nci.security.AuthorizationManager#createProtectionElement(ProtectionElement)
*/
public void createProtectionElement(ProtectionElement protectionElement)throws CSTransactionException{
if(protectionElement==null){
throw new CSTransactionException("protection element could not be created as it is null");
}
protectionElement.setApplication(authorizationDAO.getApplication());
protectionElement.setUpdateDate(new Date());
authorizationDAO.createObject(protectionElement);
//authorizationDAO.createProtectionElement(protectionElement);
}
示例11: modifyProtectionElement
import gov.nih.nci.security.authorization.domainobjects.ProtectionElement; //导入方法依赖的package包/类
/**
* Method modifyProtectionElement.
* @param protectionElement ProtectionElement
* @throws CSTransactionException
* @see gov.nih.nci.security.UserProvisioningManager#modifyProtectionElement(ProtectionElement)
*/
public void modifyProtectionElement(ProtectionElement protectionElement) throws CSTransactionException{
protectionElement.setUpdateDate(new java.util.Date());
authorizationDAO.modifyObject(protectionElement);
}