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

公開メンバ関数

String initProfileConfigurations ()
 
List< String > getProfileConfigurations ()
 
void setProfileConfigurations (List< String > profileConfigurations)
 
boolean isProfileConfigurationSelected (String profileConfigurationName)
 
ProfileConfiguration getProfileConfiguration (String profileConfigurationName)
 
List< String > getAvailableProfileConfigurations ()
 
void setAvailableProfileConfigurations (List< String > availableList)
 
void setSelectedList (Set< ProfileConfiguration > selectedList)
 
Set< ProfileConfigurationgetSelectedList ()
 
String saveFilters ()
 
ProfileConfiguration getProfileConfigurationSelected ()
 
String updateProfileConfigurations ()
 
boolean getIncludeAttributeStatement ()
 
void setIncludeAttributeStatement (boolean includeAttributeStatement)
 
String getSignResponses ()
 
void setSignResponses (String signResponses)
 
String getSignAssertions ()
 
void setSignAssertions (String signAssertions)
 
String getSignRequests ()
 
void setSignRequests (String signRequests)
 
int getAssertionLifetime ()
 
void setAssertionLifetime (int assertionLifetime)
 
String getEncryptNameIds ()
 
void setEncryptNameIds (String encryptNameIds)
 
String getEncryptAssertions ()
 
void setEncryptAssertions (String encryptAssertions)
 
int getAssertionProxyCount ()
 
void setAssertionProxyCount (int assertionProxyCount)
 
void showFile ()
 
Map< String, FileUploadWrapper > getFileWrappers ()
 

非公開メンバ関数

void setProfileConfigurationSelected (ProfileConfiguration profileConfigurationSelected)
 

非公開変数類

List< String > profileConfigurations = null
 
List< ProfileConfigurationsavedProfileConfigurations = null
 
Set< ProfileConfigurationselectedList = new HashSet<ProfileConfiguration>()
 
List< String > availableProfileConfigurations = new ArrayList<String>()
 
ProfileConfiguration profileConfigurationSelected
 
ProfileConfigurationService profileConfigurationService
 
GluuSAMLTrustRelationship trustRelationship
 
UpdateTrustRelationshipAction updateTrustRelationshipAction
 
Map< String, FileUploadWrapper > fileWrappers = new HashMap<String, FileUploadWrapper>()
 

静的非公開変数類

static final long serialVersionUID = -5304171897858890801L
 

詳解

関数詳解

◆ getAssertionLifetime()

int org.gluu.oxtrust.action.RelyingPartyAction.getAssertionLifetime ( )
inline
244  {
246  }
int getAssertionLifetime()
Definition: ProfileConfiguration.java:66
ProfileConfiguration getProfileConfigurationSelected()
Definition: RelyingPartyAction.java:176

◆ getAssertionProxyCount()

int org.gluu.oxtrust.action.RelyingPartyAction.getAssertionProxyCount ( )
inline
268  {
270  }
ProfileConfiguration getProfileConfigurationSelected()
Definition: RelyingPartyAction.java:176
int getAssertionProxyCount()
Definition: ProfileConfiguration.java:74

◆ getAvailableProfileConfigurations()

List<String> org.gluu.oxtrust.action.RelyingPartyAction.getAvailableProfileConfigurations ( )
inline
126  {
127 
129  }
List< String > availableProfileConfigurations
Definition: RelyingPartyAction.java:42

◆ getEncryptAssertions()

String org.gluu.oxtrust.action.RelyingPartyAction.getEncryptAssertions ( )
inline
260  {
262  }
ProfileConfiguration getProfileConfigurationSelected()
Definition: RelyingPartyAction.java:176
String getEncryptAssertions()
Definition: ProfileConfiguration.java:90

◆ getEncryptNameIds()

String org.gluu.oxtrust.action.RelyingPartyAction.getEncryptNameIds ( )
inline
252  {
254  }
ProfileConfiguration getProfileConfigurationSelected()
Definition: RelyingPartyAction.java:176
String getEncryptNameIds()
Definition: ProfileConfiguration.java:82

◆ getFileWrappers()

Map<String, FileUploadWrapper> org.gluu.oxtrust.action.RelyingPartyAction.getFileWrappers ( )
inline
280  {
281  return fileWrappers;
282  }
Map< String, FileUploadWrapper > fileWrappers
Definition: RelyingPartyAction.java:54

