Skip to content

Commit a45c940

Browse files
committed
Add userStorePersistenceEnabled claim property
1 parent fb86236 commit a45c940

File tree

1 file changed

+20
-0
lines changed
  • core/org.wso2.carbon.user.api/src/main/java/org/wso2/carbon/user/api

1 file changed

+20
-0
lines changed

core/org.wso2.carbon.user.api/src/main/java/org/wso2/carbon/user/api/Claim.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ public class Claim implements Serializable {
9494
*/
9595
private boolean multiValued;
9696

97+
private boolean userStorePersistenceEnabled;
98+
9799
public String getClaimUri() {
98100
return claimUri;
99101
}
@@ -191,4 +193,22 @@ public void setMultiValued(boolean multiValued) {
191193

192194
this.multiValued = multiValued;
193195
}
196+
197+
/**
198+
* Indicates whether the user store persistence is enabled for this claim.
199+
* @return true if enabled, false otherwise.
200+
*/
201+
public boolean isUserStorePersistenceEnabled() {
202+
203+
return userStorePersistenceEnabled;
204+
}
205+
206+
/**
207+
* Sets the user store persistence enabled status for this claim.
208+
* @param userStorePersistenceEnabled true to enable, false to disable.
209+
*/
210+
public void setUserStorePersistenceEnabled(boolean userStorePersistenceEnabled) {
211+
212+
this.userStorePersistenceEnabled = userStorePersistenceEnabled;
213+
}
194214
}

0 commit comments

Comments
 (0)