1. How to protect files with ForceField.NET Web Edition?
Here we assume that you are working with default
installation of the ForceField.NET Web Edition. For
example, with our demo-installation.
1.1. Go to “Manage File Protection” page from the
ForceField.NET Web Edition home page.
You see main (or home)
page of ForceField.NET Web Edition if you append
“/forcefield” to the root path of the protected site. If
you are already at some page of the ForceField.NET Web
Edition control panel, you can switch to the home page by
clicking
button, which is always situated at the top
right of the page. Upon first attempt of getting to home
page of
ForceField.NET Web Edition administration pages you
will probably have to login. For authorization in our
sample application, please,
use name “admin” and password “12345”.
When you are at the ForceField.NET Web Edition home page
click the first section—“Manage file protection”:
1.2. Select one or several files, you want to protect.
Left side of the “Manage file protection” page
represents list of folders and files that potentially could
be protected with ForceField.NET Web Edition. You can
select any number of items (files or folders) and change
their protection status in the ForceField.NET
database.
To select one item, left click its name. To select
several sequential items, left click starting item, press
and hold Shift key and them left click finishing item. To
unselect all, left click the name of a current catalog in
the path string about the files and folders list.
You can also add items to selection, if you will left
click them while holding Ctrl key:
When you select one or several items, the “Protect
item(s)” button appears at the right side of the page. This
button allows you to choose the access class for selected
items:
1.3. Select named access class for selected items.
At the “Put items under protection” page we can see a
list of items, earlier selected for protection by
ForceField.NET Web Edition. On the right of it you can find
a form with list of named access classes. The named classes
was defined sometimes in the past, using specialized page
of control panel. Select an access class you want to
assign:
To approve you choice, click “Assign” button at the
class selection form:
2. Are files protected?
After pressing of “Assign” button you will be returned
to the files selection page. Files, you have selected
earlier, remain selected; at the right side of the page you
can see “Details” pane with attributes “Protection: yes”
and (in our sample) “Class: Demo Viewable”.
Unselect all items by clicking the name of a current
directory (on the screenshot it is a root catalog
symbol—slash):
If you now select any protected file (they are violet)
you will see “Edit access rights” button at the rights
side:
Clicking at this button brings you to the access rights
edit page. It looks the same as the page we used to put
files under protection. Since we have selected only one
item, in the form in the middle we can see the name of its
access class (“Demo Viewable”) and in the form on the
right—the structure of this class. The class consists of
rules from base class “Admin Only” with addition of the
rule allowing to perform “GET” operation for users who
plays role “demoadmin” in the context of selected file:
You can see rules of “Admin Only” access class if you
select “Manage Classes” section at the
ForceField.NET Web Edition home page:
Click at the “Admin Only” class to see its definition.
This class is not based on any other class and has only one
rule denying any operation to any user:
So we see that there are two rules defined for the
concerned file: all operations for all users are denied,
excepting the “GET” operation, which is allowed for any
user, playing “demoadmin” role in context of this file.
