agave-tags/tags-core/src/main/java/org/iplantc/service/tags/managers/TagPermissionManager.java
/**
	 * Checks for user ownership of the entity
	 * @param username
	 * @return
	 * @throws PermissionValidationException
	 */
Checks for user ownership of the entity
@param username
@return
@throws PermissionValidationException
Checks for user ownership of the entity @param username @return @throws PermissionValidationException
public boolean isOwner(String username) throws PermissionValidationException 
	{
		if (tag == null) {
			throw new PermissionValidationException("No tag found for permission validation");
		}
		else if (StringUtils.isEmpty(username)) { 
			throw new PermissionValidationException("No username provided.");
		} 
		else {
			return StringUtils.equals(tag.getOwner(), username);
		}
	}
public boolean isOwner ( String username ) throws PermissionValidationException { if ( tag == null ) { throw new PermissionValidationException ( "No tag found for permission validation" ) ; } else if ( StringUtils . isEmpty ( username ) ) { throw new PermissionValidationException ( "No username provided." ) ; } else { return StringUtils . equals ( tag . getOwner ( ) , username ) ; } }
Checks for user ownership of the entity
 @param username
 @return
 @throws PermissionValidationException
Checks for user ownership of the entity @param username @return @throws PermissionValidationException