◆ getIncludeAttributeStatement()

boolean org.gluu.oxtrust.action.RelyingPartyAction.getIncludeAttributeStatement ( )
inline
212  {
214  }
boolean isIncludeAttributeStatement()
Definition: ProfileConfiguration.java:34
ProfileConfiguration getProfileConfigurationSelected()
Definition: RelyingPartyAction.java:176

◆ getProfileConfiguration()

ProfileConfiguration org.gluu.oxtrust.action.RelyingPartyAction.getProfileConfiguration ( String  profileConfigurationName)
inline
109  {
110 
111  for (ProfileConfiguration profileConfiguration : savedProfileConfigurations) {
112  if (StringHelper.equalsIgnoreCase(profileConfiguration.getName(), profileConfigurationName)) {
113  return profileConfiguration;
114  }
115  }
116 
117  for (ProfileConfiguration profileConfiguration : profileConfigurationService.getAvailableProfileConfigurations()) {
118  if (StringHelper.equalsIgnoreCase(profileConfiguration.getName(), profileConfigurationName)) {
119  savedProfileConfigurations.add(profileConfiguration);
120  return profileConfiguration;
121  }
122  }
123  return null;
124  }
List< ProfileConfiguration > getAvailableProfileConfigurations()
Definition: ProfileConfigurationService.java:76
List< ProfileConfiguration > savedProfileConfigurations
Definition: RelyingPartyAction.java:38
ProfileConfigurationService profileConfigurationService
Definition: RelyingPartyAction.java:48

◆ getProfileConfigurations()

List<String> org.gluu.oxtrust.action.RelyingPartyAction.getProfileConfigurations ( )
inline
87  {
88  return this.profileConfigurations;
89  }
List< String > profileConfigurations
Definition: RelyingPartyAction.java:36

◆ getProfileConfigurationSelected()

ProfileConfiguration org.gluu.oxtrust.action.RelyingPartyAction.getProfileConfigurationSelected ( )
inline
176  {
178  }
ProfileConfiguration profileConfigurationSelected
Definition: RelyingPartyAction.java:44

◆ getSelectedList()

Set<ProfileConfiguration> org.gluu.oxtrust.action.RelyingPartyAction.getSelectedList ( )
inline
158  {
159  return selectedList;
160  }
Set< ProfileConfiguration > selectedList
Definition: RelyingPartyAction.java:40

◆ getSignAssertions()

String org.gluu.oxtrust.action.RelyingPartyAction.getSignAssertions ( )
inline
228  {
230  }
String getSignAssertions()
Definition: ProfileConfiguration.java:50
ProfileConfiguration getProfileConfigurationSelected()
Definition: RelyingPartyAction.java:176

◆ getSignRequests()

String org.gluu.oxtrust.action.RelyingPartyAction.getSignRequests ( )
inline
236  {
238  }
String getSignRequests()
Definition: ProfileConfiguration.java:58
ProfileConfiguration getProfileConfigurationSelected()
Definition: RelyingPartyAction.java:176

◆ getSignResponses()

String org.gluu.oxtrust.action.RelyingPartyAction.getSignResponses ( )
inline
220  {
222  }
ProfileConfiguration getProfileConfigurationSelected()
Definition: RelyingPartyAction.java:176
String getSignResponses()
Definition: ProfileConfiguration.java:42

◆ initProfileConfigurations()

