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.extensions.ParticipantExtension;
import com.venky.swf.db.model.UserEmail;
import com.venky.swf.plugins.collab.db.model.user.User;
import com.venky.swf.pm.DataSecurityFilter;


public class UserEmailParticipantExtension extends ParticipantExtension{
	static {
		registerExtension(new UserEmailParticipantExtension());
	}
	
	@Override
	protected List getAllowedFieldValues(com.venky.swf.db.model.User user,
			UserEmail partiallyFilledModel, String fieldName) {
		
		if (fieldName.equalsIgnoreCase("USER_ID")){
			return DataSecurityFilter.getIds(DataSecurityFilter.getRecordsAccessible(User.class, user));
		}
		return null;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy