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

org.seedstack.seed.security.data.DataSecurityService Maven / Gradle / Ivy

/**
 * Copyright (c) 2013-2016, The SeedStack authors 
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package org.seedstack.seed.security.data;

/**
 * DataSecurityService is the SEED interface that offers data security related services .
 * 

* It offers methods that helps dealing with data access restriction according to permissions and roles. *

* DataSecurityService is used in conjunction with {@link org.seedstack.seed.security.spi.data.DataSecurityHandler}. * {@link org.seedstack.seed.security.spi.data.DataSecurityHandler} will help functions developers to add behaviour on annotation. * * @author [email protected] * @see org.seedstack.seed.security.spi.data.DataSecurityHandler */ public interface DataSecurityService { /** * This method will modify the state of c according the role and permissions of the current user. *

* It means data will be modified accordingly. * * @param the type of the candidate. * @param candidate the object to be modified. */ void secure(C candidate); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy