org.alfresco.repo.ownable.impl
Class OwnableServiceNOOPImpl

java.lang.Object
  extended by org.alfresco.repo.ownable.impl.OwnableServiceNOOPImpl
All Implemented Interfaces:
OwnableService

public class OwnableServiceNOOPImpl
extends java.lang.Object
implements OwnableService

A simple implementation that does not support ownership.


Field Summary
 
Fields inherited from interface org.alfresco.service.cmr.security.OwnableService
NO_OWNER
 
Constructor Summary
OwnableServiceNOOPImpl()
           
 
Method Summary
 java.lang.String getOwner(org.alfresco.service.cmr.repository.NodeRef nodeRef)
          Get the username of the owner of the given object.
 boolean hasOwner(org.alfresco.service.cmr.repository.NodeRef nodeRef)
          Does the given node have an owner?
 void setOwner(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String userName)
          Set the owner of the object.
 void takeOwnership(org.alfresco.service.cmr.repository.NodeRef nodeRef)
          Set the owner of the object to be the current user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwnableServiceNOOPImpl

public OwnableServiceNOOPImpl()
Method Detail

getOwner

public java.lang.String getOwner(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Description copied from interface: OwnableService
Get the username of the owner of the given object.

Specified by:
getOwner in interface OwnableService
Returns:
the username or null if the object has no owner

setOwner

public void setOwner(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                     java.lang.String userName)
Description copied from interface: OwnableService
Set the owner of the object.

Specified by:
setOwner in interface OwnableService

takeOwnership

public void takeOwnership(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Description copied from interface: OwnableService
Set the owner of the object to be the current user.

Specified by:
takeOwnership in interface OwnableService

hasOwner

public boolean hasOwner(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Description copied from interface: OwnableService
Does the given node have an owner?

Specified by:
hasOwner in interface OwnableService
Returns:


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.