String org.gluu.oxtrust.action.RelyingPartyAction.initProfileConfigurations ( )
inline
56  {
57  if(profileConfigurations!=null){
58  return OxTrustConstants.RESULT_SUCCESS;
59  }
60 
62  try {
64  } catch (Exception e) {
65  // TODO Auto-generated catch block
66  e.printStackTrace();
67  }
68 
69  availableProfileConfigurations = new ArrayList<String>();
70  for(ProfileConfiguration profileConfiguration : profileConfigurationService.getAvailableProfileConfigurations()){
71  availableProfileConfigurations.add(profileConfiguration.getName());
72  this.getFileWrappers().put(profileConfiguration.getName(), new FileUploadWrapper());
73  }
74 
75  profileConfigurations = new ArrayList<String>();
76  savedProfileConfigurations = new ArrayList<ProfileConfiguration>();
77 
78  for(ProfileConfiguration profileConfiguration : profileConfigurationService.getProfileConfigurationsList(trustRelationship)){
79  savedProfileConfigurations.add(profileConfiguration);
80  profileConfigurations.add(profileConfiguration.getName());
81  }
82 
83  // availableProfileConfigurations.removeAll(profileConfigurations);
84  return OxTrustConstants.RESULT_SUCCESS;
85  }
List< ProfileConfiguration > getAvailableProfileConfigurations()
Definition: ProfileConfigurationService.java:76
List< ProfileConfiguration > savedProfileConfigurations
Definition: RelyingPartyAction.java:38
GluuSAMLTrustRelationship trustRelationship
Definition: RelyingPartyAction.java:50
List< ProfileConfiguration > getProfileConfigurationsList(GluuSAMLTrustRelationship trustRelationship)
Definition: ProfileConfigurationService.java:154
Map< String, FileUploadWrapper > getFileWrappers()
Definition: RelyingPartyAction.java:280
List< String > profileConfigurations
Definition: RelyingPartyAction.java:36
UpdateTrustRelationshipAction updateTrustRelationshipAction
Definition: RelyingPartyAction.java:52
List< String > availableProfileConfigurations
Definition: RelyingPartyAction.java:42
ProfileConfigurationService profileConfigurationService
Definition: RelyingPartyAction.java:48
GluuSAMLTrustRelationship getTrustRelationship()
Definition: UpdateTrustRelationshipAction.java:1095
void parseProfileConfigurations(GluuSAMLTrustRelationship trustRelationship)
Definition: ProfileConfigurationService.java:162

◆ isProfileConfigurationSelected()

boolean org.gluu.oxtrust.action.RelyingPartyAction.isProfileConfigurationSelected ( String  profileConfigurationName)
inline
95  {
96  if (this.profileConfigurations == null) {
97  return false;
98  }
99 
100  for (String profileConfiguration : this.profileConfigurations) {
101  if (profileConfiguration.equals(profileConfigurationName)) {
102  return true;
103  }
104  }
105 
106  return false;
107  }
List< String > profileConfigurations
Definition: RelyingPartyAction.java:36

◆ saveFilters()

String org.gluu.oxtrust.action.RelyingPartyAction.saveFilters ( )
inline
162  {
163 
166  profileConfigurations = null;
167 
168  String resultInitProfileConfigurations = initProfileConfigurations();
169  if (!StringHelper.equalsIgnoreCase(OxTrustConstants.RESULT_SUCCESS, resultInitProfileConfigurations)) {
170  return OxTrustConstants.RESULT_FAILURE;
171  }
172 
173  return OxTrustConstants.RESULT_SUCCESS;
174  }
GluuSAMLTrustRelationship trustRelationship
Definition: RelyingPartyAction.java:50
Map< String, FileUploadWrapper > fileWrappers
Definition: RelyingPartyAction.java:54
String updateProfileConfigurations()
Definition: RelyingPartyAction.java:184
List< String > profileConfigurations
Definition: RelyingPartyAction.java:36
ProfileConfigurationService profileConfigurationService
Definition: RelyingPartyAction.java:48
void saveProfileConfigurations(GluuSAMLTrustRelationship trustRelationship, Map< String, FileUploadWrapper > fileWrappers)
Definition: ProfileConfigurationService.java:326
String initProfileConfigurations()
Definition: RelyingPartyAction.java:56

◆ setAssertionLifetime()

void org.gluu.oxtrust.action.RelyingPartyAction.setAssertionLifetime ( int  assertionLifetime)
inline
248  {
250  }
void setAssertionLifetime(int assertionLifetime)
Definition: ProfileConfiguration.java:70
ProfileConfiguration getProfileConfigurationSelected()
Definition: RelyingPartyAction.java:176

◆ setAssertionProxyCount()

void org.gluu.oxtrust.action.RelyingPartyAction.setAssertionProxyCount ( int  assertionProxyCount)
inline
272  {
274  }
void setAssertionProxyCount(int assertionProxyCount)
Definition: ProfileConfiguration.java:78
ProfileConfiguration getProfileConfigurationSelected()
Definition: RelyingPartyAction.java:176

◆ setAvailableProfileConfigurations()

void org.gluu.oxtrust.action.RelyingPartyAction.setAvailableProfileConfigurations ( List< String >  availableList)
inline
131  {
132 
133  this.availableProfileConfigurations = availableList;
134  }
List< String > availableProfileConfigurations
Definition: RelyingPartyAction.java:42

