org.universAAL.context.space.serv
Class SCalleeProvidedService

Package class diagram package SCalleeProvidedService
java.lang.Object
  extended by org.universAAL.middleware.rdf.Resource
      extended by org.universAAL.middleware.rdf.FinalizedResource
          extended by org.universAAL.middleware.owl.ManagedIndividual
              extended by org.universAAL.middleware.service.owl.Service
                  extended by org.universAAL.ontology.profile.service.ProfilingService
                      extended by org.universAAL.context.space.serv.SCalleeProvidedService

public class SCalleeProvidedService
extends ProfilingService

The class where all service profiles are built.

Author:
alfiva

Field Summary
protected static String INP_ADD_DEV_TO_SPACE_WHAT
           
protected static String INP_ADD_DEV_TO_SPACE_WHERE
           
protected static String INP_ADD_ONT_TO_SPACE_WHAT
           
protected static String INP_ADD_ONT_TO_SPACE_WHERE
           
protected static String INP_ADD_OWNER_TO_SERV_WHAT
           
protected static String INP_ADD_OWNER_TO_SERV_WHERE
           
protected static String INP_ADD_OWNER_TO_SPACE_WHAT
           
protected static String INP_ADD_OWNER_TO_SPACE_WHERE
           
protected static String INP_ADD_PROF_TO_SERV_WHAT
           
protected static String INP_ADD_PROF_TO_SERV_WHERE
           
protected static String INP_ADD_PROF_TO_SPACE_WHAT
           
protected static String INP_ADD_PROF_TO_SPACE_WHERE
           
protected static String INP_ADD_SERV_TO_SPACE_WHAT
           
protected static String INP_ADD_SERV_TO_SPACE_WHERE
           
static String INP_ADD_X
           
static String INP_CHN_X
           
protected static String INP_GET_APP_OF_SERV
           
protected static String INP_GET_DEVS_OF_SPACE
           
protected static String INP_GET_HR_OF_SERV
           
protected static String INP_GET_HW_OF_SERV
           
protected static String INP_GET_ONTS_OF_SPACE
           
protected static String INP_GET_OWNERS_OF_SERV
           
protected static String INP_GET_OWNERS_OF_SPACE
           
protected static String INP_GET_PROF_OF_SERV
           
protected static String INP_GET_PROF_OF_SPACE
           
protected static String INP_GET_SERVS_OF_SPACE
           
static String INP_GET_X
           
static String INP_REM_X
           
static String MY_URI
          Ontological URI of the class (because it extends and ontology class> ProfilingService)
static String NAMESPACE
          Default namespace root.
protected static String OUT_GET_APP_OF_SERV
           
protected static String OUT_GET_DEVS_OF_SPACE
           
protected static String OUT_GET_HR_OF_SERV
           
protected static String OUT_GET_HW_OF_SERV
           
protected static String OUT_GET_ONTS_OF_SPACE
           
protected static String OUT_GET_OWNERS_OF_SERV
           
protected static String OUT_GET_OWNERS_OF_SPACE
           
protected static String OUT_GET_PROF_OF_SERV
           
protected static String OUT_GET_PROF_OF_SPACE
           
protected static String OUT_GET_SERVS
           
protected static String OUT_GET_SERVS_OF_SPACE
           
protected static String OUT_GET_SPACES
           
static String OUT_GET_X
           
protected static ServiceProfile[] profiles
          Where the service profiles are stored.
protected static String SRV_ADD_DEV_TO_SPACE
           
protected static String SRV_ADD_ONT_TO_SPACE
           
protected static String SRV_ADD_OWNER_TO_SERV
           
protected static String SRV_ADD_OWNER_TO_SPACE
           
protected static String SRV_ADD_PROF_TO_SERV
           
protected static String SRV_ADD_PROF_TO_SPACE
           
protected static String SRV_ADD_SERV_TO_SPACE
           
static String SRV_ADD_X
           
static String SRV_CHN_X
           
protected static String SRV_GET_APP_OF_SERV
           
protected static String SRV_GET_DEVS_OF_SPACE
           
protected static String SRV_GET_HR_OF_SERV
           
protected static String SRV_GET_HW_OF_SERV
           
protected static String SRV_GET_ONTS_OF_SPACE
           
protected static String SRV_GET_OWNERS_OF_SERV
           
protected static String SRV_GET_OWNERS_OF_SPACE
           
protected static String SRV_GET_PROF_OF_SERV
           
protected static String SRV_GET_PROF_OF_SPACE
           
protected static String SRV_GET_SERVS
           
protected static String SRV_GET_SERVS_OF_SPACE
           
protected static String SRV_GET_SPACES
           
static String SRV_GET_X
           
static String SRV_REM_X
           
 
Fields inherited from class org.universAAL.ontology.profile.service.ProfilingService
PROP_CONTROLS
 
