nesstar.api.acu
Class User

java.lang.Object
  extended by java.util.Observable
      extended by nesstar.rdf.RDFObject
          extended by nesstar.api.acu.User
All Implemented Interfaces:
Comparable, RDFObj

public class User
extends RDFObject

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 nesstar.rdf.RDFObject
AddProperty, AddStringProperty, chkFinal, compareTo, dbg, equals, err, err, get_comment, get_creationDate, get_label, get, getAccessCondition, getBinding, getBindings, getBookmarkLabel, getCollectionURL, getComment, getCreationDate, getDB, getDescriptor, getDomain, getID, getInitialisedProperties, getInternalID, getLabel, getLastClear, getPartsDescriptor, getPartsDescriptor, getPath, getProperties, GetProperties, GetProperty, GetPropertyStatement, GetPropertyStatements, getRange, getRangeType, getRef, getRef, getServer, getShortId, getShortID, getStatementHome, GetStringProperties, GetStringProperty, getTimeoutInSecs, getType, init, init, isComplete, isLocal, isMeta, isStale, loaded, neededCollectionReload, neededReload, neededReload, neededReload, neededReload, needsReload, reload, remove, set_comment, set_complete, set_creationDate, set_label, set, setComment, setComplete, setCreationDate, setDB, setHardOrSoft, setID, setLabel, setLastClear, SetProperty, setServer, SetStringProperty, setTimeoutInSecs, setTimestamp, setType, setTypeID, stale, toRDF, toRDFWrapped, toString, update
 
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

CLASS_ID

public static String CLASS_ID
Constructor Detail

User

public User(RDFDB db,
            URL id)
     throws Exception
Create an object with the indicated id in the indicated db

Parameters:
db - the db where the object is to be created
id - the id of the object to create
Throws:
Exception
Method Detail

set_agreements

public void set_agreements(RDFRef agreements)
Parameters:
agreements -

setAgreements

public void setAgreements(List agreements)
                   throws Exception
Parameters:
agreements -
Throws:
Exception

set_roles

public void set_roles(RDFRef roles)
Parameters:
roles -

setRoles

public void setRoles(List roles)
              throws Exception
Parameters:
roles -
Throws:
Exception

set_projects

public void set_projects(RDFRef projects)
Parameters:
projects -

setProjects

public void setProjects(List projects)
                 throws Exception
Parameters:
projects -
Throws:
Exception

set_purposes

public void set_purposes(RDFRef purposes)
Parameters:
purposes -

setPurposes

public void setPurposes(List purposes)
                 throws Exception
Parameters:
purposes -
Throws:
Exception

setModificationDate

public void setModificationDate(Date modificationDate)

Represents the date when the user was created or their details modified

Parameters:
modificationDate -

set_modificationDate

public void set_modificationDate(String modificationDate)
Parameters:
modificationDate -

SetProject

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

Parameters:
projectID - the id of the project

Throws:
Exception

SetProject

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

Parameters:
projectID - the id of the project

log - the Executor of this method;if null a default one is used
Throws:
Exception

SetRole

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.

Parameters:
purposeID - the id of the purpose to be set

Throws:
Exception

SetRole

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.

Parameters:
purposeID - the id of the purpose to be set

log - the Executor of this method;if null a default one is used
Throws:
Exception

getAllInstances

public static Vector getAllInstances(RDFDB db)
                              throws Exception
Parameters:
db - the db where the instances are to be found
Returns:
all the instances of this class in the database
Throws:
Exception

getAllInstances

public static Vector getAllInstances()
                              throws Exception
Returns:
get all the instances of this class from the default database
Throws:
Exception

getInstance

public static User getInstance(RDFDB db,
                               URL id)
                        throws Exception
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

Parameters:
db - the db where the object is to be found or created
id - the id of the object to retrieve or create
Returns:
an object of type Server with the indicated id and existing in the indicated db
Throws:
Exception

getInstance

public static User getInstance(String rdf)
                        throws Exception
Parameters:
rdf - some rdf code that contains a description of an object of this kind
Returns:
the single instance of this class described in the passed RDF code
Throws:
Exception

get_agreements

public RDFRef get_agreements()
                      throws Exception
Throws:
Exception

getAgreements

public List getAgreements()
                   throws Exception
Returns:

The list of agreements accepted by the user

Throws:
Exception

