Skip to content

Commit

Permalink
RANGER-5064: checkstyle compliance updates - usersync modules
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaab authored and Abhishek Kumar committed Dec 10, 2024
1 parent 9930255 commit feccd90
Show file tree
Hide file tree
Showing 55 changed files with 8,041 additions and 8,815 deletions.
3 changes: 3 additions & 0 deletions ugsync-util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<packaging>jar</packaging>
<name>User Group Synchronizer Util</name>
<description>User Group Synchronizer Util</description>
<properties>
<checkstyle.failOnViolation>true</checkstyle.failOnViolation>
</properties>
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,89 +17,89 @@
* under the License.
*/

package org.apache.ranger.ugsyncutil.model;
package org.apache.ranger.ugsyncutil.model;

public class FileSyncSourceInfo {
private String fileName;
private String syncTime;
private String lastModified;
private long totalUsersSynced;
private long totalGroupsSynced;
private long totalUsersDeleted;
private long totalGroupsDeleted;

public String getFileName() {
return fileName;
}

public void setFileName(String fileName) {
this.fileName = fileName;
}

public String getSyncTime() {
return syncTime;
}

public void setSyncTime(String syncTime) {
this.syncTime = syncTime;
}

public String getLastModified() {
return lastModified;
}

public void setLastModified(String lastModified) {
this.lastModified = lastModified;
}

public long getTotalUsersSynced() {
return totalUsersSynced;
}

public void setTotalUsersSynced(long totalUsersSynced) {
this.totalUsersSynced = totalUsersSynced;
}

public long getTotalGroupsSynced() {
return totalGroupsSynced;
}

public void setTotalGroupsSynced(long totalGroupsSynced) {
this.totalGroupsSynced = totalGroupsSynced;
}

public long getTotalUsersDeleted() {
return totalUsersDeleted;
}

public void setTotalUsersDeleted(long totalUsersDeleted) {
this.totalUsersDeleted = totalUsersDeleted;
}

public long getTotalGroupsDeleted() {
return totalGroupsDeleted;
}

public void setTotalGroupsDeleted(long totalGroupsDeleted) {
this.totalGroupsDeleted = totalGroupsDeleted;
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
toString(sb);
return sb.toString();
}

public StringBuilder toString(StringBuilder sb) {
sb.append("FileSycnSourceInfo [fileName= ").append(fileName);
sb.append(", syncTime= ").append(syncTime);
sb.append(", lastModified= ").append(lastModified);
sb.append(", totalUsersSynced= ").append(totalUsersSynced);
sb.append(", totalGroupsSynced= ").append(totalGroupsSynced);
sb.append(", totalUsersDeleted= ").append(totalUsersDeleted);
sb.append(", totalGroupsDeleted= ").append(totalGroupsDeleted);
sb.append("]");
return sb;
}
private String fileName;
private String syncTime;
private String lastModified;
private long totalUsersSynced;
private long totalGroupsSynced;
private long totalUsersDeleted;
private long totalGroupsDeleted;

public String getFileName() {
return fileName;
}

public void setFileName(String fileName) {
this.fileName = fileName;
}

public String getSyncTime() {
return syncTime;
}

public void setSyncTime(String syncTime) {
this.syncTime = syncTime;
}

public String getLastModified() {
return lastModified;
}

public void setLastModified(String lastModified) {
this.lastModified = lastModified;
}

public long getTotalUsersSynced() {
return totalUsersSynced;
}

public void setTotalUsersSynced(long totalUsersSynced) {
this.totalUsersSynced = totalUsersSynced;
}

public long getTotalGroupsSynced() {
return totalGroupsSynced;
}

public void setTotalGroupsSynced(long totalGroupsSynced) {
this.totalGroupsSynced = totalGroupsSynced;
}

public long getTotalUsersDeleted() {
return totalUsersDeleted;
}

public void setTotalUsersDeleted(long totalUsersDeleted) {
this.totalUsersDeleted = totalUsersDeleted;
}

public long getTotalGroupsDeleted() {
return totalGroupsDeleted;
}

public void setTotalGroupsDeleted(long totalGroupsDeleted) {
this.totalGroupsDeleted = totalGroupsDeleted;
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
toString(sb);
return sb.toString();
}

public StringBuilder toString(StringBuilder sb) {
sb.append("FileSycnSourceInfo [fileName= ").append(fileName);
sb.append(", syncTime= ").append(syncTime);
sb.append(", lastModified= ").append(lastModified);
sb.append(", totalUsersSynced= ").append(totalUsersSynced);
sb.append(", totalGroupsSynced= ").append(totalGroupsSynced);
sb.append(", totalUsersDeleted= ").append(totalUsersDeleted);
sb.append(", totalGroupsDeleted= ").append(totalGroupsDeleted);
sb.append("]");
return sb;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.util.Set;

public class GroupUserInfo {
String groupName;
String groupName;
Set<String> addUsers;
Set<String> delUsers;

Expand Down
Loading

0 comments on commit feccd90

Please sign in to comment.