ProductOpener::Orgs - manages organizations
ProductOpener::Orgs
contains functions to create and edit organization profiles.
use ProductOpener::Orgs qw/:all/; [..]
[..]
Organization profile data is kept in files in the $BASE_DIRS{ORGS} directory. If it does not exist yet, the directory is created when the module is initialized.
Identifier for the org (without the "org-" prefix) or org name.
This function returns a hash ref for the org, or undef if the org does not exist.
This function returns an array of all existing org ids
Save changes to an org
Hash ref for the org object.
None
Creates a new org.
User id of the user creating the org (it can be the first user of the org, or an admin that creates an org by assigning an user to it).
Identifier for the org (without the "org-" prefix), or org name.
This function returns a hash ref for the org.
If the org exists, the function returns the org object. Otherwise it creates a new org.
User id of the user creating the org (it can be the first user of the org, or an admin that creates an org by assigning an user to it).
Identifier for the org (without the "org-" prefix), or org name.
This function returns a hash ref for the org.
If the org exists, the function returns the org object. Otherwise it creates a new org.
User id of the user creating the org (it can be the first user of the org, or an admin that creates an org by assigning an user to it).
Identifier for the org (without the "org-" prefix), or org name.
This function returns a hash ref for the org.
Add the user to the specified groups of an organization.
Org id or org object.
User id.
Reference to an array of group ids (e.g. ["admins", "members"])
Remove the user from the specified groups of an organization.
Org id or org object.
User id.
Reference to an array of group ids (e.g. ["admins", "members"])
Update the last import type for an organization.
Systematically return the org_ref for a given org_id or org_ref.