org.gcube.personalization.profileadministration.impl
Class ProfileAdministrationService

java.lang.Object
  extended by org.gcube.common.core.porttypes.GCUBEPortType
      extended by org.gcube.personalization.profileadministration.impl.ProfileAdministrationService
All Implemented Interfaces:
javax.xml.rpc.server.ServiceLifecycle

public class ProfileAdministrationService
extends org.gcube.common.core.porttypes.GCUBEPortType

Author:
Panagiota Koltsida, NKUA

Field Summary
 
Fields inherited from class org.gcube.common.core.porttypes.GCUBEPortType
initialized
 
Constructor Summary
ProfileAdministrationService()
          The default constructor
 
Method Summary
 org.gcube.common.core.types.VOID createUserProfile(String username)
          This method creates a new user profile.
 org.gcube.common.core.types.VOID dropUserProfile(String username)
          This method deletes the user's profile.
protected  org.gcube.common.core.contexts.GCUBEServiceContext getServiceContext()
          
 org.gcube.common.core.types.VOID setDefaultProfile(String profile)
          This method sets the default user profile as a generic resource to the IS.
 org.gcube.common.core.types.VOID validateProfile(org.gcube.personalization.profileadministration.stubs.ValidateProfile params)
          This method validates the default user profile with the given schema
 
Methods inherited from class org.gcube.common.core.porttypes.GCUBEPortType
destroy, init, onFailure, onInitialisation, onReady, onStateChange, onUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileAdministrationService

public ProfileAdministrationService()
                             throws org.gcube.common.core.faults.GCUBEFault
The default constructor

Throws:
org.gcube.common.core.faults.GCUBEFault - Failed to contact the IS client
Method Detail

getServiceContext

protected org.gcube.common.core.contexts.GCUBEServiceContext getServiceContext()

Specified by:
getServiceContext in class org.gcube.common.core.porttypes.GCUBEPortType

setDefaultProfile

public org.gcube.common.core.types.VOID setDefaultProfile(String profile)
                                                   throws org.gcube.common.core.faults.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:
org.gcube.common.core.faults.GCUBEFault - an error occurred

createUserProfile

public org.gcube.common.core.types.VOID createUserProfile(String username)
                                                   throws org.gcube.common.core.faults.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:
org.gcube.common.core.faults.GCUBEFault - an error occurred

dropUserProfile

public org.gcube.common.core.types.VOID dropUserProfile(String username)
                                                 throws org.gcube.common.core.faults.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:
org.gcube.common.core.faults.GCUBEFault - an error occurred

validateProfile

public org.gcube.common.core.types.VOID validateProfile(org.gcube.personalization.profileadministration.stubs.ValidateProfile params)
                                                 throws org.gcube.common.core.faults.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:
org.gcube.common.core.faults.GCUBEFault - an error occurred


Copyright © 2013. All Rights Reserved.