org.openanzo.common.ontology
Class UserImpl

java.lang.Object
  extended by org.openanzo.jastor.GraphThingImpl
      extended by org.openanzo.common.ontology.UserImpl
All Implemented Interfaces:
User, CoreThing, GraphThing

public class UserImpl
extends GraphThingImpl
implements User

Implementation of User Use the org.openanzo.common.ontology.AnzoFactory to create instances of this class.

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



Field Summary
 
Fields inherited from interface org.openanzo.common.ontology.User
TYPE
 
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
 java.util.Collection<org.openrdf.model.Statement> listStatements()
          Get set of statements that makeup this THINGS's properties and types
 void registerListener(ThingListener listener)
          Register a ThingListener for this THING
 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
 void unregisterListener(ThingListener listener)
          Unregister a ThingListener for this THING
 
Methods inherited from class org.openanzo.jastor.GraphThingImpl
clearCache, equals, getLiteral, getLiteralValue, getProperties, getPropertyValue, getPropertyValue, graph, isRDFType, removeStatements, resource, setPropertyValue, setPropertyValue, toString, uri
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openanzo.jastor.GraphThing
getProperties, getPropertyValue, getPropertyValue, graph, setPropertyValue, setPropertyValue
 
Methods inherited from interface org.openanzo.jastor.CoreThing
clearCache, isRDFType, removeStatements, resource, uri
 

Method Detail

listStatements

public java.util.Collection<org.openrdf.model.Statement> listStatements()
Description copied from interface: CoreThing
Get set of statements that makeup this THINGS's properties and types

Specified by:
listStatements in interface CoreThing
Overrides:
listStatements in class GraphThingImpl
Returns:
set of statements that makeup this THINGS's properties and types

getPassword

public java.lang.String getPassword()
                             throws JastorException
Description copied from interface: User
Gets the 'password' property value

Specified by:
getPassword in interface User
Returns:
String
Throws:
JastorException
See Also:
User.passwordProperty

setPassword

public void setPassword(java.lang.String password)
                 throws JastorException
Description copied from interface: User
Sets the 'password' property value

Specified by:
setPassword in interface User
Parameters:
password - String
Throws:
JastorException
See Also:
User.passwordProperty

getUserId

public java.lang.String getUserId()
                           throws JastorException
Description copied from interface: User
Gets the 'userId' property value

Specified by:
getUserId in interface User
Returns:
String
Throws:
JastorException
See Also:
User.userIdProperty

setUserId

public void setUserId(java.lang.String userId)
               throws JastorException
Description copied from interface: User
Sets the 'userId' property value

Specified by:
setUserId in interface User
Parameters:
userId - String
Throws:
JastorException
See Also:
User.userIdProperty

getInRole

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

Specified by:
getInRole in interface User
Returns:
Iterator of Role
Throws:
JastorException
See Also:
User.inRoleProperty

addInRole

public void addInRole(Role inRole)
               throws JastorException
Description copied from interface: User
Adds a value for the 'inRole' property

Specified by:
addInRole in interface User
Parameters:
inRole - The Role to add
Throws:
JastorException
See Also:
User.inRoleProperty

addInRole

public Role addInRole()
               throws JastorException
Description copied from interface: User
Adds an anonymous value for the 'inRole' property

Specified by:
addInRole in interface User
Returns:
The anoymous Role created
Throws:
JastorException
See Also:
User.inRoleProperty

addInRole

public Role addInRole(org.openrdf.model.Resource resource)
               throws JastorException
Description copied from interface: User
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.

Specified by:
addInRole in interface User
Parameters:
resource - The Resource to add
Returns:
The org.openanzo.common.ontology.Role created
Throws:
JastorException
See Also:
User.inRoleProperty

removeInRole

public void removeInRole(Role inRole)
                  throws JastorException
Description copied from interface: User
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.

Specified by:
removeInRole in interface User
Parameters:
inRole - The Role to remove
Throws:
JastorException
See Also:
User.inRoleProperty

removeInRole

public void removeInRole(org.openrdf.model.Resource inRole)
                  throws JastorException
Description copied from interface: User
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.

Specified by:
removeInRole in interface User
Parameters:
inRole - Role, the value to remove
Throws:
JastorException
See Also:
User.inRoleProperty

getDefaultAclTemplate

public ACL getDefaultAclTemplate()
                          throws JastorException
Description copied from interface: User
Gets the 'defaultAclTemplate' property value

Specified by:
getDefaultAclTemplate in interface User
Returns:
ACL
Throws:
JastorException
See Also:
User.defaultAclTemplateProperty

setDefaultAclTemplate

public void setDefaultAclTemplate(ACL defaultAclTemplate)
                           throws JastorException
Description copied from interface: User
Sets the 'defaultAclTemplate' property value

Specified by:
setDefaultAclTemplate in interface User
Parameters:
defaultAclTemplate - ACL
Throws:
JastorException
See Also:
User.defaultAclTemplateProperty

setDefaultAclTemplate

public ACL setDefaultAclTemplate()
                          throws JastorException
Description copied from interface: User
Sets the 'defaultAclTemplate' property value to an anonymous node

Specified by:
setDefaultAclTemplate in interface User
Returns:
ACL, the created value
Throws:
JastorException
See Also:
User.defaultAclTemplateProperty

setDefaultAclTemplate

public ACL setDefaultAclTemplate(org.openrdf.model.Resource resource)
                          throws JastorException
Description copied from interface: User
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.

Specified by:
setDefaultAclTemplate in interface User
Parameters:
resource - Resource must not be be null.
Returns:
ACL, the newly created value
Throws:
JastorException
See Also:
User.defaultAclTemplateProperty

getDefaultRole

public Role getDefaultRole()
                    throws JastorException
Description copied from interface: User
Gets the 'defaultRole' property value

Specified by:
getDefaultRole in interface User
Returns:
Role
Throws:
JastorException
See Also:
User.defaultRoleProperty

setDefaultRole

public void setDefaultRole(Role defaultRole)
                    throws JastorException
Description copied from interface: User
Sets the 'defaultRole' property value

Specified by:
setDefaultRole in interface User
Parameters:
defaultRole - Role
Throws:
JastorException
See Also:
User.defaultRoleProperty

setDefaultRole

public Role setDefaultRole()
                    throws JastorException
Description copied from interface: User
Sets the 'defaultRole' property value to an anonymous node

Specified by:
setDefaultRole in interface User
Returns:
Role, the created value
Throws:
JastorException
See Also:
User.defaultRoleProperty

setDefaultRole

public Role setDefaultRole(org.openrdf.model.Resource resource)
                    throws JastorException
Description copied from interface: User
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.

Specified by:
setDefaultRole in interface User
Parameters:
resource - Resource must not be be null.
Returns:
Role, the newly created value
Throws:
JastorException
See Also:
User.defaultRoleProperty

registerListener

public void registerListener(ThingListener listener)
Description copied from interface: CoreThing
Register a ThingListener for this THING

Specified by:
registerListener in interface CoreThing
Overrides:
registerListener in class GraphThingImpl
Parameters:
listener - ThingListener

unregisterListener

public void unregisterListener(ThingListener listener)
Description copied from interface: CoreThing
Unregister a ThingListener for this THING

Specified by:
unregisterListener in interface CoreThing
Overrides:
unregisterListener in class GraphThingImpl
Parameters:
listener - ThingListener


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