org.gcube.personalization.profileadministration.impl
Class ProfileAdministrationService

java.lang.Object
  extended by GCUBEPortType
      extended by org.gcube.personalization.profileadministration.impl.ProfileAdministrationService

public class ProfileAdministrationService
extends GCUBEPortType

Author:
Panagiota Koltsida, NKUA

Constructor Summary
ProfileAdministrationService()
          The default constructor
 
Method Summary
 VOID createUserProfile(java.lang.String username)
          This method creates a new user profile.
 VOID dropUserProfile(java.lang.String username)
          This method deletes the user's profile.
 VOID setDefaultProfile(java.lang.String profile)
          This method sets the default user profile as a generic resource to the IS.
 VOID validateProfile(ValidateProfile params)
          This method validates the default user profile with the given schema
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileAdministrationService

public ProfileAdministrationService()
                             throws GCUBEFault
The default constructor

Throws:
GCUBEFault - Failed to contact the IS client
Method Detail

setDefaultProfile

public VOID setDefaultProfile(java.lang.String profile)
                       throws GCUBEFault
This method sets the default user profile as a generic resource to the IS.

Parameters:
profile - The default profile
Returns:
No Return type
Throws:
GCUBEFault - an error occurred

createUserProfile

public VOID createUserProfile(java.lang.String username)
                       throws GCUBEFault
This method creates a new user profile.

Parameters:
userName - It is used as the logical name of the document with the profile
Returns:
no Return type
Throws:
GCUBEFault - an error occurred

dropUserProfile

public VOID dropUserProfile(java.lang.String username)
                     throws GCUBEFault
This method deletes the user's profile. The username is used to locate the profile.

Parameters:
username - The logical name of the document
Returns:
no Return type
Throws:
GCUBEFault - an error occurred

validateProfile

public VOID validateProfile(ValidateProfile params)
                     throws GCUBEFault
This method validates the default user profile with the given schema

Parameters:
userName - It is used to find the resource of the user's profile.
validationSchema - The path where the schema file is stored.
Returns:
no return type
Throws:
GCUBEFault - an error occurred