|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
nesstar.rdf.RDFObject
nesstar.api.acu.User
public class User
Code automatically generated from ARGO/UML
| Field Summary | |
|---|---|
static String |
CLASS_ID
|
| Fields inherited from class nesstar.rdf.RDFObject |
|---|
COLSEP, IS_GETTER, IS_PART, IS_PART_OF, WRITE_OP |
| Constructor Summary | |
|---|---|
User(RDFDB db,
URL id)
Create an object with the indicated id in the indicated db |
|
| Method Summary | |
|---|---|
Bookmark |
AddAgreement(String agreementID)
add an agreement to the list of agreements accepted by the user. |
void |
AddAgreement(String agreementID,
BasicExecutorLog log)
add an agreement to the list of agreements accepted by the user. |
Bookmark |
AddProject(String projectID)
Add a new project to the list of project subscribed by the user. |
void |
AddProject(String projectID,
BasicExecutorLog log)
Add a new project to the list of project subscribed by the user. |
Bookmark |
AddPurpose(String purposeID)
add a new purpose to the list of purpose assigned to the user |
void |
AddPurpose(String purposeID,
BasicExecutorLog log)
add a new purpose to the list of purpose assigned to the user |
Bookmark |
AddRole(String roleID)
add a new role to the user. |
void |
AddRole(String roleID,
BasicExecutorLog log)
add a new role to the user. |
Bookmark |
ChangePassword(String password)
Change the user's password |
void |
ChangePassword(String password,
BasicExecutorLog log)
Change the user's password |
void |
clear()
Clear all properties of this object |
Bookmark |
DeleteProject(String roleID)
Delete a Project from the list of user's projects |
void |
DeleteProject(String roleID,
BasicExecutorLog log)
Delete a Project from the list of user's projects |
Bookmark |
DeletePurpose(String purposeID)
Delete a Role from the list of user's roles |
void |
DeletePurpose(String purposeID,
BasicExecutorLog log)
Delete a Role from the list of user's roles |
Bookmark |
DeleteRole(String roleID)
Delete a Role from the list of user's roles |
void |
DeleteRole(String roleID,
BasicExecutorLog log)
Delete a Role from the list of user's roles |
RDFRef |
get_agreements()
|
String |
get_modificationDate()
|
RDFRef |
get_projects()
|
RDFRef |
get_purposes()
|
RDFRef |
get_roles()
|
List |
getAgreements()
|
static Vector |
getAllInstances()
|
static Vector |
getAllInstances(RDFDB db)
|
static FeatureDescriptor |
getDescriptor(String featureName)
get the descriptor for a feature of the class, either method or attribute Note: the methods' feature are still not implemented |
static Collection |
getGetterMethods()
|
static User |
getInstance(RDFDB db,
URL id)
If an object of type User with the indicated id exists in the db returns it otherwise create a new object in the db and returns it |
static User |
getInstance(String rdf)
|
Date |
getModificationDate()
Represents the date when the user was created or their details modified |
static Collection |
getPartsDescriptor()
|
List |
getProjects()
|
List |
getPurposes()
|
List |
getRoles()
|
void |
initialised()
Notify that the object has been created and its properties setup for the first time. |
static void |
listenForNewObj(NewObjListener listener)
Register to be notified when new objects are added. |
static User |
newInstance(RDFDB db)
Create a new object of this type with a locally unique id and returns it |
Bookmark |
Remove()
delete the user and all his/her soft properties |
void |
Remove(BasicExecutorLog log)
delete the user and all his/her soft properties |
static User |
retrieve(URL id)
If an object of type User with the indicated id has already being retrieved from the network returns it otherwise retrieve it together with its class information (methods, properties, etc.) |
void |
set_agreements(RDFRef agreements)
|
void |
set_modificationDate(String modificationDate)
|
void |
set_projects(RDFRef projects)
|
void |
set_purposes(RDFRef purposes)
|
void |
set_roles(RDFRef roles)
|
void |
setAgreements(List agreements)
|
void |
setModificationDate(Date modificationDate)
Represents the date when the user was created or their details modified |
Bookmark |
SetProject(String projectID)
Select a project from the list of available projects to be used in the current session or current transaction |
void |
SetProject(String projectID,
BasicExecutorLog log)
Select a project from the list of available projects to be used in the current session or current transaction |
void |
setProjects(List projects)
|
void |
setPurposes(List purposes)
|
Bookmark |
SetRole(String purposeID)
it is used by the ACU challenge to select the purpose for the session |
void |
SetRole(String purposeID,
BasicExecutorLog log)
it is used by the ACU challenge to select the purpose for the session |
void |
setRoles(List roles)
|
| Methods inherited from class java.util.Observable |
|---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static String CLASS_ID
| Constructor Detail |
|---|
public User(RDFDB db,
URL id)
throws Exception
db - the db where the object is to be createdid - the id of the object to create
Exception| Method Detail |
|---|
public void set_agreements(RDFRef agreements)
agreements -
public void setAgreements(List agreements)
throws Exception
agreements -
Exceptionpublic void set_roles(RDFRef roles)
roles -
public void setRoles(List roles)
throws Exception
roles -
Exceptionpublic void set_projects(RDFRef projects)
projects -
public void setProjects(List projects)
throws Exception
projects -
Exceptionpublic void set_purposes(RDFRef purposes)
purposes -
public void setPurposes(List purposes)
throws Exception
purposes -
Exceptionpublic void setModificationDate(Date modificationDate)
Represents the date when the user was created or their details modified
modificationDate - public void set_modificationDate(String modificationDate)
modificationDate -
public Bookmark SetProject(String projectID)
throws Exception
Select a project from the list of available projects to be used in the current session or current transaction
projectID - the id of the project
Exception
public void SetProject(String projectID,
BasicExecutorLog log)
throws Exception
Select a project from the list of available projects to be used in the current session or current transaction
projectID - the id of the project
log - the Executor of this method;if null a default one is used
Exception
public Bookmark SetRole(String purposeID)
throws Exception
it is used by the ACU challenge to select the purpose for the session
Name depends from old implementation of the Access Control Unit.
purposeID - the id of the purpose to be set
Exception
public void SetRole(String purposeID,
BasicExecutorLog log)
throws Exception
it is used by the ACU challenge to select the purpose for the session
Name depends from old implementation of the Access Control Unit.
purposeID - the id of the purpose to be set
log - the Executor of this method;if null a default one is used
Exception
public static Vector getAllInstances(RDFDB db)
throws Exception
db - the db where the instances are to be found
Exception
public static Vector getAllInstances()
throws Exception
Exception
public static User getInstance(RDFDB db,
URL id)
throws Exception
db - the db where the object is to be found or createdid - the id of the object to retrieve or create
Exception
public static User getInstance(String rdf)
throws Exception
rdf - some rdf code that contains a description of an object of this kind
Exception
public RDFRef get_agreements()
throws Exception
Exception
public List getAgreements()
throws Exception
The list of agreements accepted by the user
Exception
public RDFRef get_roles()
throws Exception
Exception
public List getRoles()
throws Exception
The list of roles assigned to the user
Exception
public RDFRef get_projects()
throws Exception
Exception
public List getProjects()
throws Exception
The list of projects subscribed by the user
Exception
public RDFRef get_purposes()
throws Exception
Exception
public List getPurposes()
throws Exception
The list of purposes the user can have for accessing a resource
Exceptionpublic Date getModificationDate()
Represents the date when the user was created or their details modified
public String get_modificationDate()
throws Exception
Exceptionpublic static FeatureDescriptor getDescriptor(String featureName)
featureName - public static Collection getPartsDescriptor()
public static Collection getGetterMethods()
public static User newInstance(RDFDB db)
throws Exception
db - the db where the object is to be found or created
Exceptionpublic static void listenForNewObj(NewObjListener listener)
listener - the listenerpublic void initialised()
initialised in class RDFObject
public static User retrieve(URL id)
throws Exception
id - the id of the object to retrieve
Exceptionpublic void clear()
RDFObject
clear in class RDFObject
public Bookmark AddAgreement(String agreementID)
throws Exception
add an agreement to the list of agreements accepted by the user.
agreementID - the id of the agreement to be accepted,as declared in
the policy file
Exception
public void AddAgreement(String agreementID,
BasicExecutorLog log)
throws Exception
add an agreement to the list of agreements accepted by the user.
agreementID - the id of the agreement to be accepted,as declared in
the policy file
log - the Executor of this method;if null a default one is used
Exception
public Bookmark AddRole(String roleID)
throws Exception
add a new role to the user.
Access to this operation is granted ONLY to administrators
roleID - the id of the role as declared in the policy file
Exception
public void AddRole(String roleID,
BasicExecutorLog log)
throws Exception
add a new role to the user.
Access to this operation is granted ONLY to administrators
roleID - the id of the role as declared in the policy file
log - the Executor of this method;if null a default one is used
Exception
public Bookmark AddProject(String projectID)
throws Exception
Add a new project to the list of project subscribed by the user.
Access to this operation is granted ONLY to administrators
projectID -
Exception
public void AddProject(String projectID,
BasicExecutorLog log)
throws Exception
Add a new project to the list of project subscribed by the user.
Access to this operation is granted ONLY to administrators
projectID - log - the Executor of this method;if null a default one is used
Exception
public Bookmark ChangePassword(String password)
throws Exception
Change the user's password
Access to this operation is granted ONLY to administrators or to the user whose password is being changed
password - the new password
Exception
public void ChangePassword(String password,
BasicExecutorLog log)
throws Exception
Change the user's password
Access to this operation is granted ONLY to administrators or to the user whose password is being changed
password - the new password
log - the Executor of this method;if null a default one is used
Exception
public Bookmark DeleteRole(String roleID)
throws Exception
Delete a Role from the list of user's roles
Access to this operation is granted ONLY to administrators
roleID - the id of the role to be deleted
Exception
public void DeleteRole(String roleID,
BasicExecutorLog log)
throws Exception
Delete a Role from the list of user's roles
Access to this operation is granted ONLY to administrators
roleID - the id of the role to be deleted
log - the Executor of this method;if null a default one is used
Exception
public Bookmark DeletePurpose(String purposeID)
throws Exception
Delete a Role from the list of user's roles
Access to this operation is granted ONLY to administrators
purposeID - the is of the purpose to be deleted
Exception
public void DeletePurpose(String purposeID,
BasicExecutorLog log)
throws Exception
Delete a Role from the list of user's roles
Access to this operation is granted ONLY to administrators
purposeID - the is of the purpose to be deleted
log - the Executor of this method;if null a default one is used
Exception
public Bookmark AddPurpose(String purposeID)
throws Exception
add a new purpose to the list of purpose assigned to the user
Access to this operation is granted ONLY to administrators
purposeID - the is of the purpose to be added
Exception
public void AddPurpose(String purposeID,
BasicExecutorLog log)
throws Exception
add a new purpose to the list of purpose assigned to the user
Access to this operation is granted ONLY to administrators
purposeID - the is of the purpose to be added
log - the Executor of this method;if null a default one is used
Exception
public Bookmark DeleteProject(String roleID)
throws Exception
Delete a Project from the list of user's projects
Access to this operation is granted ONLY to administrators
roleID -
Exception
public void DeleteProject(String roleID,
BasicExecutorLog log)
throws Exception
Delete a Project from the list of user's projects
Access to this operation is granted ONLY to administrators
roleID - log - the Executor of this method;if null a default one is used
Exception
public Bookmark Remove()
throws Exception
delete the user and all his/her soft properties
Access to this operation is granted ONLY to administrators.
Exception
public void Remove(BasicExecutorLog log)
throws Exception
delete the user and all his/her soft properties
Access to this operation is granted ONLY to administrators.
log - the Executor of this method;if null a default one is used
Exception
|
Nesstar SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||