이벤트 이름과 승인 상태와 같은 현재 태스크에 의해 생성된 이벤트에 대한 정보를 수록하고 있습니다. 이 정보는 이벤트에 대한 컨텍스트 정보라고 불립니다.
_eventContextInformation 개체는 패키지 com.netegrity.imapi의 ExposedEventContextInformation 클래스로부터 생성됩니다.
이 개체는 "승인됨", "보류", "거부됨" 템플릿을 기준으로 전자 메일 메시지에 사용할 수 있습니다. 이러한 템플릿에 대한 자세한 내용은 전자 메일 템플릿을 참조하십시오.
메서드: 다음 메서드는 모두 문자열을 반환합니다.
|
메서드 |
설명 |
|---|---|
|
getAdminName() |
이벤트를 생성한 태스크를 제출한 사람의 이름을 반환합니다. CA CA IdentityMinder 5.6에서 사용되지 않습니다. 다음의 상속된 메서드 중 하나를 사용하십시오.
|
|
getApprovalStatus() |
이벤트의 승인 상태를 반환합니다. 이러한 값 중 하나: APPROVAL_STATUS_APPROVED |
|
getApprovalTime() |
이벤트가 승인된 시간을 반환합니다. |
|
getEventName() |
이벤트의 이름을 반환합니다. 이벤트 이름의 목록은 "CA IdentityMinder 이벤트"를 참조하십시오. |
|
getOrgName() |
태스크가 실행되는 조직의 이름을 반환합니다. CA CA IdentityMinder 5.6에서 사용되지 않습니다. 상속된 메서드 getObjectOrganizationFriendlyName()를 사용하십시오. |
|
getPassword() |
기본 개체의 유형이 USER인 경우 사용자의 암호를 반환합니다. |
|
getPrimaryObjectTypeName() |
기본 개체의 유형을 반환합니다. 반환된 기본 개체 유형: ACCESSROLE |
|
getPrimaryObjectName() |
이벤트의 영향을 받은 기본 개체의 이름을 반환합니다. 기본 개체는 이벤트의 직접적인 영향을 받은 개체입니다. 보조 개체는 기본 개체(있는 경우)가 바인딩된 개체입니다. 예:
기본 개체 유형이 USER인 경우 getPrimaryObjectName()는 John Jones를 반환할 수 있습니다. |
|
getSecondaryObjectTypeName() |
보조 개체가 이벤트의 영향을 받은 경우 개체 유형을 반환합니다. 반환된 보조 개체 유형: ACCESSROLE |
|
getSecondaryObjectName() |
보조 개체가 이벤트의 영향을 받은 경우 개체 이름을 반환합니다. 기본 및 보조 개체에 대한 정보는 getPrimaryObjectName()를 참조하십시오. 보조 개체의 유형이 ORGANIZATION인 경우 메서드 getSecondaryObjectName()가 HR을 반환할 수 있습니다. |
참고: _eventContextInformation의 메서드는 인터페이스 ExposedEventContextInformation을 통해 제공됩니다. ExposedEventContextInformation이 핵심 CA CA IdentityMinder API에 있는 메서드를 상속하므로 _eventContextInformation은 위의 표에 있는 메서드와 함께 이러한 메서드를 전자 메일 템플릿으로부터 호출할 수도 있습니다. 이러한 상속된 메서드에 대한 자세한 내용은 추가 메서드를 참조하십시오.
예제--"보류" 이벤트에 대한 전자 메일 알림:
<% _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><br> Event: <b><%=_eventContextInformation.getEventName()%></b> <br> <%=_eventContextInformation.getPrimaryObjectTypeName()%>: <b><%=_eventContextInformation.getPrimaryObjectName()%></b><br> In <%=_eventContextInformation.getSecondaryObjectTypeName()%>: <b><%=_eventContextInformation.getSecondaryObjectName()%></b><br> </body> </html>
가능한 전자 메일 본문:
보낸 사람: lsmith@security.com [mailto:lsmith@security.com] 받는 사람: vimperioso@security.com 제목: CreateUserEvent Approval Request The following item has been added to your work list for approval: Event: CreateUserEvent USER: Richard Ferrigamo In ORGANIZATION: Mortgages & Loans
참고: "보낸 사람" 필드의 값은 email.properties 파일에서 파생됩니다. 이 값을 변경하려면 다음 파일을 편집하십시오.
<iam_im.ear>\config\com\netegrity\config\email.properties
여기서 <iam_im.ear>는 응용 프로그램 서버 도메인에서 CA CA IdentityMinder가 설치된 위치입니다. 예:
WebLogic:
<WebLogic_home>\user_projects\<domain>\applications\iam_im.ear
JBoss:
<Identity Manager_home>\jboss-3.2.2\server\default\deploy\iam_im.ear
WebSphere:
<im_admin_tools_dir >\WebSphere-ear\iam_im.ear
앞의 예제에서 이벤트의 영향을 받는 사용자에 대한 추가 정보를 전자 메일에 추가하려면 다음과 유사한 텍스트를 추가하십시오.
<% user = _eventContextInformation.getEvent().getUser(); %>
<b>User information:</b><br>
Last Name: <b><%=user.getAttribute("%LAST_NAME%")%></b><br>
First Name: <b><%=user.getAttribute("%FIRST_NAME%")%></b><br>
Full Name: <b><%=user.getAttribute("%FULL_NAME%")%></b><br>
Email: <b><%=user.getAttribute("%EMAIL%")%></b><br>
Organization Membership: <b><%=user.getAttribute("%ORG_MEMBERSHIP%")%></b><br>
가능한 전자 메일 본문:
보낸 사람: lsmith@security.com [mailto:lsmith@security.com] 받는 사람: vimperioso@security.com 제목: CreateUserEvent Approval Request The following item has been added to your work list for approval: Event: CreateUserEvent USER: Richard Ferrigamo In ORGANIZATION: Mortgages & Loans User information: Last Name: Ferrigamo First Name: Richard Full Name: Richard Ferrigamo Email: rferrigamo@mybank.org Organization Membership: Mortgages & Loans
|
Copyright © 2014 CA.
All rights reserved.
|
|