Search in sources :

Example 1 with WsAttributeAssignValue

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);
}
Also used : WsAttributeAssignValue(edu.internet2.middleware.grouperClient.ws.beans.WsAttributeAssignValue) WsAssignAttributesResults(edu.internet2.middleware.grouperClient.ws.beans.WsAssignAttributesResults)

Example 2 with WsAttributeAssignValue

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;
}
Also used : WsAttributeAssignValue(edu.internet2.middleware.grouperClient.ws.beans.WsAttributeAssignValue)

Example 3 with WsAttributeAssignValue

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;
}
Also used : WsAssignAttributesResults(edu.internet2.middleware.grouperClient.ws.beans.WsAssignAttributesResults) WsResultMeta(edu.internet2.middleware.grouperClient.ws.beans.WsResultMeta) Grouping(edu.hawaii.its.api.type.Grouping)

Example 4 with WsAttributeAssignValue

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;
}
Also used : WsAttributeAssignValue(edu.internet2.middleware.grouperClient.ws.beans.WsAttributeAssignValue)

Aggregations

WsAttributeAssignValue (edu.internet2.middleware.grouperClient.ws.beans.WsAttributeAssignValue)3 WsAssignAttributesResults (edu.internet2.middleware.grouperClient.ws.beans.WsAssignAttributesResults)2 Grouping (edu.hawaii.its.api.type.Grouping)1 WsResultMeta (edu.internet2.middleware.grouperClient.ws.beans.WsResultMeta)1