dbuser/src/main/java/no/kantega/security/api/impl/dbuser/profile/DbUserProfileUpdateManager.java
/**
     * Sletter en brukerprofil, inkludert roller, passord etc
     * @param identity
     * @throws SystemException
     */
Sletter en brukerprofil, inkludert roller, passord etc
@param identity
@throws SystemException
Sletter en brukerprofil inkludert roller passord etc @param identity @throws SystemException
public void deleteProfile(Identity identity) throws SystemException {
        if (!identity.getDomain().equalsIgnoreCase(domain)) {
            return;
        }
        getJdbcTemplate().update("DELETE FROM dbuserprofile WHERE Domain = ? AND UserId = ?",
                identity.getDomain(), identity.getUserId());
        getJdbcTemplate().update("DELETE FROM dbuserattributes WHERE Domain = ? AND UserId = ?",
                identity.getDomain(), identity.getUserId());
        getJdbcTemplate().update("DELETE FROM dbuserpassword WHERE Domain = ? AND UserId = ?",
                identity.getDomain(), identity.getUserId());
        getJdbcTemplate().update("DELETE FROM dbuserrole2user WHERE UserDomain = ? AND UserId = ?",
                identity.getDomain(), identity.getUserId());
    }
public void deleteProfile ( Identity identity ) throws SystemException { if ( ! identity . getDomain ( ) . equalsIgnoreCase ( domain ) ) { return ; } getJdbcTemplate ( ) . update ( "DELETE FROM dbuserprofile WHERE Domain = ? AND UserId = ?" , identity . getDomain ( ) , identity . getUserId ( ) ) ; getJdbcTemplate ( ) . update ( "DELETE FROM dbuserattributes WHERE Domain = ? AND UserId = ?" , identity . getDomain ( ) , identity . getUserId ( ) ) ; getJdbcTemplate ( ) . update ( "DELETE FROM dbuserpassword WHERE Domain = ? AND UserId = ?" , identity . getDomain ( ) , identity . getUserId ( ) ) ; getJdbcTemplate ( ) . update ( "DELETE FROM dbuserrole2user WHERE UserDomain = ? AND UserId = ?" , identity . getDomain ( ) , identity . getUserId ( ) ) ; }
Sletter en brukerprofil, inkludert roller, passord etc
 @param identity
 @throws SystemException
Sletter en brukerprofil inkludert roller passord etc @param identity @throws SystemException
// Slett brukerprofil // Slett attributter // Slett passord // Slett roller