private boolean match(ActiveParticipant ap) { if (!isEmptyOrContains(userIDs, ap.getUserID())) return false; if (!isEmptyOrContains(alternativeUserIDs, ap.getAlternativeUserID())) return false; if (!isEmptyOrContains(networkAccessPointIDs, ap.getNetworkAccessPointID())) return false; if (!matchRoleIDCodes(ap.getRoleIDCode())) return false; return userIsRequestor == null || ap.isUserIsRequestor() == userIsRequestor.booleanValue(); }
private boolean match(ActiveParticipant ap) { if (!isEmptyOrContains(userIDs, ap.getUserID())) return false; if (!isEmptyOrContains(alternativeUserIDs, ap.getAlternativeUserID())) return false; if (!isEmptyOrContains(networkAccessPointIDs, ap.getNetworkAccessPointID())) return false; if (!matchRoleIDCodes(ap.getRoleIDCode())) return false; return userIsRequestor == null || ap.isUserIsRequestor() == userIsRequestor.booleanValue(); }
public ActiveParticipant createActiveParticipant( boolean requestor, String userID, String alternativeUserID, String userName, String hostName, RoleIDCode... roleIDs) { ActiveParticipant ap = new ActiveParticipant(); ap.setUserID(userID); ap.setAlternativeUserID(alternativeUserID); ap.setUserName(userName); ap.setUserIsRequestor(requestor); ap.setNetworkAccessPointID(hostName); ap.setNetworkAccessPointTypeCode(AuditMessages.isIP(hostName) ? AuditMessages.NetworkAccessPointTypeCode.IPAddress : AuditMessages.NetworkAccessPointTypeCode.MachineName); for (RoleIDCode roleID : roleIDs) ap.getRoleIDCode().add(roleID); return ap; }
public ActiveParticipant createActiveParticipant( boolean requestor, String userID, String alternativeUserID, String userName, String hostName, RoleIDCode... roleIDs) { ActiveParticipant ap = new ActiveParticipant(); ap.setUserID(userID); ap.setAlternativeUserID(alternativeUserID); ap.setUserName(userName); ap.setUserIsRequestor(requestor); ap.setNetworkAccessPointID(hostName); ap.setNetworkAccessPointTypeCode(AuditMessages.isIP(hostName) ? AuditMessages.NetworkAccessPointTypeCode.IPAddress : AuditMessages.NetworkAccessPointTypeCode.MachineName); for (RoleIDCode roleID : roleIDs) ap.getRoleIDCode().add(roleID); return ap; }
private static ActiveParticipant toActiveParticipant(ActiveParticipantBuilder activeParticipantBuilder) { ActiveParticipant ap = new ActiveParticipant(); ap.setUserID(activeParticipantBuilder.userID); ap.setUserIDTypeCode(activeParticipantBuilder.userIDTypeCode); ap.setUserTypeCode(activeParticipantBuilder.userTypeCode); ap.setAlternativeUserID(activeParticipantBuilder.altUserID); ap.setUserName(activeParticipantBuilder.userName); ap.setUserIsRequestor(activeParticipantBuilder.requester); ap.setNetworkAccessPointID(activeParticipantBuilder.napID); ap.setNetworkAccessPointTypeCode(activeParticipantBuilder.napTypeCode); ap.setMediaType(activeParticipantBuilder.mediaType); for (RoleIDCode roleID : activeParticipantBuilder.roleIDCode) ap.getRoleIDCode().add(roleID); return ap; }
private static ActiveParticipant toActiveParticipant(ActiveParticipantBuilder activeParticipantBuilder) { ActiveParticipant ap = new ActiveParticipant(); ap.setUserID(activeParticipantBuilder.userID); ap.setUserIDTypeCode(activeParticipantBuilder.userIDTypeCode); ap.setUserTypeCode(activeParticipantBuilder.userTypeCode); ap.setAlternativeUserID(activeParticipantBuilder.altUserID); ap.setUserName(activeParticipantBuilder.userName); ap.setUserIsRequestor(activeParticipantBuilder.requester); ap.setNetworkAccessPointID(activeParticipantBuilder.napID); ap.setNetworkAccessPointTypeCode(activeParticipantBuilder.napTypeCode); ap.setMediaType(activeParticipantBuilder.mediaType); for (RoleIDCode roleID : activeParticipantBuilder.roleIDCode) ap.getRoleIDCode().add(roleID); return ap; }