◆ setEncryptAssertions()

void org.gluu.oxtrust.action.RelyingPartyAction.setEncryptAssertions ( String  encryptAssertions)
inline
264  {
266  }
void setEncryptAssertions(String encryptAssertions)
Definition: ProfileConfiguration.java:94
ProfileConfiguration getProfileConfigurationSelected()
Definition: RelyingPartyAction.java:176

◆ setEncryptNameIds()

void org.gluu.oxtrust.action.RelyingPartyAction.setEncryptNameIds ( String  encryptNameIds)
inline
256  {
258  }
ProfileConfiguration getProfileConfigurationSelected()
Definition: RelyingPartyAction.java:176
void setEncryptNameIds(String encryptNameIds)
Definition: ProfileConfiguration.java:86

◆ setIncludeAttributeStatement()

void org.gluu.oxtrust.action.RelyingPartyAction.setIncludeAttributeStatement ( boolean  includeAttributeStatement)
inline
216  {
218  }
ProfileConfiguration getProfileConfigurationSelected()
Definition: RelyingPartyAction.java:176
void setIncludeAttributeStatement(boolean includeAttributeStatement)
Definition: ProfileConfiguration.java:38

◆ setProfileConfigurations()

void org.gluu.oxtrust.action.RelyingPartyAction.setProfileConfigurations ( List< String >  profileConfigurations)
inline
91  {
93  }
List< String > profileConfigurations
Definition: RelyingPartyAction.java:36

◆ setProfileConfigurationSelected()

void org.gluu.oxtrust.action.RelyingPartyAction.setProfileConfigurationSelected ( ProfileConfiguration  profileConfigurationSelected)
inlineprivate
180  {
182  }
ProfileConfiguration profileConfigurationSelected
Definition: RelyingPartyAction.java:44

◆ setSelectedList()

void org.gluu.oxtrust.action.RelyingPartyAction.setSelectedList ( Set< ProfileConfiguration selectedList)
inline
137  {
138  this.selectedList = selectedList;
139 
140  if(selectedList.isEmpty()){
142  return;
143  }
144 
145  boolean selectionChanged = getProfileConfigurationSelected() == null || ! selectedList.toArray(new ProfileConfiguration[]{})[0].getName().equals(getProfileConfigurationSelected().getName());
146  if(selectionChanged){
147  boolean trustRelationshipAlreadyContainsThisFilter = trustRelationship.getProfileConfigurations().get(selectedList.toArray(new ProfileConfiguration[]{})[0].getName()) != null;
148  if(trustRelationshipAlreadyContainsThisFilter){
149  setProfileConfigurationSelected(trustRelationship.getProfileConfigurations().get(selectedList.toArray(new ProfileConfiguration[]{})[0].getName()));
150  }else{
151  setProfileConfigurationSelected(selectedList.toArray(new ProfileConfiguration[]{})[0]);
152  }
153  }
154  }
GluuSAMLTrustRelationship trustRelationship
Definition: RelyingPartyAction.java:50
Map< String, ProfileConfiguration > getProfileConfigurations()
Definition: GluuSAMLTrustRelationship.java:332
Set< ProfileConfiguration > selectedList
Definition: RelyingPartyAction.java:40
ProfileConfiguration getProfileConfigurationSelected()
Definition: RelyingPartyAction.java:176
void setProfileConfigurationSelected(ProfileConfiguration profileConfigurationSelected)
Definition: RelyingPartyAction.java:180

◆ setSignAssertions()

void org.gluu.oxtrust.action.RelyingPartyAction.setSignAssertions ( String  signAssertions)
inline
232  {
234  }
void setSignAssertions(String signAssertions)
Definition: ProfileConfiguration.java:54
ProfileConfiguration getProfileConfigurationSelected()
Definition: RelyingPartyAction.java:176

◆ setSignRequests()

void org.gluu.oxtrust.action.RelyingPartyAction.setSignRequests ( String  signRequests)
inline
240  {
242  }
ProfileConfiguration getProfileConfigurationSelected()
Definition: RelyingPartyAction.java:176
void setSignRequests(String signRequests)
Definition: ProfileConfiguration.java:62

◆ setSignResponses()

