Created
April 7, 2016 18:16
-
-
Save jonathanmtran/d9c0ed0db7396119207b9b69933029d3 to your computer and use it in GitHub Desktop.
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
diff --git a/uportal-war/src/main/java/org/jasig/portal/shell/PortalShellBuildHelper.java b/uportal-war/src/main/java/org/jasig/portal/shell/PortalShellBuildHelper.java | |
index 60850f4..f570271 100644 | |
--- a/uportal-war/src/main/java/org/jasig/portal/shell/PortalShellBuildHelper.java | |
+++ b/uportal-war/src/main/java/org/jasig/portal/shell/PortalShellBuildHelper.java | |
@@ -47,6 +47,8 @@ public interface PortalShellBuildHelper { | |
void deleteUser(String target, String user); | |
+ void deleteUserById(String target, int userid); | |
+ | |
void hibernateGenerateScript(String target, String databaseQualifier, String outputFile); | |
-} | |
\ No newline at end of file | |
+} | |
diff --git a/uportal-war/src/main/java/org/jasig/portal/shell/PortalShellBuildHelperImpl.java b/uportal-war/src/main/java/org/jasig/portal/shell/PortalShellBuildHelperImpl.java | |
index 5ba7686..da9c3a9 100644 | |
--- a/uportal-war/src/main/java/org/jasig/portal/shell/PortalShellBuildHelperImpl.java | |
+++ b/uportal-war/src/main/java/org/jasig/portal/shell/PortalShellBuildHelperImpl.java | |
@@ -357,7 +357,17 @@ public class PortalShellBuildHelperImpl implements PortalShellBuildHelper { | |
throw new RuntimeException(target + " for " + user + " failed", e); | |
} | |
} | |
- | |
+ | |
+ @Override | |
+ public void deleteUserById(String target, int userid) { | |
+ try { | |
+ userIdentityStore.removePortalUID(userid); | |
+ } | |
+ catch (Exception e) { | |
+ throw new RuntimeException(target + " for " + userid + " failed", e); | |
+ } | |
+ } | |
+ | |
private ISchemaExport getSchemaExport(String persistenceUnit) { | |
for (final ISchemaExport schemaExport : this.schemaExportBeans.values()) { | |
if (persistenceUnit.equals(schemaExport.getPersistenceUnitName())) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment