Person
person.new
creates a new person and returns the person_id
. The function must be given the full name of the person in two pieces: first_names
and last_name
. All other fields are optional and default to null except for object_type
which defaults to person and creation_date
which defaults to sysdate
. The interface for this function is:
function person.new (
person_id persons.person_id%TYPE,
object_type acs_objects.object_type%TYPE,
creation_date acs_objects.creation_date%TYPE,
creation_user acs_objects.creation_user%TYPE,
creation_ip acs_objects.creation_ip%TYPE,
email parties.email%TYPE,
url parties.url%TYPE,
first_names persons.first_names%TYPE,
last_name persons.last_name%TYPE
) return persons.person_id%TYPE;
person.delete
deletes the person whose person_id
is passed to it. The interface for this procedure is:
procedure person.delete (
person_id persons.person_id%TYPE
);
person.name
returns the name of the person whose person_id
is passed to it. The interface for this function is:
function person.name (
person_id persons.person_id%TYPE
) return varchar;
User
acs_user.new
creates a new user and returns the user_id
. The function must be given the user's email address and the full name of the user in two pieces: first_names
and last_name
. All other fields are optional. The interface for this function is:
function acs_user.new (
user_id users.user_id%TYPE,
object_type acs_objects.object_type%TYPE,
creation_date acs_objects.creation_date%TYPE,
creation_user acs_objects.creation_user%TYPE,
creation_ip acs_objects.creation_ip%TYPE,
email parties.email%TYPE,
url parties.url%TYPE,
first_names persons.first_names%TYPE,
last_name persons.last_name%TYPE
password users.password%TYPE,
salt users.salt%TYPE,
password_question users.password_question%TYPE,
password_answer users.password_answer%TYPE,
screen_name users.screen_name%TYPE,
email_verified_p users.email_verified_p%TYPE
) return users.user_id%TYPE;
acs_user.delete
deletes the user whose user_id
is passed to it. The interface for this procedure is:
procedure acs_user.delete (
user_id users.user_id%TYPE
);
acs_user.receives_alerts_p
returns 't' if the user should receive email alerts and 'f' otherwise. The interface for this function is:
function acs_user.receives_alerts_p (
user_id users.user_id%TYPE
) return varchar;
Use the procedures acs_user.approve_email
and acs_user.unapprove_email
to specify whether the user's email address is valid. The interface for these procedures are:
procedure acs_user.approve_email (
user_id users.user_id%TYPE
);
procedure acs_user.unapprove_email (
user_id users.user_id%TYPE
);
Group
acs_group.new
creates a new group and returns the group_id
. All fields are optional and default to null except for object_type
which defaults to 'group', creation_date
which defaults to sysdate
, and group_name
which is required. The interface for this function is:
function acs_group.new (
group_id groups.group_id%TYPE,
object_type acs_objects.object_type%TYPE,
creation_date acs_objects.creation_date%TYPE,
creation_user acs_objects.creation_user%TYPE,
creation_ip acs_objects.creation_ip%TYPE,
email parties.email%TYPE,
url parties.url%TYPE,
group_name groups.group_name%TYPE
) return groups.group_id%TYPE;
acs_group.name
returns the name of the group whose group_id
is passed to it. The interface for this function is:
function acs_group.name (
group_id groups.group_id%TYPE
) return varchar;
acs_group.member_p
returns 't' if the specified party is a member of the specified group. Returns 'f' otherwise. The interface for this function is:
function acs_group.member_p (
group_id groups.group_id%TYPE,
party_id parties.party_id%TYPE,
) return char;
Membership Relationship
membership_rel.new
creates a new membership relationship type between two parties and returns the relationship type's rel_id
. All fields are optional and default to null except for rel_type
which defaults to membership_rel. The interface for this function is:
function membership_rel.new (
rel_id membership_rels.rel_id%TYPE,
rel_type acs_rels.rel_type%TYPE,
object_id_one acs_rels.object_id_one%TYPE,
object_id_two acs_rels.object_id_two%TYPE,
member_state membership_rels.member_state%TYPE,
creation_user acs_objects.creation_user%TYPE,
creation_ip acs_objects.creation_ip%TYPE,
) return membership_rels.rel_id%TYPE;
membership_rel.ban
sets the member_state
of the given rel_id
to 'banned'. The interface for this procedure is:
procedure membership_rel.ban (
rel_id membership_rels.rel_id%TYPE
);
membership_rel.approve
sets the member_state
of the given rel_id
to 'approved'. The interface for this procedure is:
procedure membership_rel.approve (
rel_id membership_rels.rel_id%TYPE
);
membership_rel.reject
sets the member_state
of the given rel_id
to 'rejected. The interface for this procedure is:
procedure membership_rel.reject (
rel_id membership_rels.rel_id%TYPE
);
membership_rel.unapprove
sets the member_state
of the given rel_id
to an empty string ''. The interface for this procedure is:
procedure membership_rel.unapprove (
rel_id membership_rels.rel_id%TYPE
);
membership_rel.deleted
sets the member_state
of the given rel_id
to 'deleted'. The interface for this procedure is:
procedure membership_rel.deleted (
rel_id membership_rels.rel_id%TYPE
);
membership_rel.delete
deletes the given rel_id
. The interface for this procedure is:
procedure membership_rel.delete (
rel_id membership_rels.rel_id%TYPE
);
Composition Relationship
composition_rel.new
creates a new composition relationship type and returns the relationship's rel_id
. All fields are optional and default to null except for rel_type
which defaults to composition_rel. The interface for this function is:
function membership_rel.new (
rel_id composition_rels.rel_id%TYPE,
rel_type acs_rels.rel_type%TYPE,
object_id_one acs_rels.object_id_one%TYPE,
object_id_two acs_rels.object_id_two%TYPE,
creation_user acs_objects.creation_user%TYPE,
creation_ip acs_objects.creation_ip%TYPE,
) return composition_rels.rel_id%TYPE;
composition_rel.delete
deletes the given rel_id
. The interface for this procedure is:
procedure membership_rel.delete (
rel_id composition_rels.rel_id%TYPE
);