void org.gluu.oxtrust.action.RelyingPartyAction.setSignResponses ( String  signResponses)
inline
224  {
226  }
void setSignResponses(String signResponses)
Definition: ProfileConfiguration.java:46
ProfileConfiguration getProfileConfigurationSelected()
Definition: RelyingPartyAction.java:176

◆ showFile()

void org.gluu.oxtrust.action.RelyingPartyAction.showFile ( )
inline
276  {
277 
278  }

◆ updateProfileConfigurations()

String org.gluu.oxtrust.action.RelyingPartyAction.updateProfileConfigurations ( )
inline
184  {
185  for(ProfileConfiguration profileConfiguration : savedProfileConfigurations){
187  this.getFileWrappers().put(profileConfiguration.getName(), new FileUploadWrapper());
189  }
190  }
191 
192  for(ProfileConfiguration profileConfiguration : profileConfigurationService.getProfileConfigurationsList(trustRelationship)){
193  if (!profileConfigurations.contains(profileConfiguration.getName())){
194  this.getFileWrappers().remove(profileConfiguration.getName());
195  ProfileConfiguration removedProfileConfiguration = null;
196  for(ProfileConfiguration savedProfileConfiguration : savedProfileConfigurations){
197  if(savedProfileConfiguration.getName().equals(profileConfiguration.getName())){
198  removedProfileConfiguration = profileConfiguration;
199  }
200  }
201  if(removedProfileConfiguration !=null){
202  savedProfileConfigurations.remove(profileConfiguration);
203  }
204 
206  }
207  }
208  return OxTrustConstants.RESULT_SUCCESS;
209 
210  }
List< ProfileConfiguration > savedProfileConfigurations
Definition: RelyingPartyAction.java:38
GluuSAMLTrustRelationship trustRelationship
Definition: RelyingPartyAction.java:50
List< ProfileConfiguration > getProfileConfigurationsList(GluuSAMLTrustRelationship trustRelationship)
Definition: ProfileConfigurationService.java:154
boolean isProfileConfigurationPresent(GluuSAMLTrustRelationship trustRelationship, ProfileConfiguration profileConfiguration)
Definition: ProfileConfigurationService.java:308
void removeProfileConfiguration(GluuSAMLTrustRelationship trustRelationship, ProfileConfiguration profileConfiguration)
Definition: ProfileConfigurationService.java:321
Map< String, FileUploadWrapper > getFileWrappers()
Definition: RelyingPartyAction.java:280
void updateProfileConfiguration(GluuSAMLTrustRelationship trustRelationship, ProfileConfiguration profileConfiguration)
Definition: ProfileConfigurationService.java:316
List< String > profileConfigurations
Definition: RelyingPartyAction.java:36
ProfileConfigurationService profileConfigurationService
Definition: RelyingPartyAction.java:48

メンバ詳解

◆ availableProfileConfigurations

List<String> org.gluu.oxtrust.action.RelyingPartyAction.availableProfileConfigurations = new ArrayList<String>()
private

◆ fileWrappers

Map<String, FileUploadWrapper> org.gluu.oxtrust.action.RelyingPartyAction.fileWrappers = new HashMap<String, FileUploadWrapper>()
private

◆ profileConfigurations

List<String> org.gluu.oxtrust.action.RelyingPartyAction.profileConfigurations = null
private

◆ profileConfigurationSelected

ProfileConfiguration org.gluu.oxtrust.action.RelyingPartyAction.profileConfigurationSelected
private

◆ profileConfigurationService

ProfileConfigurationService org.gluu.oxtrust.action.RelyingPartyAction.profileConfigurationService
private

◆ savedProfileConfigurations

List<ProfileConfiguration> org.gluu.oxtrust.action.RelyingPartyAction.savedProfileConfigurations = null
private

◆ selectedList

Set<ProfileConfiguration> org.gluu.oxtrust.action.RelyingPartyAction.selectedList = new HashSet<ProfileConfiguration>()
private

◆ serialVersionUID

final long org.gluu.oxtrust.action.RelyingPartyAction.serialVersionUID = -5304171897858890801L
staticprivate

◆ trustRelationship

GluuSAMLTrustRelationship org.gluu.oxtrust.action.RelyingPartyAction.trustRelationship
private

◆ updateTrustRelationshipAction

UpdateTrustRelationshipAction org.gluu.oxtrust.action.RelyingPartyAction.updateTrustRelationshipAction
private

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