Image forming apparatus and control method to update an application in an image forming apparatus
A permission list for a host application associated with the host application is held, and a plug-in application is added to the host application a permission included in the plug-in application is added and updated to the permission list for the host application, and whether processing in the host application and the plug-in application is to be executed is determined based on the updated permission list.
1. An image forming apparatus comprising:
at least one processor and at least one memory coupled to each other and cooperating to act as:
a holding unit configured to hold a permission list for a host application associated with the host application;
an addition unit configured to add a plug-in application for expanding a function of the host application to the host application;
an update unit configured to add and update, in a case where a permission is included in the plug-in application, the permission included in the plug-in application to the permission list for the host application; and
a determination unit configured to determine whether processing in the host application with the plug-in application added thereto is to be executed based on the updated permission list,
wherein the plug-in application is not executed independently but executed in a state where the plug-in application is added to the host application.
2. The image forming apparatus according to claim 1 , wherein the plug-in application holds a permission definition file including a permission for the plug-in application.
3. The image forming apparatus according to claim 1 , wherein the permission list for the host application includes identification information for identifying the host application.
4. The image forming apparatus according to claim 1 , further comprising:
a first receiving unit configured to receive an instruction to add the plug-in application to the host application,
wherein the addition unit adds the plug-in application to the host application based on an instruction received by the first receiving unit.
5. The image forming apparatus according to claim 1 , further comprising a deletion unit configured to delete the plug-in application from the host application.
6. The image forming apparatus according to claim 5 , further comprising a second receiving unit configured to receive an instruction to delete the plug-in application from the host application.
7. The image forming apparatus according to claim 6 , wherein the deletion unit deletes the plug-in application from the host application based on an instruction received by the second receiving unit.
8. The image forming apparatus according to claim 6 , further comprising a second deletion unit configured to delete a permission included in the plug-in application from the updated permission list based on an instruction received by the second receiving unit.
9. The image forming apparatus according to claim 8 , wherein the second deletion unit deletes the permission included in the plug-in application from the updated permission list and adds a permission included in the host application.
10. A control method for an image forming apparatus, the control method comprising:
adding a plug-in application for expanding a function of the host application to a host application;
adding and updating, in a case where a permission is included in the plug-in application, the permission included in the plug-in application to a permission list for the host application associated with the host application; and
determining whether processing in the host application with the plug-in application added thereto is to be executed based on the updated permission list,
wherein the plug-in application is not executed independently but executed in a state where the plug-in application is added to the host application.
11. The control method for the image forming apparatus according to claim 10 , wherein the plug-in application holds a permission definition file including a permission for the plug-in application.
12. The control method for the image forming apparatus according to claim 10 , wherein the permission list for the host application includes identification information for identifying the host application.