Fields inherited from class org.universAAL.middleware.service.owl.Service
instanceLevelRestrictions, myProfile, numberOfValueRestrictions, OWLS_NAMESPACE_PREFIX, OWLS_SERVICE_NAMESPACE, PROP_INSTANCE_LEVEL_RESTRICTIONS, PROP_NUMBER_OF_VALUE_RESTRICTIONS, PROP_OWLS_PRESENTED_BY, PROP_OWLS_PRESENTS
 
Fields inherited from class org.universAAL.middleware.owl.ManagedIndividual
OWL_NAMESPACE, TYPE_OWL_INDIVIDUAL, TYPE_OWL_THING
 
Fields inherited from class org.universAAL.middleware.rdf.Resource
ANON_URI_PREFIX, blockAddingTypes, isXMLLiteral, ns_delim_index, PROP_RDF_FIRST, PROP_RDF_REST, PROP_RDF_TYPE, PROP_RDFS_COMMENT, PROP_RDFS_LABEL, PROP_SERIALIZATION_FULL, PROP_SERIALIZATION_OPTIONAL, PROP_SERIALIZATION_REDUCED, PROP_SERIALIZATION_UNDEFINED, PROP_uAAL_INVOLVED_HUMAN_USER, props, RDF_EMPTY_LIST, RDF_NAMESPACE, RDFS_NAMESPACE, TYPE_RDF_LIST, TYPE_RDFS_CLASS, uAAL_NAMESPACE_PREFIX, uAAL_SERVICE_NAMESPACE, uAAL_VOCABULARY_NAMESPACE, uri
 
Constructor Summary
SCalleeProvidedService(String uri)
          Default constructor.
 
Method Summary
 String getClassURI()
          Get the class URI for this ManagedIndividual.
static ServiceProfile[] getServiceProfiles(String namespace, String ontologyURI, String[] path, String editedURI)
          Gives you the 4 typical service profiles of an editor service: Get, Add, Change and Remove.
 
Methods inherited from class org.universAAL.ontology.profile.service.ProfilingService
getPropSerializationType, isWellFormed
 
Methods inherited from class org.universAAL.middleware.service.owl.Service
addFilteringInput, addFilteringType, addInputWithAddEffect, addInputWithChangeEffect, addInputWithRemoveEffect, addInstanceLevelRestriction, addOutput, addRestriction, createInput, getInstanceLevelFixedValueOnProp, getInstanceLevelRestrictionOnProp, getNumberOfValueRestrictions, getProfile, getRestrictedPropsOnInstanceLevel, getRestrictionOnPropPath, setProperty
 
Methods inherited from class org.universAAL.middleware.owl.ManagedIndividual
checkCompatibility, checkMembership, copy, deepCopy, getClassRestrictionsOnProperty, getInstance, getNonAbstractSuperClasses, getNonabstractSuperClasses, getOntClassInfo, getTypeURI, isRegisteredClassURI, setPropertyPathFromOffset, toManagedIndividual
 
Methods inherited from class org.universAAL.middleware.rdf.FinalizedResource
addType, getLocalName, getNamespace, getProperty, getPropertyURIs, getType, getTypes, getURI, hasQualifiedName, isAnon, numberOfProperties
 
Methods inherited from class org.universAAL.middleware.rdf.Resource
addMultiLangProp, asList, asList, asRDFList, changeProperty, equals, generateAnonURI, getDefaultLang, getFilename, getMultiLangProp, getOrConstructLabel, getResource, getResourceComment, getResourceLabel, getStaticFieldValue, hashCode, hasProperty, isAnon, isBlockingAddingTypes, isClosedCollection, isQualifiedName, literal, representsQualifiedURI, serializesAsXMLLiteral, setPropertyPath, setPropertyPath, setResourceComment, setResourceLabel, toString, toStringRecursive, toStringRecursive, unliteral
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NAMESPACE

public static final String NAMESPACE
Default namespace root. Must be the same as in SCallee.

See Also:
Constant Field Values

MY_URI

public static final String MY_URI
Ontological URI of the class (because it extends and ontology class> ProfilingService)

See Also:
Constant Field Values

SRV_GET_SERVS

protected static final String SRV_GET_SERVS
See Also:
Constant Field Values

OUT_GET_SERVS

protected static final String OUT_GET_SERVS
See Also:
Constant Field Values

SRV_GET_SPACES

protected static final String SRV_GET_SPACES
See Also:
Constant Field Values

OUT_GET_SPACES

protected static final String OUT_GET_SPACES
See Also:
Constant Field Values

SRV_GET_SERVS_OF_SPACE

protected static final String SRV_GET_SERVS_OF_SPACE
See Also:
Constant Field Values

INP_GET_SERVS_OF_SPACE

