Class AttributeRightDAO
java.lang.Object
fr.paris.lutece.plugins.identitystore.business.contract.AttributeRightDAO
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidinsert(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 applicationselectAttributeRights(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
-
Constructor Details
-
AttributeRightDAO
public AttributeRightDAO()
-
-
Method Details
-
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 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
-