이전 항목: _taskContextInformation다음 항목: Java 표준 출력 스트림


추가 메서드

_taskContextInformation 및 _eventContextInformation의 메서드는 각각 Identity Manager 개체 ExposedTaskContextInformation 및 ExposedEventContextInformation을 통해 제공됩니다.

이러한 개체는 핵심 Identity Manager API의 메서드를 상속합니다. 결과적으로, 상속된 메서드는 _taskContextInformation 및 _eventContextInformation에도 사용할 수 있습니다.

TaskInfo 개체에서 상속된 다음 메서드는 특히 전자 메일 템플릿에 유용합니다.

이러한 검색된 개체는 관리자 및 태스크 관련 정보를 전자 메일에 삽입할 수 있게 해 줍니다. 예:

<!-- Define the E-mail Properties --->

<%
   _cc = "" ;
   _bcc = "" ;
   _subject = _eventContextInformation.getEventName() +
                                              " Approval Request";
%>
<!--- Start of Body --->
<html>
<body text="Navy">

The following item has been added to your work list for approval:<br>
<br>
User <b><%= _eventContextInformation.getAdministrator().
               getAttribute(Packages.com.netegrity.llsdk6.imsapi.
                managedobject.User.PROPERTY_FRIENDLY_NAME)%> </b>
               from department <b><%= _eventContextInformation.
               getAdministrator().getOrg(null).getFriendlyName()
               %></b> initiated task <b><%= _eventContextInformation.
               getAdminTask().getFriendlyName() %></b>at <b><%=                _eventContextInformation.getSessionCreateTime() %></b>
<br><br>
<font color="green">Details: </font><b><%=_eventContextInformation.
                                          getEventName()%></b><br>
<font color="green"><%=_eventContextInformation.
                              getPrimaryObjectTypeName()%>:</font>
<b><%=_eventContextInformation.getPrimaryObjectName()%></b> 
                                                      was modified
<br>
<font color="green">Updated Attributes:</font>
<table border="1">
<tr>
  [assign the value for TD in your book]<b>Name</b></td>
  [assign the value for TD in your book]<b>Value</b></td>
</tr>
<%
   var event = _eventContextInformation.getEvent();
   if(event instanceof Packages.com.netegrity.imapi.UserEvent) {
      var user = event.getUser();
      var attributes = user.getAttributes().keys();
      while(attributes.hasMoreElements()) {
         var attr = attributes.nextElement();
         var value = user.getAttribute(attr);
         if(user.hasAttributeChanged(attr)) {
            template.add("<tr>[assign the value for TD in your book]" + attr +"</td>");
            template.add("[assign the value for TD in your book]" + value +"</td></tr>");
         }
      }
   }
%>
</table>
<br>
</body>
</html>

가능한 전자 메일 본문:

"Email Template"(전자 메일 템플릿) API에서 사용할 수 있는 상속된 메서드에 대한 자세한 내용은 Identity Manager Javadoc에서 ExposedTaskContextInformation 및 ExposedEventContextInformation 개체를 참조하십시오.