org.universAAL.ontology.security
Class SessionManagementService
java.lang.Object
org.universAAL.middleware.rdf.Resource
org.universAAL.middleware.rdf.FinalizedResource
org.universAAL.middleware.owl.ManagedIndividual
org.universAAL.middleware.service.owl.Service
org.universAAL.ontology.security.SessionManagementService
- Direct Known Subclasses:
- SessionManagerService
public class SessionManagementService
- extends Service
Service Description for checking validity of Session
s.
only the session manager should implement profiles for this service.
- Author:
- amedrano
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 |
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 |
MY_URI
public static final String MY_URI
- See Also:
- Constant Field Values
PROP_USER
public static final String PROP_USER
- See Also:
- Constant Field Values
SessionManagementService
public SessionManagementService()
- Only for serializers.
SessionManagementService
public SessionManagementService(String uri)
- Parameters:
uri
-
getClassURI
public String getClassURI()
-
- Overrides:
getClassURI
in class ManagedIndividual
- Returns:
- The class URI.
isWellFormed
public boolean isWellFormed()
-
- Overrides:
isWellFormed
in class ManagedIndividual
- See Also:
Resource.isWellFormed()
getPropSerializationType
public int getPropSerializationType(String propURI)
-
- Overrides:
getPropSerializationType
in class Service
- See Also:
ManagedIndividual.getPropSerializationType(java.lang.String)
hasUserValidSession
public static boolean hasUserValidSession(ModuleContext mc,
User u,
Device d)
- Check whether the given
User
has a valid session in the given Device
.
This check is only bound to the time it is call, session may not be valid in near future.
- Parameters:
mc
- needed to make the Service call.u
- the user to be checkedd
- the device where the user might have a session.
- Returns:
- true if and only if the user should be considered to have a valid session (at the moment of the invocation).
hasUserValidSession
public static boolean hasUserValidSession(ModuleContext mc,
User u,
Location l)
- Check whether the given
User
has a valid session in the given Location
.
This check is only bound to the time it is call, session may not be valid in near future.
- Parameters:
mc
- needed to make the Service call.u
- the user to be checkedl
- the location where the user might have a session.
- Returns:
- true if and only if the user should be considered to have a valid session (at the moment of the invocation).
Copyright © 2014 universAAL Consortium. All Rights Reserved.