use of edu.internet2.middleware.grouperClient.ws.beans.WsAttributeAssignValue in project uhgroupings by uhawaii-system-its-ti-iam.
the class MembershipServiceImpl method updateLastModified.
// updates the last modified attribute of the group to the current date and time
@Override
public GroupingsServiceResult updateLastModified(String groupPath) {
logger.info("updateLastModified; group: " + groupPath + ";");
String time = wsDateTime();
WsAttributeAssignValue dateTimeValue = grouperFS.makeWsAttributeAssignValue(time);
WsAssignAttributesResults assignAttributesResults = grouperFS.makeWsAssignAttributesResults(ASSIGN_TYPE_GROUP, OPERATION_ASSIGN_ATTRIBUTE, groupPath, YYYYMMDDTHHMM, OPERATION_REPLACE_VALUES, dateTimeValue);
return hs.makeGroupingsServiceResult(assignAttributesResults, "update last-modified attribute for " + groupPath + " to time " + time);
}
use of edu.internet2.middleware.grouperClient.ws.beans.WsAttributeAssignValue in project uhgroupings by uhawaii-system-its-ti-iam.
the class GrouperFactoryServiceImpl method makeWsAttributeAssignValue.
@Override
public WsAttributeAssignValue makeWsAttributeAssignValue(String time) {
WsAttributeAssignValue dateTimeValue = new WsAttributeAssignValue();
dateTimeValue.setValueSystem(time);
return dateTimeValue;
}
use of edu.internet2.middleware.grouperClient.ws.beans.WsAttributeAssignValue in project uhgroupings by uhawaii-system-its-ti-iam.
the class GrouperFactoryServiceImplLocal method makeWsAssignAttributesResults.
@Override
public WsAssignAttributesResults makeWsAssignAttributesResults(String attributeAssignType, String attributeAssignOperation, String ownerGroupName, String attributeDefNameName, String attributeAssignValueOperation, WsAttributeAssignValue value) {
WsAssignAttributesResults wsAssignAttributesResults = new WsAssignAttributesResults();
WsResultMeta wsResultMeta = new WsResultMeta();
wsResultMeta.setResultCode(SUCCESS);
wsAssignAttributesResults.setResultMetadata(wsResultMeta);
Grouping grouping = groupingRepository.findByPath(ownerGroupName);
Boolean onOrrOff = null;
if (attributeAssignOperation.equals(OPERATION_ASSIGN_ATTRIBUTE)) {
onOrrOff = true;
} else if (attributeAssignOperation.equals(OPERATION_REMOVE_ATTRIBUTE)) {
onOrrOff = false;
}
if (onOrrOff != null) {
if (attributeDefNameName.equals(LISTSERV)) {
grouping.setListservOn(onOrrOff);
} else if (attributeDefNameName.equals(OPT_IN)) {
grouping.setOptInOn(onOrrOff);
} else if (attributeDefNameName.equals(OPT_OUT)) {
grouping.setOptOutOn(onOrrOff);
}
}
return wsAssignAttributesResults;
}
use of edu.internet2.middleware.grouperClient.ws.beans.WsAttributeAssignValue in project uhgroupings by uhawaii-system-its-ti-iam.
the class GrouperFactoryServiceImplLocal method makeWsAttributeAssignValue.
@Override
public WsAttributeAssignValue makeWsAttributeAssignValue(String time) {
WsAttributeAssignValue dateTimeValue = new WsAttributeAssignValue();
dateTimeValue.setValueSystem(time);
return dateTimeValue;
}
Aggregations