gluu
公開メンバ関数 | 非公開変数類 | 静的非公開変数類 | 全メンバ一覧
org.gluu.oxtrust.action.SearchSectorIdentifierAction クラス
org.gluu.oxtrust.action.SearchSectorIdentifierAction の継承関係図
Inheritance graph
org.gluu.oxtrust.action.SearchSectorIdentifierAction 連携図
Collaboration graph

公開メンバ関数

String start ()
 
String search ()
 
String getSearchPattern ()
 
void setSearchPattern (String searchPattern)
 
List< OxAuthSectorIdentifiergetSectorIdentifierList ()
 

非公開変数類

Logger log
 
FacesMessages facesMessages
 
ConversationService conversationService
 
String searchPattern
 
String oldSearchPattern
 
List< OxAuthSectorIdentifiersectorIdentifierList
 
SectorIdentifierService sectorIdentifierService
 

静的非公開変数類

static final long serialVersionUID = -5270460481895022455L
 

詳解

Action class for search sector identifiers

著者
Javier Rojas Blum
バージョン
January 15, 2016

関数詳解

◆ getSearchPattern()

String org.gluu.oxtrust.action.SearchSectorIdentifierAction.getSearchPattern ( )
inline
86  {
87  return searchPattern;
88  }
String searchPattern
Definition: SearchSectorIdentifierAction.java:46

◆ getSectorIdentifierList()

List<OxAuthSectorIdentifier> org.gluu.oxtrust.action.SearchSectorIdentifierAction.getSectorIdentifierList ( )
inline
94  {
95  return sectorIdentifierList;
96  }
List< OxAuthSectorIdentifier > sectorIdentifierList
Definition: SearchSectorIdentifierAction.java:50

◆ search()

String org.gluu.oxtrust.action.SearchSectorIdentifierAction.search ( )
inline
59  {
60  if ((this.searchPattern != null) && Util.equals(this.oldSearchPattern, this.searchPattern)) {
61  return OxTrustConstants.RESULT_SUCCESS;
62  }
63 
64  try {
65  if (searchPattern == null || searchPattern.isEmpty()) {
67  } else {
68  this.sectorIdentifierList = sectorIdentifierService.searchSectorIdentifiers(this.searchPattern, OxTrustConstants.searchSectorIdentifierSizeLimit);
69  }
70 
71  log.debug("Found \"" + this.sectorIdentifierList.size() + "\" sector identifiers.");
72  this.oldSearchPattern = this.searchPattern;
73  this.searchPattern="";
74  } catch (Exception ex) {
75  log.error("Failed to find sector identifiers", ex);
76 
77  facesMessages.add(FacesMessage.SEVERITY_ERROR, "Failed to find sector identifiers");
78  conversationService.endConversation();
79 
80  return OxTrustConstants.RESULT_FAILURE;
81  }
82 
83  return OxTrustConstants.RESULT_SUCCESS;
84  }
FacesMessages facesMessages
Definition: SearchSectorIdentifierAction.java:39
Logger log
Definition: SearchSectorIdentifierAction.java:36
List< OxAuthSectorIdentifier > getAllSectorIdentifiers()
Definition: SectorIdentifierService.java:75
SectorIdentifierService sectorIdentifierService
Definition: SearchSectorIdentifierAction.java:53
ConversationService conversationService
Definition: SearchSectorIdentifierAction.java:42
List< OxAuthSectorIdentifier > searchSectorIdentifiers(String pattern, int sizeLimit)
Definition: SectorIdentifierService.java:66
String oldSearchPattern
Definition: SearchSectorIdentifierAction.java:48
List< OxAuthSectorIdentifier > sectorIdentifierList
Definition: SearchSectorIdentifierAction.java:50
String searchPattern
Definition: SearchSectorIdentifierAction.java:46

◆ setSearchPattern()

void org.gluu.oxtrust.action.SearchSectorIdentifierAction.setSearchPattern ( String  searchPattern)
inline
90  {
92  }
String searchPattern
Definition: SearchSectorIdentifierAction.java:46

◆ start()

String org.gluu.oxtrust.action.SearchSectorIdentifierAction.start ( )
inline
55  {
56  return search();
57  }
String search()
Definition: SearchSectorIdentifierAction.java:59

メンバ詳解

◆ conversationService

ConversationService org.gluu.oxtrust.action.SearchSectorIdentifierAction.conversationService
private

◆ facesMessages

FacesMessages org.gluu.oxtrust.action.SearchSectorIdentifierAction.facesMessages
private

◆ log

Logger org.gluu.oxtrust.action.SearchSectorIdentifierAction.log
private

◆ oldSearchPattern

String org.gluu.oxtrust.action.SearchSectorIdentifierAction.oldSearchPattern
private

◆ searchPattern

String org.gluu.oxtrust.action.SearchSectorIdentifierAction.searchPattern
private

◆ sectorIdentifierList

List<OxAuthSectorIdentifier> org.gluu.oxtrust.action.SearchSectorIdentifierAction.sectorIdentifierList
private

◆ sectorIdentifierService

SectorIdentifierService org.gluu.oxtrust.action.SearchSectorIdentifierAction.sectorIdentifierService
private

◆ serialVersionUID

final long org.gluu.oxtrust.action.SearchSectorIdentifierAction.serialVersionUID = -5270460481895022455L
staticprivate

このクラス詳解は次のファイルから抽出されました: