UsersCtrl.js revision 14d054c1695261ccf1186a6f1ed8c339eb0e86fe
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright © 2011-2012 ForgeRock AS. All rights reserved.
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*/
/*global $, define */
/*jslint devel: true*/
/**
* @author mbilski
*/
"app/util/Comparators"],
function(usersView, userDelegate, breadcrumbsCtrl, profileCtrl, popupCtrl, confirmationDialogCtrl, messagesCtrl, eventManager, constants, comparators) {
var obj = {};
});
});
};
$(editButton).unbind();
});
};
return;
}
eventManager.sendEvent(constants.EVENT_ADMIN_SHOW_PROFILE_REQUEST, { user: user, callback: function() {obj.editLock = false;} });
}, function(user) {
});
};
obj.findUsersMatchingFilterInput = function() {
var i, k = 0, limit = 2, indexes = [], usersToAdd = [], registerListenerForUser, filter = obj.view.getFilterInput().val();
}
}
} else {
}
}, function(r) {
});
var i;
indexes[k] = i;
k++;
}
registerListenerForUser = function() {
};
}
}, function(r) {
});
};
obj.registerPopups = function() {
var n;
});
});
}, function() {
});
});
};
confirmationDialogCtrl.init("Delete user", userName + " account will be deleted.", "Delete", function() {
});
});
});
};
eventManager.sendEvent(constants.EVENT_USER_LIST_DELETE_USER_REQUEST, { userId: userId, successCallback: function () { obj.afterUserDeletedSuccesfully(number); } , errorCallback: obj.afterUserDeleteFailed()});
};
};
obj.afterUserDeleteFailed = function () {
};
var i, exp;
if( filter === "" ) {
return true;
}
return false;
}
}
return true;
};
return obj;
});