protected static final String INP_GET_SERVS_OF_SPACE
See Also:
Constant Field Values

OUT_GET_SERVS_OF_SPACE

protected static final String OUT_GET_SERVS_OF_SPACE
See Also:
Constant Field Values

SRV_GET_DEVS_OF_SPACE

protected static final String SRV_GET_DEVS_OF_SPACE
See Also:
Constant Field Values

INP_GET_DEVS_OF_SPACE

protected static final String INP_GET_DEVS_OF_SPACE
See Also:
Constant Field Values

OUT_GET_DEVS_OF_SPACE

protected static final String OUT_GET_DEVS_OF_SPACE
See Also:
Constant Field Values

SRV_GET_ONTS_OF_SPACE

protected static final String SRV_GET_ONTS_OF_SPACE
See Also:
Constant Field Values

INP_GET_ONTS_OF_SPACE

protected static final String INP_GET_ONTS_OF_SPACE
See Also:
Constant Field Values

OUT_GET_ONTS_OF_SPACE

protected static final String OUT_GET_ONTS_OF_SPACE
See Also:
Constant Field Values

SRV_GET_HR_OF_SERV

protected static final String SRV_GET_HR_OF_SERV
See Also:
Constant Field Values

INP_GET_HR_OF_SERV

protected static final String INP_GET_HR_OF_SERV
See Also:
Constant Field Values

OUT_GET_HR_OF_SERV

protected static final String OUT_GET_HR_OF_SERV
See Also:
Constant Field Values

SRV_GET_HW_OF_SERV

protected static final String SRV_GET_HW_OF_SERV
See Also:
Constant Field Values

INP_GET_HW_OF_SERV

protected static final String INP_GET_HW_OF_SERV
See Also:
Constant Field Values

OUT_GET_HW_OF_SERV

protected static final String OUT_GET_HW_OF_SERV
See Also:
Constant Field Values

SRV_GET_APP_OF_SERV

protected static final String SRV_GET_APP_OF_SERV
See Also:
Constant Field Values

INP_GET_APP_OF_SERV

protected static final String INP_GET_APP_OF_SERV
See Also:
Constant Field Values

OUT_GET_APP_OF_SERV

protected static final String OUT_GET_APP_OF_SERV
See Also:
Constant Field Values

SRV_ADD_SERV_TO_SPACE

protected static final String SRV_ADD_SERV_TO_SPACE
See Also:
Constant Field Values

INP_ADD_SERV_TO_SPACE_WHERE

protected static final String INP_ADD_SERV_TO_SPACE_WHERE
See Also:
Constant Field Values

INP_ADD_SERV_TO_SPACE_WHAT

protected static final String INP_ADD_SERV_TO_SPACE_WHAT
See Also:
Constant Field Values

SRV_ADD_DEV_TO_SPACE

protected static final String SRV_ADD_DEV_TO_SPACE
See Also:
Constant Field Values

INP_ADD_DEV_TO_SPACE_WHERE

protected static final String INP_ADD_DEV_TO_SPACE_WHERE
See Also:
Constant Field Values

INP_ADD_DEV_TO_SPACE_WHAT

protected static final String INP_ADD_DEV_TO_SPACE_WHAT
See Also:
Constant Field Values

SRV_ADD_ONT_TO_SPACE

protected static final String SRV_ADD_ONT_TO_SPACE
See Also:
Constant Field Values

INP_ADD_ONT_TO_SPACE_WHERE

protected static final String INP_ADD_ONT_TO_SPACE_WHERE
See Also:
Constant Field Values

INP_ADD_ONT_TO_SPACE_WHAT

protected static final String INP_ADD_ONT_TO_SPACE_WHAT
See Also:
Constant Field Values

SRV_ADD_PROF_TO_SPACE

protected static final String SRV_ADD_PROF_TO_SPACE
See Also:
Constant Field Values

INP_ADD_PROF_TO_SPACE_WHERE

protected static final String INP_ADD_PROF_TO_SPACE_WHERE
See Also:
Constant Field Values

INP_ADD_PROF_TO_SPACE_WHAT

protected static final String INP_ADD_PROF_TO_SPACE_WHAT
See Also:
Constant Field Values

SRV_ADD_PROF_TO_SERV

protected static final String SRV_ADD_PROF_TO_SERV
See Also:
Constant Field Values

INP_ADD_PROF_TO_SERV_WHERE

protected static final String INP_ADD_PROF_TO_SERV_WHERE
See Also:
Constant Field Values

INP_ADD_PROF_TO_SERV_WHAT

protected static final String INP_ADD_PROF_TO_SERV_WHAT
See Also:
Constant Field Values

SRV_GET_OWNERS_OF_SPACE

protected static final String SRV_GET_OWNERS_OF_SPACE
See Also:
Constant Field Values

