File tree Expand file tree Collapse file tree 4 files changed +15
-7
lines changed
liveTest/java/com/atlan/live
main/java/com/atlan/model/admin Expand file tree Collapse file tree 4 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -99,8 +99,9 @@ void addPoliciesToPurpose() throws AtlanException {
9999 null ,
100100 true ,
101101 Set .of (DataPolicyAction .SELECT ),
102- DataPolicyType .ACCESS ,
102+ DataPolicyType .MASKING ,
103103 true )
104+ .mask (MaskingType .HASH )
104105 .build ())
105106 .build ();
106107 Purpose result = purpose .update ();
Original file line number Diff line number Diff line change @@ -19,12 +19,19 @@ public abstract class AbstractPurposePolicy extends AbstractPolicy {
1919 /** Whether this policy applies to all users (true) or not (false). */
2020 Boolean allUsers ;
2121
22- /** All groups' names to whom the policy will apply. */
22+ /**
23+ * All groups' names to whom the policy will apply.
24+ * Note that these are the internal names of the groups, typically in all lowercase and without spaces.
25+ * @see AtlanGroup#name
26+ */
2327 @ Singular
2428 @ JsonInclude (JsonInclude .Include .ALWAYS )
2529 SortedSet <String > groups ;
2630
27- /** All users' names to whom the policy will apply. */
31+ /**
32+ * All users' names to whom the policy will apply.
33+ * @see AtlanUser#username
34+ */
2835 @ Singular
2936 @ JsonInclude (JsonInclude .Include .ALWAYS )
3037 SortedSet <String > users ;
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ public class PurposeDataPolicy extends AbstractPurposePolicy {
3838 * Builds the minimal object necessary to create a data policy for a purpose.
3939 *
4040 * @param name short description of the policy
41- * @param users collection of users whose access is controlled by the policy
42- * @param groups collection of groups whose access is controlled by the policy
41+ * @param users collection of usernames whose access is controlled by the policy
42+ * @param groups collection of group names whose access is controlled by the policy
4343 * @param allUsers whether to apply this policy to all users (overriding previous parameters) (true) or only some users (false)
4444 * @param actions the collection of actions the policy allows or denies
4545 * @param allow whether to allow the actions provided (true) or explicitly deny them (false)
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ public class PurposeMetadataPolicy extends AbstractPurposePolicy {
3131 * Builds the minimal object necessary to create a metadata policy for a purpose.
3232 *
3333 * @param name short description of the policy
34- * @param users collection of users whose access is controlled by the policy
35- * @param groups collection of groups whose access is controlled by the policy
34+ * @param users collection of usernames whose access is controlled by the policy
35+ * @param groups collection of group names whose access is controlled by the policy
3636 * @param allUsers whether to apply this policy to all users (overriding previous parameters) (true) or only some users (false)
3737 * @param actions the collection of actions the policy allows or denies
3838 * @param allow whether to allow the actions provided (true) or explicitly deny them (false)
You can’t perform that action at this time.
0 commit comments