Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RANGER-5064: checkstyle compliance updates - usersync modules #440

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ugsync-util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<packaging>jar</packaging>
<name>User Group Synchronizer Util</name>
<description>User Group Synchronizer Util</description>
<properties>
<checkstyle.failOnViolation>true</checkstyle.failOnViolation>
kumaab marked this conversation as resolved.
Show resolved Hide resolved
<checkstyle.skip>false</checkstyle.skip>
</properties>
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down Expand Up @@ -74,5 +78,4 @@
</dependencies>
</profile>
</profiles>

</project>
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