import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import org.apache.commons.logging.Log;
import sailpoint.api.SailPointContext;
import sailpoint.object.Application;
import sailpoint.object.Identity;
import sailpoint.object.ManagedAttribute;
import sailpoint.object.ResourceObject;
import sailpoint.tools.GeneralException;
public class GroupAggrgationRuleForDesc {
static Log log = null;
static SailPointContext context = null;
static Map environment = null;
static ResourceObject obj = null;
static Application groupApplication = null;
static ManagedAttribute accountGroup = null;
public static void main(String[] args) {
Identity workGroup = null;
Map map = new HashMap();
try {
workGroup = context.getObjectByName(Identity.class, accountGroup.getValue());
accountGroup.setOwner(workGroup.getOwner());
accountGroup.setRequestable(false);
map.put(Locale.US.toString(), workGroup.getDescription());
accountGroup.setDescriptions(map);
} catch (GeneralException e) {
log.error("GeneralException: " + e.getMessage());
}
}
}
No comments:
Post a Comment