All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.venky.swf.plugins.collab.extensions.participation.UserEmailParticipantExtension Maven / Gradle / Ivy

There is a newer version: 2.12
Show newest version
package com.venky.swf.plugins.collab.extensions.participation;

import java.util.List;

import com.venky.swf.db.model.User;
import com.venky.swf.db.model.UserEmail;
import com.venky.swf.pm.DataSecurityFilter;


public class UserEmailParticipantExtension extends CompanySpecificParticipantExtension{
	static {
		registerExtension(new UserEmailParticipantExtension());
	}
	
	@Override
	protected List getAllowedFieldValues(User user,
			UserEmail partiallyFilledModel, String fieldName) {
		if (fieldName.equalsIgnoreCase("USER_ID")){
			return DataSecurityFilter.getIds(DataSecurityFilter.getRecordsAccessible(User.class, user));
		}
		return super.getAllowedFieldValues(user, partiallyFilledModel, fieldName);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy