agave-tags/tags-core/src/main/java/org/iplantc/service/tags/managers/TagPermissionManager.java
/**
	 * Checks for user ability to edit the entity
	 * @param username
	 * @return
	 * @throws TagPermissionException
	 * @throws PermissionValidationException
	 */
Checks for user ability to edit the entity
@param username
@return
@throws TagPermissionException
@throws PermissionValidationException
Checks for user ability to edit the entity @param username @return @throws TagPermissionException @throws PermissionValidationException
public boolean canWrite(String username) 
	throws PermissionValidationException, TagPermissionException 
	{
		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 getUserPermission(username).getPermission().canWrite();
		}
	}
public boolean canWrite ( String username ) throws PermissionValidationException , TagPermissionException { 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 getUserPermission ( username ) . getPermission ( ) . canWrite ( ) ; } }
Checks for user ability to edit the entity
 @param username
 @return
 @throws TagPermissionException
 @throws PermissionValidationException
Checks for user ability to edit the entity @param username @return @throws TagPermissionException @throws PermissionValidationException