mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-15 15:02:20 +00:00
125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125781 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
51 lines
1.3 KiB
Java
51 lines
1.3 KiB
Java
package org.alfresco.service.cmr.security;
|
|
|
|
import org.alfresco.service.Auditable;
|
|
import org.alfresco.service.PublicService;
|
|
import org.alfresco.service.cmr.repository.NodeRef;
|
|
|
|
/**
|
|
* Service support around managing ownership.
|
|
*
|
|
* @author Andy Hind
|
|
*/
|
|
public interface OwnableService
|
|
{
|
|
public static String NO_OWNER = "";
|
|
|
|
/**
|
|
* Get the username of the owner of the given object.
|
|
*
|
|
* @param nodeRef NodeRef
|
|
* @return the username or null if the object has no owner
|
|
*/
|
|
@Auditable(parameters = {"nodeRef"})
|
|
public String getOwner(NodeRef nodeRef);
|
|
|
|
/**
|
|
* Set the owner of the object.
|
|
*
|
|
* @param nodeRef NodeRef
|
|
* @param userName String
|
|
*/
|
|
@Auditable(parameters = {"nodeRef", "userName"})
|
|
public void setOwner(NodeRef nodeRef, String userName);
|
|
|
|
/**
|
|
* Set the owner of the object to be the current user.
|
|
*
|
|
* @param nodeRef NodeRef
|
|
*/
|
|
@Auditable(parameters = {"nodeRef"})
|
|
public void takeOwnership(NodeRef nodeRef);
|
|
|
|
/**
|
|
* Does the given node have an owner?
|
|
*
|
|
* @param nodeRef NodeRef
|
|
* @return boolean
|
|
*/
|
|
@Auditable(parameters = {"nodeRef"})
|
|
public boolean hasOwner(NodeRef nodeRef);
|
|
}
|