forked from wso2-attic/carbon-identity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving userstore-config and user-manager components to carbon-identity
- Loading branch information
Showing
207 changed files
with
28,582 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
components/user-manager/org.wso2.carbon.user.mgt.common/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
~ Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. | ||
~ | ||
~ WSO2 Inc. licenses this file to you under the Apache License, | ||
~ Version 2.0 (the "License"); you may not use this file except | ||
~ in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, | ||
~ software distributed under the License is distributed on an | ||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
~ KIND, either express or implied. See the License for the | ||
~ specific language governing permissions and limitations | ||
~ under the License. | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
|
||
<parent> | ||
<groupId>org.wso2.carbon.identity</groupId> | ||
<artifactId>user-manager</artifactId> | ||
<version>4.5.6-SNAPSHOT</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>org.wso2.carbon.user.mgt.common</artifactId> | ||
<packaging>bundle</packaging> | ||
<name>WSO2 Carbon - User Management Common</name> | ||
<description>org.wso2.carbon.user.mgt.common</description> | ||
<url>http://wso2.org</url> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.wso2.carbon</groupId> | ||
<artifactId>org.wso2.carbon.utils</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.wso2.carbon</groupId> | ||
<artifactId>org.wso2.carbon.logging</artifactId> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.felix</groupId> | ||
<artifactId>maven-bundle-plugin</artifactId> | ||
|
||
<extensions>true</extensions> | ||
<configuration> | ||
<instructions> | ||
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> | ||
<Bundle-Name>${project.artifactId}</Bundle-Name> | ||
<Import-Package> | ||
javax.activation; version="${javax.activation.import.pkg.version}", | ||
org.apache.axis2; version="${axis2.osgi.version.range}" | ||
</Import-Package> | ||
<Export-Package> | ||
org.wso2.carbon.user.mgt.common.* | ||
</Export-Package> | ||
</instructions> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
36 changes: 36 additions & 0 deletions
36
...wso2.carbon.user.mgt.common/src/main/java/org/wso2/carbon/user/mgt/common/ClaimValue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. | ||
* | ||
* WSO2 Inc. licenses this file to you under the Apache License, | ||
* Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
package org.wso2.carbon.user.mgt.common; | ||
|
||
public class ClaimValue { | ||
|
||
private String claimURI; | ||
private String value; | ||
public String getClaimURI() { | ||
return claimURI; | ||
} | ||
public String getValue() { | ||
return value; | ||
} | ||
public void setClaimURI(String claimURI) { | ||
this.claimURI = claimURI; | ||
} | ||
public void setValue(String value) { | ||
this.value = value; | ||
} | ||
} |
133 changes: 133 additions & 0 deletions
133
...so2.carbon.user.mgt.common/src/main/java/org/wso2/carbon/user/mgt/common/FlaggedName.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
/* | ||
* Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. | ||
* | ||
* WSO2 Inc. licenses this file to you under the Apache License, | ||
* Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
package org.wso2.carbon.user.mgt.common; | ||
|
||
/** | ||
* Problem this class solves : Reduce the number of WS calls and amount of data | ||
* transfered between FE and BE. | ||
* <p/> | ||
* This is a classic sample of DTOs. An instance of this class can represent | ||
* either an user item or role item. This is used to represent items in lists of | ||
* users and roles sent to the Carbon FE. It contains information to indicate | ||
* whether the representing item is editable or selected within the given | ||
* context. | ||
* <p/> | ||
* Here are the use cases. Usecase 1 : When listing roles we should not show the | ||
* editable link if it is a external role. | ||
* <p/> | ||
* Before FlaggedName 1) Send the complete role list (hybrid + external) to FE | ||
* 2) Send the role list that are external to FE | ||
* <p/> | ||
* When listing roles in FE go through both lists, and do not show edit links | ||
* for external roles. This logic in JSPs could not be reused. Idea was to cut | ||
* down the number of calls. It was a feedback given in a review. | ||
* <p/> | ||
* After FlaggedNames 1) Send the list of FlaggedNames | ||
* <p/> | ||
* Usecase 2 : When user clicks on edit users of a Role | ||
* <p/> | ||
* Before FlaggedName 1) Send the list of users that are already in the role so | ||
* that I can show the ticks in the GUI 2) Send the complete requested user list | ||
* to FE (selected by *) so I can show them unchecked | ||
* <p/> | ||
* After FlaggedName 1)Cut down the nubmer of calls going back and forth | ||
*/ | ||
public class FlaggedName { | ||
|
||
private String itemName; | ||
private String itemDisplayName; | ||
private boolean isSelected; | ||
private boolean isEditable; | ||
private String roleType; | ||
private String domainName; | ||
private boolean readOnly; | ||
private String dn; | ||
private boolean isShared; | ||
|
||
public String getItemName() { | ||
return itemName; | ||
} | ||
|
||
public boolean isSelected() { | ||
return isSelected; | ||
} | ||
|
||
public void setItemName(String itemName) { | ||
this.itemName = itemName; | ||
} | ||
|
||
public void setSelected(boolean isSelected) { | ||
this.isSelected = isSelected; | ||
} | ||
|
||
public boolean isEditable() { | ||
return isEditable; | ||
} | ||
|
||
public void setEditable(boolean isEditable) { | ||
this.isEditable = isEditable; | ||
} | ||
|
||
public String getRoleType() { | ||
return roleType; | ||
} | ||
|
||
public void setRoleType(String roleType) { | ||
this.roleType = roleType; | ||
} | ||
|
||
public String getDomainName() { | ||
return domainName; | ||
} | ||
|
||
public void setDomainName(String domainName) { | ||
this.domainName = domainName; | ||
} | ||
|
||
public String getItemDisplayName() { | ||
return itemDisplayName; | ||
} | ||
|
||
public void setItemDisplayName(String itemDisplayName) { | ||
this.itemDisplayName = itemDisplayName; | ||
} | ||
|
||
public boolean isReadOnly() { | ||
return readOnly; | ||
} | ||
|
||
public void setReadOnly(boolean readOnly) { | ||
this.readOnly = readOnly; | ||
} | ||
|
||
public String getDn() { | ||
return dn; | ||
} | ||
|
||
public void setDn(String dn) { | ||
this.dn = dn; | ||
} | ||
|
||
public boolean isShared() { | ||
return isShared; | ||
} | ||
|
||
public void setShared(boolean shared) { | ||
isShared = shared; | ||
} | ||
} |
Oops, something went wrong.