INP_GET_OWNERS_OF_SPACE

protected static final String INP_GET_OWNERS_OF_SPACE
See Also:
Constant Field Values

OUT_GET_OWNERS_OF_SPACE

protected static final String OUT_GET_OWNERS_OF_SPACE
See Also:
Constant Field Values

SRV_GET_OWNERS_OF_SERV

protected static final String SRV_GET_OWNERS_OF_SERV
See Also:
Constant Field Values

INP_GET_OWNERS_OF_SERV

protected static final String INP_GET_OWNERS_OF_SERV
See Also:
Constant Field Values

OUT_GET_OWNERS_OF_SERV

protected static final String OUT_GET_OWNERS_OF_SERV
See Also:
Constant Field Values

SRV_ADD_OWNER_TO_SPACE

protected static final String SRV_ADD_OWNER_TO_SPACE
See Also:
Constant Field Values

INP_ADD_OWNER_TO_SPACE_WHERE

protected static final String INP_ADD_OWNER_TO_SPACE_WHERE
See Also:
Constant Field Values

INP_ADD_OWNER_TO_SPACE_WHAT

protected static final String INP_ADD_OWNER_TO_SPACE_WHAT
See Also:
Constant Field Values

SRV_ADD_OWNER_TO_SERV

protected static final String SRV_ADD_OWNER_TO_SERV
See Also:
Constant Field Values

INP_ADD_OWNER_TO_SERV_WHERE

protected static final String INP_ADD_OWNER_TO_SERV_WHERE
See Also:
Constant Field Values

INP_ADD_OWNER_TO_SERV_WHAT

protected static final String INP_ADD_OWNER_TO_SERV_WHAT
See Also:
Constant Field Values

SRV_GET_PROF_OF_SPACE

protected static final String SRV_GET_PROF_OF_SPACE
See Also:
Constant Field Values

INP_GET_PROF_OF_SPACE

protected static final String INP_GET_PROF_OF_SPACE
See Also:
Constant Field Values

OUT_GET_PROF_OF_SPACE

protected static final String OUT_GET_PROF_OF_SPACE
See Also:
Constant Field Values

SRV_GET_PROF_OF_SERV

protected static final String SRV_GET_PROF_OF_SERV
See Also:
Constant Field Values

INP_GET_PROF_OF_SERV

protected static final String INP_GET_PROF_OF_SERV
See Also:
Constant Field Values

OUT_GET_PROF_OF_SERV

protected static final String OUT_GET_PROF_OF_SERV
See Also:
Constant Field Values

SRV_GET_X

public static final String SRV_GET_X
See Also:
Constant Field Values

INP_GET_X

public static final String INP_GET_X
See Also:
Constant Field Values

OUT_GET_X

public static final String OUT_GET_X
See Also:
Constant Field Values

SRV_ADD_X

public static final String SRV_ADD_X
See Also:
Constant Field Values

INP_ADD_X

public static final String INP_ADD_X
See Also:
Constant Field Values

SRV_CHN_X

public static final String SRV_CHN_X
See Also:
Constant Field Values

INP_CHN_X

public static final String INP_CHN_X
See Also:
Constant Field Values

SRV_REM_X

public static final String SRV_REM_X
See Also:
Constant Field Values

INP_REM_X

public static final String INP_REM_X
See Also:
Constant Field Values

profiles

protected static ServiceProfile[] profiles
Where the service profiles are stored. Only the non-typical ones. The typical get/add/change/remove are extracted from method getServiceProfiles.

Constructor Detail

SCalleeProvidedService

public SCalleeProvidedService(String uri)
Default constructor.

Parameters:
uri - Instance URI
Method Detail

getServiceProfiles

public static ServiceProfile[] getServiceProfiles(String namespace,
                                                  String ontologyURI,
                                                  String[] path,
                                                  String editedURI)
Gives you the 4 typical service profiles of an editor service: Get, Add, Change and Remove. When handling requests in you Callee, you can use the references to services and arguments URIs prepending namespace to SimpleEditor constants.

Parameters:
namespace - The namespace of your server, ending with the character #. You can optionally add some prefix after the # if you use SimpleEditor more than once in the same Callee.
ontologyURI - The MY_URI of the class of Service ontology you are going to implement
path - The property path from the root of the Service ontology concept to the exact concept you want to manage
editedURI - The MY_URI of the class of the concept ontology that you want to manage, which is at the end of the property path
Returns:
An array with the 4 typical service profiles

getClassURI

public String getClassURI()
Description copied from class: ManagedIndividual
Get the class URI for this ManagedIndividual. All non-abstract subclasses MUST overwrite this method!

Overrides:
getClassURI in class ProfilingService
Returns:
The class URI.


Copyright © 2014 universAAL Consortium. All Rights Reserved.