// RunMode(author, publish) 에 따라 활용할 수 있음
- DB분리 운영시 접속정보 분기
- 특정 패턴의 Source Code 또는 Maekup 적용이 필요한 경우
등등
String a = "";
Set runModes = sling.getService(SlingSettingsService.class).getRunModes();
if (runModes.contains("author")){
a = "author";
} else if (runModes.contains("publish")){
a = "publish";
}
'Develop > AEM' 카테고리의 다른 글
| 어도비 깃허브 (0) | 2016.11.21 |
|---|---|
| 폰트 파일 업로드 및 ServerFilePath (0) | 2016.11.21 |
| FEW CQ5 (AEM) Interview questions for references (0) | 2016.11.09 |
| AEM 6.x Server Setting (0) | 2016.11.09 |
| 특정 node 값 받아오기 (0) | 2016.11.07 |