get_roles

public RDFRef get_roles()
                 throws Exception
Throws:
Exception

getRoles

public List getRoles()
              throws Exception
Returns:

The list of roles assigned to the user

Throws:
Exception

get_projects

public RDFRef get_projects()
                    throws Exception
Throws:
Exception

getProjects

public List getProjects()
                 throws Exception
Returns:

The list of projects subscribed by the user

Throws:
Exception

get_purposes

public RDFRef get_purposes()
                    throws Exception
Throws:
Exception

getPurposes

public List getPurposes()
                 throws Exception
Returns:

The list of purposes the user can have for accessing a resource

Throws:
Exception

getModificationDate

public Date getModificationDate()

Represents the date when the user was created or their details modified


get_modificationDate

public String get_modificationDate()
                            throws Exception
Throws:
Exception

getDescriptor

public 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

Parameters:
featureName -

getPartsDescriptor

public static Collection getPartsDescriptor()
Returns:
the descriptor of the attribute that are part of the class

getGetterMethods

public static Collection getGetterMethods()
Returns:
the descriptor of the attribute that are part of the class

newInstance

public static User newInstance(RDFDB db)
                        throws Exception
Create a new object of this type with a locally unique id and returns it

Parameters:
db - the db where the object is to be found or created
Returns:
an object of this type
Throws:
Exception

listenForNewObj

public static void listenForNewObj(NewObjListener listener)
Register to be notified when new objects are added.

Parameters:
listener - the listener

initialised

public void initialised()
Notify that the object has been created and its properties setup for the first time. This is NOT called when the object is simply reloaded.

Overrides:
initialised in class RDFObject

retrieve

public static User retrieve(URL id)
                     throws Exception
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.)

Parameters:
id - the id of the object to retrieve
Returns:
an object of type User with the indicated id
Throws:
Exception

clear

public void clear()
Description copied from class: RDFObject
Clear all properties of this object

Overrides:
clear in class RDFObject

AddAgreement

public Bookmark AddAgreement(String agreementID)
                      throws Exception

add an agreement to the list of agreements accepted by the user.

Parameters:
agreementID - the id of the agreement to be accepted,as declared in the policy file

Throws:
Exception

AddAgreement

public void AddAgreement(String agreementID,
                         BasicExecutorLog log)
                  throws Exception

add an agreement to the list of agreements accepted by the user.

Parameters:
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
Throws:
Exception

AddRole

public Bookmark AddRole(String roleID)
                 throws Exception

add a new role to the user.

Access to this operation is granted ONLY to administrators

Parameters:
roleID - the id of the role as declared in the policy file

Throws:
Exception

AddRole

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

Parameters:
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
Throws:
Exception

AddProject

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

Parameters:
projectID -

Throws:
Exception

AddProject

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

Parameters:
projectID -

log - the Executor of this method;if null a default one is used
Throws:
Exception

ChangePassword

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

Parameters:
password - the new password

Throws:
Exception

ChangePassword

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

Parameters:
password - the new password

log - the Executor of this method;if null a default one is used
Throws:
Exception

DeleteRole

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

Parameters:
roleID - the id of the role to be deleted

Throws:
Exception

DeleteRole

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

Parameters:
roleID - the id of the role to be deleted

log - the Executor of this method;if null a default one is used
Throws:
Exception

DeletePurpose

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

Parameters:
purposeID - the is of the purpose to be deleted

Throws:
Exception

DeletePurpose

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

Parameters:
purposeID - the is of the purpose to be deleted

log - the Executor of this method;if null a default one is used
Throws:
Exception

AddPurpose

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

Parameters:
purposeID - the is of the purpose to be added

Throws:
Exception

AddPurpose

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

Parameters:
purposeID - the is of the purpose to be added

log - the Executor of this method;if null a default one is used
Throws:
Exception

DeleteProject

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

Parameters:
roleID -
Throws:
Exception

DeleteProject

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

Parameters:
roleID -
log - the Executor of this method;if null a default one is used
Throws:
Exception

Remove

public Bookmark Remove()
                throws Exception

delete the user and all his/her soft properties

Access to this operation is granted ONLY to administrators.

Throws:
Exception

Remove

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.

Parameters:
log - the Executor of this method;if null a default one is used
Throws:
Exception

Nesstar SDK

Copyright©2003 NSD - All Rights Reserved