org.openanzo.common.ontology
Interface User

All Superinterfaces:
CoreThing, GraphThing
All Known Implementing Classes:
UserImpl

public interface User
extends GraphThing

Interface for User ontology class
Use the org.openanzo.common.ontology.AnzoFactory to create instances of this interface.

(URI: http://openanzo.org/RBAC#User)


RDF Schema Standard Properties
comment : System User



Field Summary
static org.openrdf.model.URI defaultAclTemplateProperty
          The Anzo Property for defaultAclTemplate
static org.openrdf.model.URI defaultRoleProperty
          The Anzo Property for defaultRole
static org.openrdf.model.URI inRoleProperty
          The Anzo Property for inRole
static org.openrdf.model.URI passwordProperty
          The Anzo Property for password
static org.openrdf.model.URI TYPE
          The rdf:type for this ontology class
static org.openrdf.model.URI userIdProperty
          The Anzo Property for userId
 
Method Summary
 Role addInRole()
          Adds an anonymous value for the 'inRole' property
 Role addInRole(org.openrdf.model.Resource resource)
          Adds a value for the 'inRole' property.
 void addInRole(Role inRole)
          Adds a value for the 'inRole' property
 ACL getDefaultAclTemplate()
          Gets the 'defaultAclTemplate' property value
 Role getDefaultRole()
          Gets the 'defaultRole' property value
 info.aduna.collections.iterators.CloseableIterator<Role> getInRole()
          Get an Iterator the 'inRole' property values.
 java.lang.String getPassword()
          Gets the 'password' property value
 java.lang.String getUserId()
          Gets the 'userId' property value
 void removeInRole(org.openrdf.model.Resource inRole)
          Remove a 'inRole' property value.
 void removeInRole(Role inRole)
          Removes a value for the 'inRole' property.
 ACL setDefaultAclTemplate()
          Sets the 'defaultAclTemplate' property value to an anonymous node
 void setDefaultAclTemplate(ACL defaultAclTemplate)
          Sets the 'defaultAclTemplate' property value
 ACL setDefaultAclTemplate(org.openrdf.model.Resource resource)
          Sets the 'defaultAclTemplate' property value to the given resource, and add's rdf:type properties.
 Role setDefaultRole()
          Sets the 'defaultRole' property value to an anonymous node
 Role setDefaultRole(org.openrdf.model.Resource resource)
          Sets the 'defaultRole' property value to the given resource, and add's rdf:type properties.
 void setDefaultRole(Role defaultRole)
          Sets the 'defaultRole' property value
 void setPassword(java.lang.String password)
          Sets the 'password' property value
 void setUserId(java.lang.String userId)
          Sets the 'userId' property value
 
Methods inherited from interface org.openanzo.jastor.GraphThing
getProperties, getPropertyValue, getPropertyValue, graph, setPropertyValue, setPropertyValue
 
Methods inherited from interface org.openanzo.jastor.CoreThing
clearCache, isRDFType, listStatements, registerListener, removeStatements, resource, unregisterListener, uri
 

Field Detail

TYPE

static final org.openrdf.model.URI TYPE
The rdf:type for this ontology class


passwordProperty

static final org.openrdf.model.URI passwordProperty
The Anzo Property for password

(URI: http://openanzo.org/predicates/password)



RDF Schema Standard Properties
comment : Users password, only the hash is stored, but predicate is required for adding new users.


userIdProperty

static final org.openrdf.model.URI userIdProperty
The Anzo Property for userId

(URI: http://openanzo.org/predicates/userId)



RDF Schema Standard Properties
comment : Users login id.


inRoleProperty

static final org.openrdf.model.URI inRoleProperty
The Anzo Property for inRole

(URI: http://openanzo.org/RBAC#inRole)



defaultAclTemplateProperty

static final org.openrdf.model.URI defaultAclTemplateProperty
The Anzo Property for defaultAclTemplate

(URI: http://openanzo.org/predicates/defaultAclTemplate)



defaultRoleProperty

static final org.openrdf.model.URI defaultRoleProperty
The Anzo Property for defaultRole

(URI: http://openanzo.org/predicates/defaultRole)


Method Detail

getPassword

java.lang.String getPassword()
                             throws JastorException
Gets the 'password' property value

Returns:
String
Throws:
JastorException
See Also:
passwordProperty

setPassword

void setPassword(java.lang.String password)
                 throws JastorException
Sets the 'password' property value

Parameters:
password - String
Throws:
JastorException
See Also:
passwordProperty

getUserId

java.lang.String getUserId()
                           throws JastorException
Gets the 'userId' property value

Returns:
String
Throws:
JastorException
See Also:
userIdProperty

setUserId

void setUserId(java.lang.String userId)
               throws JastorException
Sets the 'userId' property value

Parameters:
userId - String
Throws:
JastorException
See Also:
userIdProperty

getInRole

info.aduna.collections.iterators.CloseableIterator<Role> getInRole()
                                                                   throws JastorException
Get an Iterator the 'inRole' property values. This Iteartor may be used to remove all such values.

Returns:
Iterator of Role
Throws:
JastorException
See Also:
inRoleProperty

addInRole

void addInRole(Role inRole)
               throws JastorException
Adds a value for the 'inRole' property

Parameters:
inRole - The Role to add
Throws:
JastorException
See Also:
inRoleProperty

addInRole

Role addInRole()
               throws JastorException
Adds an anonymous value for the 'inRole' property

Returns:
The anoymous Role created
Throws:
JastorException
See Also:
inRoleProperty

addInRole

Role addInRole(org.openrdf.model.Resource resource)
               throws JastorException
Adds a value for the 'inRole' property. This method is equivalent constructing a new instance of Role with the factory and calling addInRole(org.openanzo.common.ontology.Role inRole) The resource argument have rdf:type http://openanzo.org/RBAC#Role. That is, this method should not be used as a shortcut for creating new objects in the model.

Parameters:
resource - The Resource to add
Returns:
The org.openanzo.common.ontology.Role created
Throws:
JastorException
See Also:
inRoleProperty

removeInRole

void removeInRole(Role inRole)
                  throws JastorException
Removes a value for the 'inRole' property. This method should not be invoked while iterator through values. In that case, the remove() method of the Iterator itself should be used.

Parameters:
inRole - The Role to remove
Throws:
JastorException
See Also:
inRoleProperty

removeInRole

void removeInRole(org.openrdf.model.Resource inRole)
                  throws JastorException
Remove a 'inRole' property value. This method should not be invoked while iterator through values. In that case, the remove() method of the Iterator itself should be used.

Parameters:
inRole - Role, the value to remove
Throws:
JastorException
See Also:
inRoleProperty

getDefaultAclTemplate

ACL getDefaultAclTemplate()
                          throws JastorException
Gets the 'defaultAclTemplate' property value

Returns:
ACL
Throws:
JastorException
See Also:
defaultAclTemplateProperty

setDefaultAclTemplate

void setDefaultAclTemplate(ACL defaultAclTemplate)
                           throws JastorException
Sets the 'defaultAclTemplate' property value

Parameters:
defaultAclTemplate - ACL
Throws:
JastorException
See Also:
defaultAclTemplateProperty

setDefaultAclTemplate

ACL setDefaultAclTemplate()
                          throws JastorException
Sets the 'defaultAclTemplate' property value to an anonymous node

Returns:
ACL, the created value
Throws:
JastorException
See Also:
defaultAclTemplateProperty

setDefaultAclTemplate

ACL setDefaultAclTemplate(org.openrdf.model.Resource resource)
                          throws JastorException
Sets the 'defaultAclTemplate' property value to the given resource, and add's rdf:type properties. This method is equivalent constructing a new instance of ACL with the factory. and calling setDefaultAclTemplate(org.openanzo.common.ontology.ACL defaultAclTemplate) The resource argument have rdf:type http://openanzo.org/RBAC#ACL. That is, this method should not be used as a shortcut for creating new objects in the model.

Parameters:
resource - Resource must not be be null.
Returns:
ACL, the newly created value
Throws:
JastorException
See Also:
defaultAclTemplateProperty

getDefaultRole

Role getDefaultRole()
                    throws JastorException
Gets the 'defaultRole' property value

Returns:
Role
Throws:
JastorException
See Also:
defaultRoleProperty

setDefaultRole

void setDefaultRole(Role defaultRole)
                    throws JastorException
Sets the 'defaultRole' property value

Parameters:
defaultRole - Role
Throws:
JastorException
See Also:
defaultRoleProperty

setDefaultRole

Role setDefaultRole()
                    throws JastorException
Sets the 'defaultRole' property value to an anonymous node

Returns:
Role, the created value
Throws:
JastorException
See Also:
defaultRoleProperty

setDefaultRole

Role setDefaultRole(org.openrdf.model.Resource resource)
                    throws JastorException
Sets the 'defaultRole' property value to the given resource, and add's rdf:type properties. This method is equivalent constructing a new instance of Role with the factory. and calling setDefaultRole(org.openanzo.common.ontology.Role defaultRole) The resource argument have rdf:type http://openanzo.org/RBAC#Role. That is, this method should not be used as a shortcut for creating new objects in the model.

Parameters:
resource - Resource must not be be null.
Returns:
Role, the newly created value
Throws:
JastorException
See Also:
defaultRoleProperty


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.