Skip to content

Commit 6f4454c

Browse files
committed
Merge branch 'release-0.2.0' of github.com:atlanhq/atlan-java into release-0.2.0
2 parents d5ce72d + fa7ac9e commit 6f4454c

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

src/liveTest/java/com/atlan/live/PurposeTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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();

src/main/java/com/atlan/model/admin/AbstractPurposePolicy.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

src/main/java/com/atlan/model/admin/PurposeDataPolicy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

src/main/java/com/atlan/model/admin/PurposeMetadataPolicy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)