File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 8
8
* Permission definition factory
9
9
* @class PermissionFactory
10
10
* @memberOf permission
11
+ * @constructs permission.Permission
11
12
*
12
13
* @param $q {$q} Angular promise implementation
13
14
*
31
32
32
33
/**
33
34
* Checks if permission is still valid
35
+ * @method
34
36
*
35
37
* @param toParams {Object} UI-Router params object
36
38
* @returns {Promise }
47
49
48
50
/**
49
51
* Converts a value into a promise, if the value is truthy it resolves it, otherwise it rejects it
52
+ * @method
50
53
* @private
51
54
*
52
55
* @param result {Boolean} Function to be wrapped into promise
67
70
68
71
/**
69
72
* Checks if provided permission has accepted parameter types
73
+ * @method
70
74
* @private
71
75
*/
72
76
function validateConstructor ( permissionName , validationFunction ) {
Original file line number Diff line number Diff line change 40
40
41
41
/**
42
42
* Extends permission map by pushing to it state's permissions
43
+ * @method
43
44
*
44
- * @param permissionMap {PermissionMap} Compensated permission map
45
+ * @param permissionMap {permission. PermissionMap} Compensated permission map
45
46
*/
46
47
PermissionMap . prototype . extendPermissionMap = function ( permissionMap ) {
47
48
this . only = this . only . concat ( permissionMap . only ) ;
50
51
51
52
/**
52
53
* Redirects to fallback states when permissions fail
54
+ * @method
53
55
*
54
56
* @param rejectedPermissionName {String} Permission name
55
57
*
76
78
77
79
/**
78
80
* Handles function based redirection for rejected permissions
81
+ * @method
79
82
*
80
83
* @param redirectFunction {Function} Redirection function
81
84
* @param permission {String} Rejected permission
102
105
103
106
/**
104
107
* Handles object based redirection for rejected permissions
108
+ * @method
105
109
*
106
110
* @param redirectObject {Object} Redirection function
107
111
* @param permission {String} Rejected permission
136
140
137
141
/**
138
142
* Handles extraction of permission map "only" and "except" properties
143
+ * @method
139
144
* @private
140
145
*
141
146
* @param property {Array|Function|promise} Permission map property "only" or "except"
You can’t perform that action at this time.
0 commit comments