/[drupal]/contributions/modules/oi/README.txt
ViewVC logotype

Contents of /contributions/modules/oi/README.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Wed Jun 24 18:27:59 2009 UTC (5 months ago) by pukku
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--1
Changes since 1.1: +72 -0 lines
File MIME type: text/plain
Make head useful; preparatory to d6 version
1 OI (Organizational Infrastructure) is a module which provides a way for
2 site administrators to map users to an organizational structure. This
3 can then be used to restrict access to nodes.
4
5 OI allows you to define "entities", which have a hierarchical structure.
6 You then add users to entities. Entities can have defined roles, which
7 can be filled by one or more members. They can also have fields (much
8 of the field functionality is undeveloped right now) for tracking
9 information like addresses, creation dates, etc.
10
11 Once OI is installed, you need to define entity types. For example, we
12 have Organizations, Committees, Groups, Centers, and Hospitals. The
13 purpose of the different types is to allow you to define different roles
14 and fields for each type; no hierarchical structure is defined by the
15 types. To define types, you would go to "administer:settings:oi". Once
16 you've defined the types, you can add roles (like "committee chair",
17 "center primary investigator", "secretary", etc) to the entity types.
18
19 Once types have been defined, you go to "administer:oi entities", where
20 you actually define the various entities. The entity type can only be
21 set when initially creating the entity, but all other options can be
22 changed later. The options here are fairly straightforward, except for
23 "propagate membership up the tree". By default, when a user is added to
24 an entity, they are added to all the parent entities as well (this makes
25 sense; if you're a member of a committee in an organization, it's likely
26 you're a member of the organization as well). This can be overridden on
27 a per-user level if there are occasional exceptions to this rule.
28 However, there might be a case where members of a subcommittee shouldn't
29 have access (or be considered members) or the parent; in this case you
30 can stop members of this entity from automatically becoming members of
31 the parent entity.
32
33 Once entities have been set up, you can start adding users to the
34 various entities. This is done via the user settings (if you have a
35 large number of extant users, this may take some time). Edit the user,
36 and go to the OI tab (you will need to have permission to do this). For
37 each entity, you have four options.
38 - "" (ie, blank) means that the user is not explicitly a member
39 of the entity. However, this can be changed if a child entity
40 propagates membership upwards.
41 - "member" means that the user is a member of this entity,
42 and potentially any parent entities.
43 - "access only" means that the user is a member of the entity for
44 node access purposes (ie, they can see nodes restricted to this
45 entity), but not for any membership listings.
46 - "*remove*" means that even if the user is a member of a child
47 entity, they should not become a member of this entity (or
48 any further parent entities).
49 Once you have set the proper options, click "submit". At this point,
50 membership will be propagated up the tree, and the memberships will be
51 saved. If you come back to the screen, you may see "member" next to
52 entities you did not set it for initially -- this is normal.
53
54 Once you have users in an entity, you can set the roles for the entity.
55 To set the users for the various roles, go to "administer:oi entities",
56 and choose "edit data" for the entity you want to set up. For each
57 role, you can edit the role. Any role can be filled by one or more
58 members of the entity, but not by "access only" members. Any role can
59 be shared by as many members of the committee as you like. To remove a
60 user from a role, set their pop-up menu to "none".
61
62 Once you have users in entities, you can enable the restriction
63 mechanism. Go to "administer:settings:oi", and click "Turn Access
64 Restrictions On". (Right now, OI does not work with na_arbitrator; this
65 will be fixed when a version for Drupal 5 is released.) Users who have
66 permission to do so will now have the option to restrict data to any of
67 the entities they are members of. If you have users who need to be able
68 to restrict data to any entity, there is a permission that can be given
69 to a role to allow them to do this.
70
71 To be able to display membership lists, you need to set up the input
72 filter mechanism. I'll write more about this later.

  ViewVC Help
Powered by ViewVC 1.1.2