Class AttributeRightDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.identitystore.business.contract.AttributeRightDAO
-
- All Implemented Interfaces:
IAttributeRightDAO
public final class AttributeRightDAO extends java.lang.Object implements IAttributeRightDAO
This class provides rights Access methods for Attribute objects
-
-
Field Summary
-
Fields inherited from interface fr.paris.lutece.plugins.identitystore.business.contract.IAttributeRightDAO
BEAN_NAME
-
-
Constructor Summary
Constructors Constructor Description AttributeRightDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinsert(AttributeRight attributeRight, int serviceContractId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.voidremoveAttributeRights(ServiceContract serviceContract, fr.paris.lutece.portal.service.plugin.Plugin plugin)remove all rights for provided applicationjava.util.List<AttributeRight>selectAttributeRights(ServiceContract serviceContract, fr.paris.lutece.portal.service.plugin.Plugin plugin)retrieve all attributes and its rights for provided applicationvoidstore(AttributeRight attributeRight, int serviceContractId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(AttributeRight attributeRight, int serviceContractId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIAttributeRightDAO- Parameters:
attributeRight- instance of the AttributeRight object to insertplugin- the Plugin
-
store
public void store(AttributeRight attributeRight, int serviceContractId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIAttributeRightDAO- Parameters:
attributeRight- the reference of the AttributeRightplugin- the Plugin
-
selectAttributeRights
public java.util.List<AttributeRight> selectAttributeRights(ServiceContract serviceContract, fr.paris.lutece.portal.service.plugin.Plugin plugin)
retrieve all attributes and its rights for provided application- Specified by:
selectAttributeRightsin interfaceIAttributeRightDAO- Parameters:
serviceContract- applicationplugin- the Plugin- Returns:
- list of all attributes with rights for provided application
-
removeAttributeRights
public void removeAttributeRights(ServiceContract serviceContract, fr.paris.lutece.portal.service.plugin.Plugin plugin)
remove all rights for provided application- Specified by:
removeAttributeRightsin interfaceIAttributeRightDAO- Parameters:
serviceContract- serviceContractplugin- the Plugin
-
-